<div dir="ltr"><div>Hi All,<br></div>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Greetings ! Wish you are doing good ! I am just reaching out to you in case if you have any answer or help me direct to the right forum please:<br><br><div class="gmail-post-text">
<p>We are facing with hive connectivity from the python on Azure
HDinsights, We have installed required SASL,thrift_sasl(0.2.1) and
Thirft (0.9.3) packages on Ubuntu , but some how when we are trying to
connect Hive using following packages we are getting errors , It would
be really great help if you could provide some pointers based on your
experience</p>
<p>Example 1:
from impala.dbapi import connect
conn=connect(host="localhost", port=10001 , auth_mechanism="PLAIN",
user="admin", password="PWD") (tried both <a href="http://127.0.0.1:10000/10001">127.0.0.1:10000/10001</a>)</p>
<p>Example 2:</p>
<p>import pyhs2
conn = pyhs2.connect(host='localhost ', port=10000,authMechanism="PLAIN", user='admin', password=,database='default')</p>
<p>Example 3:</p>
<p>from pyhive import hive
conn = hive.Connection(host="localhost", port=10001, username="admin", password=None, auth='NONE')</p>
<p>Across all of the above examples we are getting the error message:
thrift.transport.TTransport.TTransportException: Tsocket read 0 bytes</p>
Thanks,<br></div><div class="gmail-post-text">Debu<br></div></div>