Tuesday, February 6, 2018

warning: "set mapreduce.framework.name=local" terminates hiveserver2 server process

0: jdbc:hive2://cdh-vm:10000/employees> set mapreduce.framework.name=local;
No rows affected (0.015 seconds)
0: jdbc:hive2://cdh-vm:10000/employees> select id,count(*) num from t1 group by id order by num;
Unknown HS2 problem when communicating with Thrift server.
Error: org.apache.thrift.transport.TTransportException: java.net.SocketException: Broken pipe (Write failed) (state=08S01,code=0)

# /var/run/cloudera-scm-agent/process/175-hive-HIVESERVER2/logs/stderr.log
Job running in-process (local Hadoop)
+ ps -p 898 -c
+ grep java
+ RET=0
+ '[' 0 -eq 0 ']'
+ TARGET=898
++ date
+ echo Tue Feb 6 22:19:34 +08 2018
+ kill -9 898