title: Where to find hive url, username and password?
body: <p>In the command line, I can enter <code>hive</code> to get hive shell like:</p>
  
  <pre><code>hive&gt;
  </code></pre>
  
  <p>then execute some queries.</p>
  
  <p>Now I need write a python script with PyHive to execute some tasks, like:</p>
  
  <pre><code>conn = hive.Connection(host="10.111.22.11", port=10000, username="user1")
  </code></pre>
  
  <p>Where can I find the host, port, username, password used by shell?</p>