<?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: impala - kerberosed - jdbc connection from SQL Workbench on Windows in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/50599#M14673</link>
    <description>&lt;P&gt;&lt;BR /&gt;Hello, did you ever fix this issue?&lt;BR /&gt;&lt;BR /&gt;[Simba][ImpalaJDBCDriver](500168)&lt;BR /&gt;&lt;BR /&gt;Error creating login context using ticket cache: Unable to obtain Principal Name for authentication&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2017 15:24:51 GMT</pubDate>
    <dc:creator>Diegolotr99</dc:creator>
    <dc:date>2017-02-08T15:24:51Z</dc:date>
    <item>
      <title>impala - kerberosed - jdbc connection from SQL Workbench on Windows</title>
      <link>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/45821#M14667</link>
      <description>&lt;P&gt;We have a 15 Node Kerborised Impala Cluster with a HAProxy. We have no issue using HUE to run queries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are also able to use the ODBC Driver on a Windows Machine, authenticate with Kerberos and connect to the Impala via HA Proxy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when we try to connect to the Impala HA Proxy using SQL Workbench via JDBC Driver. We get the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Simba][ImpalaJDBCDriver](500310) Invalid operation: Unable to obtain Principal Name for authentication ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The connection string is:&lt;/P&gt;&lt;P&gt;jdbc:impala://&amp;lt;PUBLIC IP ADDRESS&amp;gt;:21051;AuthMech=1;KrbRealm=&amp;lt;REALM&amp;gt;;KrbHostFQDN=&amp;lt;fqdn&amp;gt;;KrbServiceName=impala;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We tried adding the Principal parameter, but it doesn't help. Any ideas, on how to get Impala JDBC to work from a windows machine using Kerberos?&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;</description>
      <pubDate>Fri, 16 Sep 2022 10:42:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/45821#M14667</guid>
      <dc:creator>krishnat</dc:creator>
      <dc:date>2022-09-16T10:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: impala - kerberosed - jdbc connection from SQL Workbench on Windows</title>
      <link>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/46202#M14668</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please enable the JDBC trace log for further debugging:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;jdbc:impala://{PUBLIC IP ADDRESS}:21051;AuthMech=1;KrbRealm={REALM};KrbHost&lt;/SPAN&gt;&lt;SPAN&gt;FQDN={fqdn};KrbServiceName=impala;LogLevel=6;LogPath=/path/to/directory&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and then provide errors in trace log under&amp;nbsp;&lt;SPAN&gt;/path/to/directory for review.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Please also find the corresponding errors in impala daemon logs.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 20:50:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/46202#M14668</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2016-10-12T20:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: impala - kerberosed - jdbc connection from SQL Workbench on Windows</title>
      <link>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/46208#M14669</link>
      <description>&lt;P&gt;&lt;STRONG&gt;This is what I see in the JDBC Trace Log Files.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oct 12 17:50:52.989 TRACE 27 com.cloudera.impala.dsi.core.impl.DSIConnection.DSIConnection(com.cloudera.impala.hivecommon.core.HiveJDBCEnvironment@1bbd56aa): +++++ enter +++++&lt;BR /&gt;Oct 12 17:50:52.989 TRACE 27 com.cloudera.impala.dsi.core.impl.DSIConnection.setProperty(101, Variant[type: TYPE_WSTRING, value: ImpalaJDBC]): +++++ enter +++++&lt;BR /&gt;Oct 12 17:50:52.989 TRACE 27 com.cloudera.impala.dsi.core.impl.DSIConnection.setProperty(139, Variant[type: TYPE_WSTRING, value: User]): +++++ enter +++++&lt;BR /&gt;Oct 12 17:50:52.989 TRACE 27 com.cloudera.impala.dsi.core.impl.DSIConnection.setProperty(22, Variant[type: TYPE_WSTRING, value: Impala]): +++++ enter +++++&lt;BR /&gt;Oct 12 17:50:52.989 TRACE 27 com.cloudera.impala.dsi.core.impl.DSIConnection.setProperty(58, Variant[type: TYPE_WSTRING, value: `]): +++++ enter +++++&lt;BR /&gt;Oct 12 17:50:52.989 TRACE 27 com.cloudera.impala.dsi.core.impl.DSIConnection.setProperty(66, Variant[type: TYPE_UINT16, value: -1]): +++++ enter +++++&lt;BR /&gt;Oct 12 17:50:52.989 TRACE 27 com.cloudera.impala.dsi.core.impl.DSIConnection.setProperty(68, Variant[type: TYPE_UINT16, value: -1]): +++++ enter +++++&lt;BR /&gt;Oct 12 17:50:52.989 TRACE 27 com.cloudera.impala.dsi.core.impl.DSIConnection.setProperty(76, Variant[type: TYPE_UINT16, value: -1]): +++++ enter +++++&lt;BR /&gt;Oct 12 17:50:52.989 TRACE 27 com.cloudera.impala.dsi.core.impl.DSIConnection.setProperty(81, Variant[type: TYPE_UINT16, value: -1]): +++++ enter +++++&lt;BR /&gt;Oct 12 17:50:52.989 TRACE 27 com.cloudera.impala.dsi.core.impl.DSIConnection.setProperty(83, Variant[type: TYPE_UINT16, value: -1]): +++++ enter +++++&lt;BR /&gt;Oct 12 17:50:52.989 TRACE 27 com.cloudera.impala.dsi.core.impl.DSIConnection.setProperty(80, Variant[type: TYPE_WSTRING, value: N]): +++++ enter +++++&lt;BR /&gt;Oct 12 17:50:52.989 TRACE 27 com.cloudera.impala.dsi.core.impl.DSIConnection.registerWarningListener(com.cloudera.impala.jdbc.common.SWarningListener@157abbad): +++++ enter +++++&lt;BR /&gt;Oct 12 17:50:52.989 TRACE 27 com.cloudera.impala.hivecommon.core.HiveJDBCConnection.updateConnectionSettings(): +++++ enter +++++&lt;BR /&gt;Oct 12 17:50:52.989 TRACE 27 com.cloudera.impala.hivecommon.core.HiveJDBCConnection.connect({AuthMech=Variant[type: TYPE_WSTRING, value: 1], ConnSchema=Variant[type: TYPE_WSTRING, value: NULL], DatabaseType=Variant[type: TYPE_WSTRING, value: Impala], HiveServerType=Variant[type: TYPE_WSTRING, value: 2], Host=Variant[type: TYPE_WSTRING, value: gateway.mygws.com], KrbHostFQDN=Variant[type: TYPE_WSTRING, value: ip-10-0-0-186.ec2.internal], KrbRealm=Variant[type: TYPE_WSTRING, value: MOBISTAT], KrbServiceName=Variant[type: TYPE_WSTRING, value: impala], LogLevel=Variant[type: TYPE_WSTRING, value: 6], LogPath=Variant[type: TYPE_WSTRING, value: D:\Mobistat\Log\], Port=Variant[type: TYPE_WSTRING, value: 21051], Principal=Variant[type: TYPE_WSTRING, value: krishnat/ip-10-0-0-186@MOBISTAT]}): +++++ enter +++++&lt;BR /&gt;Oct 12 17:50:52.989 ERROR 27 com.cloudera.impala.exceptions.ExceptionConverter.toSQLException: [Simba][ImpalaJDBCDriver](500310) Invalid operation: Unable to obtain Principal Name for authentication ;&lt;BR /&gt;java.sql.SQLException: [Simba][ImpalaJDBCDriver](500310) Invalid operation: Unable to obtain Principal Name for authentication ;&lt;BR /&gt;at com.cloudera.impala.hivecommon.api.HiveServer2ClientFactory.createTransport(HiveServer2ClientFactory.java:224)&lt;BR /&gt;at com.cloudera.impala.hivecommon.api.HiveServer2ClientFactory.createClient(HiveServer2ClientFactory.java:52)&lt;BR /&gt;at com.cloudera.impala.hivecommon.core.HiveJDBCConnection.connect(HiveJDBCConnection.java:597)&lt;BR /&gt;at com.cloudera.impala.jdbc.common.BaseConnectionFactory.doConnect(BaseConnectionFactory.java:219)&lt;BR /&gt;at com.cloudera.impala.jdbc.common.AbstractDriver.connect(AbstractDriver.java:216)&lt;BR /&gt;at workbench.db.DbDriver.connect(DbDriver.java:513)&lt;BR /&gt;at workbench.db.ConnectionMgr.connect(ConnectionMgr.java:244)&lt;BR /&gt;at workbench.db.ConnectionMgr.getConnection(ConnectionMgr.java:172)&lt;BR /&gt;Caused by: com.cloudera.impala.support.exceptions.GeneralException: [Simba][ImpalaJDBCDriver](500310) Invalid operation: Unable to obtain Principal Name for authentication ;&lt;BR /&gt;... 8 more&lt;BR /&gt;Caused by: javax.security.auth.login.LoginException: Unable to obtain Principal Name for authentication&lt;BR /&gt;at com.sun.security.auth.module.Krb5LoginModule.promptForName(Unknown Source)&lt;BR /&gt;at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Unknown Source)&lt;BR /&gt;at com.sun.security.auth.module.Krb5LoginModule.login(Unknown Source)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Unknown Source)&lt;BR /&gt;at javax.security.auth.login.LoginContext.invoke(Unknown Source)&lt;BR /&gt;at javax.security.auth.login.LoginContext.access$000(Unknown Source)&lt;BR /&gt;at javax.security.auth.login.LoginContext$4.run(Unknown Source)&lt;BR /&gt;at javax.security.auth.login.LoginContext$4.run(Unknown Source)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)&lt;BR /&gt;at javax.security.auth.login.LoginContext.login(Unknown Source)&lt;BR /&gt;at com.cloudera.impala.hivecommon.api.HiveServer2ClientFactory.createTransport(HiveServer2ClientFactory.java:113)&lt;BR /&gt;at com.cloudera.impala.hivecommon.api.HiveServer2ClientFactory.createClient(HiveServer2ClientFactory.java:52)&lt;BR /&gt;at com.cloudera.impala.hivecommon.core.HiveJDBCConnection.connect(HiveJDBCConnection.java:597)&lt;BR /&gt;at com.cloudera.impala.jdbc.common.BaseConnectionFactory.doConnect(BaseConnectionFactory.java:219)&lt;BR /&gt;at com.cloudera.impala.jdbc.common.AbstractDriver.connect(AbstractDriver.java:216)&lt;BR /&gt;at workbench.db.DbDriver.connect(DbDriver.java:513)&lt;BR /&gt;at workbench.db.ConnectionMgr.connect(ConnectionMgr.java:244)&lt;BR /&gt;at workbench.db.ConnectionMgr.getConnection(ConnectionMgr.java:172)&lt;BR /&gt;at workbench.gui.profiles.ConnectionGuiHelper$1.run(ConnectionGuiHelper.java:104)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I checked very worker node, did not see any errors in the Impala Daemon Logs.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 21:55:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/46208#M14669</guid>
      <dc:creator>krishnat</dc:creator>
      <dc:date>2016-10-12T21:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: impala - kerberosed - jdbc connection from SQL Workbench on Windows</title>
      <link>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/46401#M14670</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you "kinit" as a valid user before attempting to connect impala on Windows?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 10:43:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/46401#M14670</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2016-10-18T10:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: impala - kerberosed - jdbc connection from SQL Workbench on Windows</title>
      <link>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/46415#M14671</link>
      <description>&lt;P&gt;Yes, I am KINITed. From the MIT Kerberos Desktop client, I can see both the Kerberos Tocket and the Windows Domain Account ticket.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also went to command prompt and verified&amp;nbsp;that, C:\Program Files\MIT\Kerberos\bin\klist shows the ticket.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MIT_Ker.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/2263i5653F61260463A58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MIT_Ker.png" alt="MIT_Ker.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 14:35:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/46415#M14671</guid>
      <dc:creator>krishnat</dc:creator>
      <dc:date>2016-10-18T14:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: impala - kerberosed - jdbc connection from SQL Workbench on Windows</title>
      <link>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/48301#M14672</link>
      <description>&lt;P&gt;Did you ever fix this issue? We have a similar sitation where impala/jdbc connections work for odbc and some users with jdbc. We have a few users that have this same problem with jdbc only and not sure what the difference is on thier connections. We've verified kinit and java versions are the same as for working users. So far a mystery. "[Simba][ImpalaJDBCDriver](500168) Error creating login context using ticket cache: Unable to obtain Principal Name for authentication.". From my test account, it works just fine, from many users it works but one user's account they get this error message.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2016 14:47:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/48301#M14672</guid>
      <dc:creator>tceder</dc:creator>
      <dc:date>2016-12-03T14:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: impala - kerberosed - jdbc connection from SQL Workbench on Windows</title>
      <link>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/50599#M14673</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hello, did you ever fix this issue?&lt;BR /&gt;&lt;BR /&gt;[Simba][ImpalaJDBCDriver](500168)&lt;BR /&gt;&lt;BR /&gt;Error creating login context using ticket cache: Unable to obtain Principal Name for authentication&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 15:24:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/50599#M14673</guid>
      <dc:creator>Diegolotr99</dc:creator>
      <dc:date>2017-02-08T15:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: impala - kerberosed - jdbc connection from SQL Workbench on Windows</title>
      <link>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/50600#M14674</link>
      <description>&lt;P&gt;We got ODBC Connection working with Kerberos. However, JDBC has issues identifying the Kerberos Principal. We&amp;nbsp;thought about investigating the JDBC Connector source code, but other issues took priority.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have heard from other Big Data Engineerins thru meetups, that JDBC only works with username-password. For which, we need to setup LDAP Authentication for Hive and Impala. Before which, we need to setup cross-realm trust between LDAP/Active Directory and Kerberos - which prooves to be a pain by itself.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 15:31:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/50600#M14674</guid>
      <dc:creator>krishnat</dc:creator>
      <dc:date>2017-02-08T15:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: impala - kerberosed - jdbc connection from SQL Workbench on Windows</title>
      <link>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/55915#M14675</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/20648"&gt;@Diegolotr99&lt;/a&gt;&lt;BR /&gt;Did u fixed this issue?? im facing the same issue i cant find any solution..please help me...&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 09:52:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/55915#M14675</guid>
      <dc:creator>dharu</dc:creator>
      <dc:date>2017-06-15T09:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: impala - kerberosed - jdbc connection from SQL Workbench on Windows</title>
      <link>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/56131#M14676</link>
      <description>&lt;P&gt;Install JCE.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 16:07:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/56131#M14676</guid>
      <dc:creator>andrzej_jedrzej</dc:creator>
      <dc:date>2017-06-19T16:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: impala - kerberosed - jdbc connection from SQL Workbench on Windows</title>
      <link>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/60217#M14677</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are facing the same issue while connecting through JDBC connection. Were you able to resolve the issue?&lt;/P&gt;&lt;P&gt;Please help me with your findings and resolution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Cloudera][HiveJDBCDriver](500168) Error creating login context using ticket cache: Unable to obtain Principal Name for authentication&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 08:24:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/60217#M14677</guid>
      <dc:creator>KamleshG</dc:creator>
      <dc:date>2017-09-22T08:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: impala - kerberosed - jdbc connection from SQL Workbench on Windows</title>
      <link>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/60228#M14678</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I followed the following approaches after that:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Deleted the KRB5CCNAME environment variable containing the path to the KerberosTickets.txt.&lt;/LI&gt;
&lt;LI&gt;Set up the Kerberos configuration file( krb5.ini) and&amp;nbsp; entered the values as per the krb5.conf file in the dev cluster node.&lt;/LI&gt;
&lt;LI&gt;Set up the JAAS login configuration file with the following fields:&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Client {&lt;/P&gt;
&lt;P&gt;com.sun.security.auth.module.Krb5LoginModule required&lt;/P&gt;
&lt;P&gt;useKeyTab=false&lt;/P&gt;
&lt;P&gt;principal=user@COMPANY.COM&lt;/P&gt;
&lt;P&gt;doNotPrompt=true;&lt;/P&gt;
&lt;P&gt;};&lt;/P&gt;
&lt;P&gt;And set the environment variable java.security.auth.login.config to the location of the JAAS config file.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;When I &amp;nbsp;tried connecting to hive in JAVA after making these changes, the connection was made successfully.&lt;/LI&gt;
&lt;LI&gt;But when I &amp;nbsp;tried the same code in Rstudio, I &amp;nbsp;faced exception:
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;“Error in .jcall(drv@jdrv, "Ljava/sql/Connection;", "connect", as.character(url)[1],&amp;nbsp; :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;java.sql.SQLException: [Cloudera][HiveJDBCDriver](500168) Error creating login context using ticket cache: Unable to obtain Principal Name for authentication .”&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Also, I tried this code in R Console, but the following exception cropped up:&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;“java.sql.SQLException: [Cloudera][HiveJDBCDriver](500164) Error initialized or created transport for authentication: [Cloudera][HiveJDBCDriver](500169) Unable to connect to server: GSS initiate failed”&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My understanding is that it is R is not able to get the environment variable path. correct me if i'm wrong.&lt;/P&gt;
&lt;P&gt;I've seen many links in google but that didn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rconsole :3.4.1 and&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RStudio : version 1.1.353&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please suggest us how do we proceed further.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 15:28:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/60228#M14678</guid>
      <dc:creator>KamleshG</dc:creator>
      <dc:date>2017-09-22T15:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: impala - kerberosed - jdbc connection from SQL Workbench on Windows</title>
      <link>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/60229#M14679</link>
      <description>&lt;P&gt;Do you have JCE installed in you system?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 14:39:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/60229#M14679</guid>
      <dc:creator>andrzej_jedrzej</dc:creator>
      <dc:date>2017-09-22T14:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: impala - kerberosed - jdbc connection from SQL Workbench on Windows</title>
      <link>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/60240#M14680</link>
      <description>As I mention JASS config approach is working for me from Java code.&lt;BR /&gt;Problem I am facing from R Code JCE is install on my machine still i am not able to connect from R.&lt;BR /&gt;Could anyone help on the same</description>
      <pubDate>Sat, 23 Sep 2017 04:39:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/60240#M14680</guid>
      <dc:creator>KamleshG</dc:creator>
      <dc:date>2017-09-23T04:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: impala - kerberosed - jdbc connection from SQL Workbench on Windows</title>
      <link>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/60278#M14681</link>
      <description>&lt;P&gt;Do you connect from Windows or Linux box?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you sure that you have valid kerberos ticket on your machine? Could you run klist, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to use jaas&amp;nbsp;they config should more like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Client {
com.sun.security.auth.module.Krb5LoginModule required
useKeyTab=true
keyTab="PathToTheKeyTab"
principal="cloudera@CLOUDERA"
doNotPrompt=true;
};&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 12:44:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/60278#M14681</guid>
      <dc:creator>andrzej_jedrzej</dc:creator>
      <dc:date>2017-09-25T12:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: impala - kerberosed - jdbc connection from SQL Workbench on Windows</title>
      <link>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/60279#M14682</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're trying to connect from windows machine. We have a valid ticket listed from klist. The error we are getting from rstudio is :&lt;/P&gt;&lt;P&gt;“Error in .jcall(drv@jdrv, "Ljava/sql/Connection;", "connect", as.character(url)[1],&amp;nbsp; :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;java.sql.SQLException: [Cloudera][HiveJDBCDriver](500168) Error creating login context using ticket cache: Unable to obtain Principal Name for authentication .”&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 12:43:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/60279#M14682</guid>
      <dc:creator>KamleshG</dc:creator>
      <dc:date>2017-09-25T12:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: impala - kerberosed - jdbc connection from SQL Workbench on Windows</title>
      <link>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/60280#M14683</link>
      <description>&lt;P&gt;Could you show me the output of the klist&amp;nbsp;command, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where do you cache kerberos tickets? Do you have env variable to set this up?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 12:55:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/60280#M14683</guid>
      <dc:creator>andrzej_jedrzej</dc:creator>
      <dc:date>2017-09-25T12:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: impala - kerberosed - jdbc connection from SQL Workbench on Windows</title>
      <link>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/60319#M14684</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not able to klist now. After i run kdestroy -a and then i generate a ticket, the ticket is created successfully but the the ticket is not displayed through klist and the error happens to be the same.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 08:54:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/60319#M14684</guid>
      <dc:creator>KamleshG</dc:creator>
      <dc:date>2017-09-26T08:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: impala - kerberosed - jdbc connection from SQL Workbench on Windows</title>
      <link>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/60320#M14685</link>
      <description>If you can not klist then sth is wrong. Do you have environment varialbe that points to kerberos cache path?</description>
      <pubDate>Tue, 26 Sep 2017 09:07:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/60320#M14685</guid>
      <dc:creator>andrzej_jedrzej</dc:creator>
      <dc:date>2017-09-26T09:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: impala - kerberosed - jdbc connection from SQL Workbench on Windows</title>
      <link>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/60321#M14686</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wanted to add a point: after kinit the ticket is generated succefully. It is shown in the&amp;nbsp;MIT Kerberos Ticket Manager but it is not viewed in klist. We're following this link:&amp;nbsp;&lt;A href="https://www.cloudera.com/documentation/other/connectors/hive-jdbc/latest/Cloudera-JDBC-Driver-for-Apache-Hive-Install-Guide.pdf" target="_blank"&gt;https://www.cloudera.com/documentation/other/connectors/hive-jdbc/latest/Cloudera-JDBC-Driver-for-Apache-Hive-Install-Guide.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just few things:&lt;/P&gt;&lt;P&gt;1) Set an environment variable that points to kerberostickets.txt&lt;/P&gt;&lt;P&gt;After it didn't work:&lt;/P&gt;&lt;P&gt;1) Removed the environment variable and followed the next step of JAAS conf. This led to successful hive connectivity through java but in R we're getting the error&lt;/P&gt;&lt;P&gt;2) After running kdestroy, and then kinit. The klist does not give anything. It gives null or empty. Now unable to run it through java too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Set the environment variable again to point to CredentialCache file. It again gives empty klist.&lt;/P&gt;&lt;P&gt;This is in Windows machine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 09:21:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/impala-kerberosed-jdbc-connection-from-SQL-Workbench-on/m-p/60321#M14686</guid>
      <dc:creator>KamleshG</dc:creator>
      <dc:date>2017-09-26T09:21:52Z</dc:date>
    </item>
  </channel>
</rss>

