I have created a table in hive, I would like to know which directory my table is created in?
I have created a table in hive, I would like to know which directory my table is created in? I would like to know the path...
Solution 1:
DESCRIBE FORMATTED my_table;
or
DESCRIBE FORMATTED my_table PARTITION (my_column='my_value');
Solution 2:
There are three ways to describe a table in Hive.
1) To see table primary info of Hive table, use describe table_name; command
2) To see more detailed information about the table, use describe extended table_name; command
3) To see code in a clean manner use describe formatted table_name; command to see all information. also describe all details in a clean manner.
Resource: Hive interview tips
Solution 3:
You can use below commands for the same.
show create table <table>;
desc formatted <table>;
describe formatted <table>;