I have created a table in hive, I would like to kn

2019-02-04 05:25发布

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...

标签: hive hiveql
10条回答
干净又极端
2楼-- · 2019-02-04 06:10

You can use below commands for the same.

show create table <table>;
desc formatted <table>;
describe formatted <table>;
查看更多
爷的心禁止访问
3楼-- · 2019-02-04 06:10

If you use Hue, you can browse the table in the Metastore App and then click on 'View file location': that will open the HDFS File Browser in its directory.

查看更多
来,给爷笑一个
4楼-- · 2019-02-04 06:15

All HIVE managed tables are stored in the below HDFS location.

hadoop fs -ls /user/hive/warehouse/databasename.db/tablename
查看更多
趁早两清
5楼-- · 2019-02-04 06:16

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

查看更多
登录 后发表回答