226k views
3 votes
What is the default directory in HDFS where tables are stored?

A. /apps/hive/warehouse/schema
B. /apps/hive/warehouse/
C. /apps/hive/warehouse/data
D. /apps/hive/warehouse/bigsql

User Firetrap
by
8.6k points

1 Answer

1 vote

Final answer:

The default directory in HDFS for storing tables is B. /apps/hive/warehouse/. Hive uses this warehouse directory to store table data unless the configuration is modified in hive-site.xml.

Step-by-step explanation:

The default directory in HDFS where tables are stored is B. /apps/hive/warehouse/. When using Apache Hive, which is a data warehouse software for querying and managing large datasets residing in distributed storage, it creates a warehouse directory where it stores the metadata of databases and tables.

The location where Hive stores table data by default is referred to as the Hive warehouse and is typically found in the path /user/hive/warehouse in a Hadoop cluster, unless configured otherwise in the Hive configuration file hive-site.xml.

User Omayr
by
8.3k points