<?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 JDBC connection from Windows PC to Linux HDP2.5 with Kerberos in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-JDBC-connection-from-Windows-PC-to-Linux-HDP2-5-with/m-p/168416#M53938</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12913/alarsen.html" nodeid="12913"&gt;@Anders Boje&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Jugding by principal parameter --&amp;gt; principal=hive/XXX.YYY.com&lt;/P&gt;&lt;P&gt;I assume the Kerberos real in the connection string is in upper case, right?. If not, it needs to be&lt;/P&gt;</description>
    <pubDate>Thu, 02 Mar 2017 04:25:49 GMT</pubDate>
    <dc:creator>icocio</dc:creator>
    <dc:date>2017-03-02T04:25:49Z</dc:date>
    <item>
      <title>Hive JDBC connection from Windows PC to Linux HDP2.5 with Kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-JDBC-connection-from-Windows-PC-to-Linux-HDP2-5-with/m-p/168415#M53937</link>
      <description>&lt;P&gt;I am unable to connect with a JDBC driver from a Windows PC to Hive with Kerberos. Everything is working fine with a ODBC connection. But that is not a option in this case.&lt;/P&gt;&lt;P&gt;The connection string is &lt;/P&gt;&lt;PRE&gt;jdbc:hive2://XXX.YYY.com:10000/default;principal=hive/XXX.YYY.com@YYYY.com;saslQop=auth-conf&lt;/PRE&gt;&lt;P&gt;And the error which is recive from Hive's log is:&lt;/P&gt;&lt;PRE&gt;2017-02-09 16:12:21,254 ERROR [HiveServer2-Handler-Pool: Thread-151963]: server.TThreadPoolServer (TThreadPoolServer.java:run(297)) - Error occurred during processing of message.
java.lang.RuntimeException: org.apache.thrift.transport.TTransportException: Peer indicated failure: GSS initiate failed
        at org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:219)
        at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingTransportFactory$1.run(HadoopThriftAuthBridge.java:609)
        at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingTransportFactory$1.run(HadoopThriftAuthBridge.java:606)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:360)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1704)
        at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingTransportFactory.getTransport(HadoopThriftAuthBridge.java:606)
        at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:269)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.thrift.transport.TTransportException: Peer indicated failure: GSS initiate failed
        at org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:199)
        at org.apache.thrift.transport.TSaslServerTransport.handleSaslStartMessage(TSaslServerTransport.java:125)
        at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:271)
        at org.apache.thrift.transport.TSaslServerTransport.open(TSaslServerTransport.java:41)
        at org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:216)
        ... 10 more&lt;/PRE&gt;&lt;P&gt;I guess this is something to do with a kerberos ticket which is not recive by Hive.&lt;/P&gt;&lt;P&gt;Link to JDBC file &lt;A target="_blank" href="https://github.com/timveil/hive-jdbc-uber-jar"&gt;https://github.com/timveil/hive-jdbc-uber-jar&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 00:34:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-JDBC-connection-from-Windows-PC-to-Linux-HDP2-5-with/m-p/168415#M53937</guid>
      <dc:creator>alarsen</dc:creator>
      <dc:date>2017-02-10T00:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hive JDBC connection from Windows PC to Linux HDP2.5 with Kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-JDBC-connection-from-Windows-PC-to-Linux-HDP2-5-with/m-p/168416#M53938</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12913/alarsen.html" nodeid="12913"&gt;@Anders Boje&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Jugding by principal parameter --&amp;gt; principal=hive/XXX.YYY.com&lt;/P&gt;&lt;P&gt;I assume the Kerberos real in the connection string is in upper case, right?. If not, it needs to be&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 04:25:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-JDBC-connection-from-Windows-PC-to-Linux-HDP2-5-with/m-p/168416#M53938</guid>
      <dc:creator>icocio</dc:creator>
      <dc:date>2017-03-02T04:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hive JDBC connection from Windows PC to Linux HDP2.5 with Kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-JDBC-connection-from-Windows-PC-to-Linux-HDP2-5-with/m-p/168417#M53939</link>
      <description>&lt;P&gt;Try to install the &lt;A href="https://community.hortonworks.com/content/kbentry/28537/user-authentication-from-windows-workstation-to-hd.html"&gt;Kerberos client for Windows&lt;/A&gt;, it will show you what's your initial ticket principal, and what principals is Windows trying to negotiate with. You might have to provide a custom krb5.ini file, specially if your cluster realm differs from your default AD realm. If nothing else works you can install Knox, and connect to HS2 through Knox, HS2 has to run in http transport mode for that.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 05:43:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-JDBC-connection-from-Windows-PC-to-Linux-HDP2-5-with/m-p/168417#M53939</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2017-03-02T05:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hive JDBC connection from Windows PC to Linux HDP2.5 with Kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-JDBC-connection-from-Windows-PC-to-Linux-HDP2-5-with/m-p/168418#M53940</link>
      <description>&lt;P&gt;Thx for the replies. The problem is solve by using Hive2 (Beeline) instead of Hive1.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 05:46:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-JDBC-connection-from-Windows-PC-to-Linux-HDP2-5-with/m-p/168418#M53940</guid>
      <dc:creator>alarsen</dc:creator>
      <dc:date>2017-03-02T05:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Hive JDBC connection from Windows PC to Linux HDP2.5 with Kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-JDBC-connection-from-Windows-PC-to-Linux-HDP2-5-with/m-p/168419#M53941</link>
      <description>&lt;P&gt;Great, but next time include all relevant details in you question. We cannot imagine that you are making such basic mistakes.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 05:57:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-JDBC-connection-from-Windows-PC-to-Linux-HDP2-5-with/m-p/168419#M53941</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2017-03-02T05:57:49Z</dc:date>
    </item>
  </channel>
</rss>

