Create external with Partition

前端 未结 2 578
栀梦
栀梦 2021-01-19 12:42

I have data in hadoop and created a external table using partitions (date and hour). The table creation is fine but when i try to query the data i m not getting any results.

2条回答
  •  长发绾君心
    2021-01-19 13:20

    External Table creation via HIVE JDBC isnt reflected in the hive datawarehouse.

    After creating the table via Hive JDBC, stmt.executeQuery("create external table trial5 (TOPIC STRING) row format delimited fields terminated by '' STORED as TEXTFILE LOCATION '/user/ranjitha/trial5'");,

    and i try retrieving from this file, nothing is returned...

    Here in this link: https://groups.google.com/a/cloudera.org/forum/?fromgroups#!topic/cdh-user/YTekdFtbelE, it says external table creation not possible using HIVE JDBC..

    It would be really helpful if someone can guide me on the above..

    Thanks!

提交回复
热议问题