title: Cannot connect to hive using beeline, user root cannot impersonate anonymous
body: <p>I'm trying to connect to hive using beeline <code>!connect jdbc:hive2://localhost:10000</code> and I'm being asked for a username and password </p>
  
  <hr>
  
  <p><code>Connecting to jdbc:hive2://localhost:10000'
  Enter username for jdbc:hive2://localhost:10000: 
  Enter password for jdbc:hive2://localhost:10000:</code></p>
  
  <hr>
  
  <p>As I don't know what username or password I'm supposed to type in I'm leaving it empty which causes the error: <code>Error: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: root is not allowed to impersonate anonymous (state=,code=0)
  </code> 
  My setup is a single node hadoop cluster in ubuntu.
  I can confirm that the services are up and running, both hadoop and hiveserver2</p>
  
  <p>The question is , what are these username and password I'm being asked, where can I find them or set them?</p>
  
  <p>Thanks in advance</p>