Get Table Properties out of Hive using Java API

后端 未结 3 1090
别跟我提以往
别跟我提以往 2020-12-07 05:23

I\'m trying to get table properties like table db, name, owner, and hdfs location out of the hive metastore using the metastore client in java. I think I can get the table d

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-07 06:12

    I ran the following command on my virtualbox having Cloudera CDH 5.1.0

    $ hive -e "describe extended tablename"

    The output of this command provides information in addition to tablename, dbname, owner, createtime, location. You can also refer the following CWIKI link for more details

    https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-Describe

提交回复
热议问题