<?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 Re: Hive sasl and python 3.5 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-sasl-and-python-3-5/m-p/55955#M5219</link>
    <description>Try adding the saslQop config to the connection configuration. The actual value will need to match your clusters Hive configuration.&lt;BR /&gt;&lt;BR /&gt;hive.connect('localhost', configuration={'hive.server2.thrift.sasl.qop': 'auth-conf})</description>
    <pubDate>Thu, 15 Jun 2017 19:26:43 GMT</pubDate>
    <dc:creator>mbigelow</dc:creator>
    <dc:date>2017-06-15T19:26:43Z</dc:date>
    <item>
      <title>Hive sasl and python 3.5</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-sasl-and-python-3-5/m-p/55918#M5218</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a Hadoop newbie so don't shoot me yet. I'm trying to import hive tables with python as described&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/21370431/how-to-access-hive-via-python" target="_self"&gt;how to access hive via python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Namely I'm working on a BDA cloudera under red hat 4.4.7 with GCC 4.4.7 with anaconda-python 3.5.2 installed on a single node and python 2.6.6 system wide.&lt;/P&gt;&lt;P&gt;The following packages are installed using anaconda (python 3.5.2 therefore):&lt;/P&gt;&lt;P&gt;- cyrus-sasl-devel&lt;/P&gt;&lt;P&gt;- python-devel&lt;/P&gt;&lt;P&gt;- pyhive&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I used the sample code (complete code and error message : &lt;A href="https://stackoverflow.com/questions/44522797/pyhive-sasl-and-pyton-3-5" target="_self"&gt;stackoverflow post&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;from pyhive import hive&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;conn = hive.Connection(host="myserver", port = 10000)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it throws:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;"Could not start sasl"&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I digged in forums, googlized a lot but I didn' find a fix for this issue (tried to uninstall reinstall different version of the sasl package, tried pyhs2 but still rely on sasl)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you any idea ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your help will be greatly&amp;nbsp;appreciated !&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:45:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-sasl-and-python-3-5/m-p/55918#M5218</guid>
      <dc:creator>burtom</dc:creator>
      <dc:date>2022-09-16T11:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hive sasl and python 3.5</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-sasl-and-python-3-5/m-p/55955#M5219</link>
      <description>Try adding the saslQop config to the connection configuration. The actual value will need to match your clusters Hive configuration.&lt;BR /&gt;&lt;BR /&gt;hive.connect('localhost', configuration={'hive.server2.thrift.sasl.qop': 'auth-conf})</description>
      <pubDate>Thu, 15 Jun 2017 19:26:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-sasl-and-python-3-5/m-p/55955#M5219</guid>
      <dc:creator>mbigelow</dc:creator>
      <dc:date>2017-06-15T19:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hive sasl and python 3.5</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-sasl-and-python-3-5/m-p/56165#M5220</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the answer. We (I should say, IT-team) find a&amp;nbsp;solution&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Upgrade of python packages thrift (to version 0.10.0) and PyHive (to version 0.3.0) don’t know why the version we used wasn’t the latest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;hive.server2.authentication&amp;lt;/name&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;NOSASL&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To the following Hive config parameters in Cloudera Manager:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HiveServer2 Advanced Configuration Snippet (Safety Valve) for hive-site.xml&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hive Client Advanced Configuration Snippet (Safety Valve) for hive-site.xml&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;necessary so that HUE would work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;from pyhive import hive
conn = hive.Connection(host="myserver", auth='NOSASL')
import pandas as pd
import sys
 
df = pd.read_sql("SELECT * FROM m_ytable", conn) 
print(sys.getsizeof(df))
df.head()&lt;/PRE&gt;&lt;P&gt;worked without problem/error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 14:07:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-sasl-and-python-3-5/m-p/56165#M5220</guid>
      <dc:creator>burtom</dc:creator>
      <dc:date>2017-06-20T14:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hive sasl and python 3.5</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-sasl-and-python-3-5/m-p/289630#M214380</link>
      <description>&lt;P&gt;Hi .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any solution you found for&amp;nbsp; same .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i having the same issue the&amp;nbsp; accessing the hive through python.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;HadoopHelp&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 13:18:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-sasl-and-python-3-5/m-p/289630#M214380</guid>
      <dc:creator>HadoopHelp</dc:creator>
      <dc:date>2020-02-12T13:18:01Z</dc:date>
    </item>
  </channel>
</rss>

