title: Connecting Hive Server2 using PHP
body: <p>I wan to connect Hive Server2 Using PHP and for this I found the only option is <a href="http://nousefor.net/55/2011/12/php/hbase-and-hive-thrift-php-client/" rel="nofollow">Apache Thrift</a> available.</p>
  
  <p>But it works only for Hive Server1 not for Hive Server2. After searching more on it found, This is because the thrift server is expecting to authenticate via SASL when you open your transport connection. Hive Server 2 defaults to using SASL - unfortunately, PHP lacks a version of TSaslClientTransport (which is used as a wrapper around another TTransport object) which handles the SASL negotiation when you open your transport connection.</p>
  
  <p>Is there any one who has succeeded on connecting hive server2 using php.</p>