title: HiveServer2 Authentication: HTTP ERROR CODE 401
body: <p>Recently we have deployed LDAP Authentication on HiveServe2 in our HDP Production Cluster.</p>
  
  <p>Many users are complaining that they are receiving below error randomly:</p>
  
  <p><strong>[Code: 0, SQL State: 08S01]  org.apache.thrift.transport.TTransportException: HTTP Response code: 401</strong></p>
  
  <p>Can anyone give me a hint on how to resolve it? We don't have Knox or Kerberos setup.</p>
  
  <p>I have gone through the logs and this issue seems to be temporary but annoying. If we try to re-run the code a few times, it will eventually run successfully.</p>