Eclipse 从windows客户端计算机将数据加载到配置单元
我已经使用以下语句从windows中使用eclipse从hadoop集群成功地从配置单元中获取了数据Eclipse 从windows客户端计算机将数据加载到配置单元,eclipse,hadoop,hive,Eclipse,Hadoop,Hive,我已经使用以下语句从windows中使用eclipse从hadoop集群成功地从配置单元中获取了数据 Connection con = DriverManager.getConnection("jdbc:hive://10.10.234.229:10000/Pooja", "", ""); Statement stmt = con.createStatement(); ResultSet res = stmt.executeQuery("select
Connection con = DriverManager.getConnection("jdbc:hive://10.10.234.229:10000/Pooja", "", "");
Statement stmt = con.createStatement();
ResultSet res = stmt.executeQuery("select * from Pooja.src where id=10");
我尝试了以下陈述:
stmt.executeQuery("load data local inpath 'file:d:/data.txt' into table Pooja.test1");
但它不起作用 你的错误是什么?您使用的是哪个版本的
Hive
?我使用的是Hive 0.10。正在尝试使用eclipse将数据从windows加载到linux上hadoop集群中的配置单元。execute语句是否正确。我得到一个错误,文件路径不存在。我认为它是在集群中寻找路径,而不是在我的客户机上。