<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question How to enable a pyhive connection with python 3.5 - SASL issue in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-enable-a-pyhive-connection-with-python-3-5-SASL-issue/m-p/208129#M170088</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm a Hadoop newbie, so don't shoot me yet. I tried to set a hive connection as described here &lt;A href="https://community.hortonworks.com/articles/97062/query-hive-using-python.html"&gt;query-hive-using-python.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I want to set a hive connection using the hive.Connection with python 3.5.2 but the SASL package seems to cause a problem. I saw on a forum that SASL is compatible only with 2.7 python. Is that right ?&lt;/P&gt;&lt;P&gt;Thank you in advance !
Tom&lt;/P&gt;&lt;PRE&gt;from pyhive import hive#conn = hive.Connection(host="myserver", port=10000)conn = hive.Connection(host="myserver")import pandas as pd&lt;/PRE&gt;
&lt;PRE&gt;TTransportException Traceback (most recent call last)in ()1 from pyhive import hive2 #conn = hive.Connection(host="myserver", port=10000)----&amp;gt; 3 conn = hive.Connection(host="myserver") import pandas as pd/opt/anaconda3/lib/python3.5/site-packages/pyhive/hive.py in init(self, host, port, username, database, auth, configuration)102103 try:--&amp;gt; 104 self._transport.open()105 open_session_req = ttypes.TOpenSessionReq(106 client_protocol=protocol_version,/opt/anaconda3/lib/python3.5/site-packages/thrift_sasl/init.py in open(self)70 if not ret:71 raise TTransportException(type=TTransportException.NOT_OPEN,---&amp;gt; 72 message=("Could not start SASL: %s" % self.sasl.getError()))7374 # Send initial responseTTransportException: TTransportException(message="Could not start SASL: b'Error in sasl_client_start (-4) SASL(-4): no mechanism available: No worthy mechs found'", type=1)&lt;/PRE&gt;</description>
    <pubDate>Tue, 13 Jun 2017 22:06:35 GMT</pubDate>
    <dc:creator>burtom</dc:creator>
    <dc:date>2017-06-13T22:06:35Z</dc:date>
  </channel>
</rss>

