Re: error when beeline connecting to hiveserver2

2018-04-25 Thread 侯宗田
Hi, Antal Thank you, I have followed some web guide and set hive2 transport mode to http, then the port number become 10001. I changed it back and set the proxy username in hdfs and it worked. Regards, Hou > 在 2018年4月25日,下午6:23,Antal Sinkovits 写道: > > Hi, > > First

Re: error when beeline connecting to hiveserver2

2018-04-25 Thread Antal Sinkovits
Hi, First of all, I would check if the HiveServer2 is running, and listens on the given port. E.g: lsof -i -P |grep java You should see something like: java 33169 asinkovits 349u IPv6 0x 0t0 TCP *:1 (LISTEN) java 33169 asinkovits 350u IPv6

Re: error when beeline connecting to hiveserver2

2018-04-23 Thread Johannes Alberti
You should connect by default to 1, the webui port is not the port beeline connects with. Regards, Johannes Sent from my iPhone > On Apr 23, 2018, at 6:38 AM, 侯宗田 wrote: > > Hi, > > I have started hiveserver2 and try to connect it with beeline using the >

error when beeline connecting to hiveserver2

2018-04-23 Thread 侯宗田
Hi, I have started hiveserver2 and try to connect it with beeline using the following command: >!connect jdbc:hive2://localhost:10002/default But get the following error WARN jdbc.HiveConnection: Failed to connect to localhost:10002 Unknown HS2 problem when communicating with Thrift server.