问题一:
php客户端,链接hiveserver2 ,报错 如下
1: server.TThreadPoolServer (TThreadPoolServer.java:run(215)) - Error occurred
org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$HiveSaslServerTransportF
180
分析,由于认证问题,hiveserver2
解决方法:内网环境关闭认证 HiveServer2 Authentication
改为NOSASL,然后重启服务器端口 hiveserver2
问题二;如果遇到以下错误 ,常常由于环境变量错误,造成启动时user有问题。修改环境变量即可
2016-10-19 19:31:19,279 ERROR [HiveServer2-Handler-Pool: Thread-29]: server.TThreadPoolServer (TThreadPoolServer.java:run(213)) - Thrift error occurred during processing of message. org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client? at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:213) at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:27) at org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:56) at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:206) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)
echo $PATH
/bin:/sbin:/usr/bin