HDInsight上的直线失败,出现“ JAVA堆空间”错误
hdiuser @ headnode0:〜$ beeline
Apache Hive的Beeline版本0.14.0.2.2.7.1-10]
beeline>!connect jdbc:hive2:// headnodehost:10001 admin
在12毫秒内完成扫描
连接到jdbc:hive2:// headnodehost:10001
输入jdbc:hive2:// headnodehost:10001的密码:************
…。
Java堆空间
0:jdbc:hive2:// headnodehost:10001(关闭)>!quit
Java堆空间
线程“主”中的异常java.lang.OutOfMemoryError:Java堆空间
at org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:181) at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:288) at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37) at org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:190) at org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:163) at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:105) at java.sql.DriverManager.getConnection(DriverManager.java:571) at java.sql.DriverManager.getConnection(DriverManager.java:187) at org.apache.hive.beeline.DatabaseConnection.connect(DatabaseConnection.java:138) at org.apache.hive.beeline.DatabaseConnection.getConnection(DatabaseConnection.java:179) at org.apache.hive.beeline.Commands.close(Commands.java:916) at org.apache.hive.beeline.Commands.closeall(Commands.java:898) at org.apache.hive.beeline.BeeLine.close(BeeLine.java:814) at org.apache.hive.beeline.BeeLine.begin(BeeLine.java:764) at org.apache.hive.beeline.BeeLine.mainWithInputRedirection(BeeLine.java:476) at org.apache.hive.beeline.BeeLine.main(BeeLine.java:459) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.util.RunJar.run(RunJar.java:221) at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
hdiuser @ headnode0:〜$
[HDInsight上的Beeline失败,出现“ JAVA堆空间”错误hdiuser @ headnode0:〜$ beeline Beeline Beeline版本0.14.0.2.2.7.1-10,由Apache Hive beeline编写!!connect jdbc:hive2:// headnodehost:10001 admin。 ..
HDInsihgt配置单元服务器配置为HTTP模式,而beeline尝试以TCP模式进行通信,导致此失败。在connect参数中使用transportMode将解决此问题。这是示例示例
您可以增加减少器的内存限制。有关在运行时与beeline查询一起使用的详细信息和命令,可以使用set参数。请参考我的博客:https://dataanalyticstrend.blogspot.com/2020/04/what-is-hive-and-how-to-solve-hive-heap.html