Create impala table and add data using java

删除回忆录丶 提交于 2019-12-25 02:57:48

问题


I am trying to create an impala table and add data into it using java.

1.) How should I create connection for impala?

2.) Can I create an impala table directly or should I create a hive table and access it using impala?

A java program or code snippets will help.


回答1:


You could use the impala jdbc driver.

Refer the following link , this has a sample code for the impala connection using the jdbc driver.

For creating a table in impala you could pass it as a query, neednot do it in hive. In case you add/create a table in hive then you need to invalidate metadata in impala so as to reflect the table details in impala.



来源:https://stackoverflow.com/questions/29499726/create-impala-table-and-add-data-using-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!