Hive-Java(jdbc) connection problems

二次信任 提交于 2019-12-11 16:35:30

问题


I'm trying to connect with hive via jdbc but it gives me the following exception

java.sql.SQLException: org.apache.thrift.transport.TTransportException

I already have running hadoop and derby. By the console of hive (in linux) I can work but once I try it for the project in java it does not work

Class.forName("org.apache.hadoop.hive.jdbc.HiveDriver");
Connection co = DriverManager.getConnection("jdbc:hive://localhost:9000/almacendb", "","");

来源:https://stackoverflow.com/questions/50688347/hive-javajdbc-connection-problems

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