title: beeline not able to connect to hiveserver2
body: <p>I have a CDH 5.3 instance. 
  I start the hive-server2 by first starting the hive-metastore and then the hive-server from command line. 
  After this I use beeline to connect to my hive-server2 but apparently it is not able to so. </p>
  
  <pre><code>Could not open connection to jdbc:hive2://localhost:10000: java.net.ConnectException: Connection refused (state=08S01,code=0)
  </code></pre>
  
  <p>Another issue, I tried to see if the hive-server2 was listening on port 10000. 
  I did " <code>sudo netstat -tulpn | grep :10000</code>" but none of the applications came up.
  I also added the following property in the hive-site.xml but to no avail. Why it doesn't show up on the netstat?</p>
  
  <pre><code>&lt;property&gt;
     &lt;name&gt;hive.server2.thrift.port&lt;/name&gt;
     &lt;value&gt;10000&lt;/value&gt;
     &lt;description&gt;TCP port number to listen on, default 10000&lt;/description&gt;
   &lt;/property&gt;
  </code></pre>
  
  <p>The connect command on beeline:</p>
  
  <pre><code>!connect jdbc:hive2://localhost:10000 org.apache.hive.jdbc.HiveDriver
  </code></pre>
  
  <p>when asked for username and password, I just enter test "user" and "password"
  for the respective values and then it throws the error. 
  Any help will be appreciated</p>