I have an instance of CDH 5.3. I run hive-server2 by first running hive-metastore and then hive-server from the command line. After that, I use beeline to connect to my hive-server2, but apparently it is not.
Could not open connection to jdbc:hive2://localhost:10000: java.net.ConnectException: Connection refused (state=08S01,code=0)
Another problem, I tried to check if hive-server2 was listening on port 10000. I did " sudo netstat -tulpn | grep :10000 ", but none of the applications appeared. I also added the following property to hive-site.xml, but to no avail. Why is it not showing up in netstat?
<property> <name>hive.server2.thrift.port</name> <value>10000</value> <description>TCP port number to listen on, default 10000</description> </property>
The connect command on beeline:
!connect jdbc:hive2:
when you are asked to enter a username and password, I just enter the test "user" and "passwords" for the corresponding values, and then it gives an error. Any help would be appreciated
source share