<?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: Put HiveQl NiFi processor is failing sometimes with kerberos issue in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Put-HiveQl-NiFi-processor-is-failing-sometimes-with-kerberos/m-p/229804#M79580</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/45207/sudheerpc2.html" nodeid="45207"&gt;@Sudheer Velagapudi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What version of HDF/NiFi are you using? As &lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt; mentioned, this is a known issue with HDF 3.1.1. The reason is the Kerberos ticket is not auto-generated once it is expired. Due to which, the connection to Hive is not established and your query doesn't run.&lt;/P&gt;&lt;P&gt;I would recommend upgrading to HDF 3.1.2 to fix this issue, provided you are on a lower HDF version and this is the reason for your problem.&lt;/P&gt;&lt;P&gt;Please have a look at&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.1.2/bk_release-notes/content/ch_hdf_relnotes.html"&gt; this&lt;/A&gt; document for further details on HDF 3.1.2 release and the issues that it is addressing.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Jun 2018 02:16:17 GMT</pubDate>
    <dc:creator>RahulSoni</dc:creator>
    <dc:date>2018-06-16T02:16:17Z</dc:date>
    <item>
      <title>Put HiveQl NiFi processor is failing sometimes with kerberos issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Put-HiveQl-NiFi-processor-is-failing-sometimes-with-kerberos/m-p/229798#M79574</link>
      <description>&lt;P&gt;It is running fine sometimes and failing at somepoint with the below error.&lt;/P&gt;&lt;P&gt;Put HiveQL Nifi processor is failing sometimes with Hive Connection pool - Error: Could not establish connection to jdbc:hive2://example.host.com:10001/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;: org.apache.http.client.ClientProtocolException (state=08S01,code=0)&lt;/P&gt;&lt;PRE&gt;Caused by: org.apache.thrift.transport.TTransportException: org.apache.http.client.ClientProtocolException
        at org.apache.thrift.transport.THttpClient.flushUsingHttpClient(THttpClient.java:297)
        at org.apache.thrift.transport.THttpClient.flush(THttpClient.java:313)
        at org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:73)
        at org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:62)
        at org.apache.hive.service.cli.thrift.TCLIService$Client.send_OpenSession(TCLIService.java:158)
        at org.apache.hive.service.cli.thrift.TCLIService$Client.OpenSession(TCLIService.java:150)
        at org.apache.hive.jdbc.HiveConnection.openSession(HiveConnection.java:563)
        ... 35 common frames omitted
Caused by: org.apache.http.client.ClientProtocolException: null
        at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:187)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:118)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
        at org.apache.thrift.transport.THttpClient.flushUsingHttpClient(THttpClient.java:251)
        ... 41 common frames omitted
Caused by: org.apache.http.HttpException: null
        at org.apache.hive.jdbc.HttpRequestInterceptorBase.process(HttpRequestInterceptorBase.java:86)
        at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:132)
        at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:183)
        at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
        at org.apache.http.impl.execchain.ServiceUnavailableRetryExec.execute(ServiceUnavailableRetryExec.java:85)
        at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
        at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
        ... 44 common frames omitted
Caused by: org.apache.http.HttpException: null
        at org.apache.hive.jdbc.HttpKerberosRequestInterceptor.addHttpAuthHeader(HttpKerberosRequestInterceptor.java:68)
        at org.apache.hive.jdbc.HttpRequestInterceptorBase.process(HttpRequestInterceptorBase.java:74)
        ... 50 common frames omitted
Caused by: java.lang.reflect.UndeclaredThrowableException: null
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1887)
        at org.apache.hive.service.auth.HttpAuthUtils.getKerberosServiceTicket(HttpAuthUtils.java:83)
        at org.apache.hive.jdbc.HttpKerberosRequestInterceptor.addHttpAuthHeader(HttpKerberosRequestInterceptor.java:62)
        ... 51 common frames omitted
Caused by: org.ietf.jgss.GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)
        at sun.security.jgss.krb5.Krb5InitCredential.getInstance(Krb5InitCredential.java:147)
        at sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:122)
        at sun.security.jgss.krb5.Krb5MechFactory.getMechanismContext(Krb5MechFactory.java:187)
        at sun.security.jgss.GSSManagerImpl.getMechanismContext(GSSManagerImpl.java:224)
        at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:212)
        at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:179)
        at org.apache.hive.service.auth.HttpAuthUtils$HttpKerberosClientAction.run(HttpAuthUtils.java:183)
        at org.apache.hive.service.auth.HttpAuthUtils$HttpKerberosClientAction.run(HttpAuthUtils.java:151)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.ja
&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Jun 2018 03:36:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Put-HiveQl-NiFi-processor-is-failing-sometimes-with-kerberos/m-p/229798#M79574</guid>
      <dc:creator>itsssudheer</dc:creator>
      <dc:date>2018-06-15T03:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Put HiveQl NiFi processor is failing sometimes with kerberos issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Put-HiveQl-NiFi-processor-is-failing-sometimes-with-kerberos/m-p/229799#M79575</link>
      <description>&lt;P&gt;Yes it is nifi 1.5&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 04:20:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Put-HiveQl-NiFi-processor-is-failing-sometimes-with-kerberos/m-p/229799#M79575</guid>
      <dc:creator>itsssudheer</dc:creator>
      <dc:date>2018-06-15T04:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Put HiveQl NiFi processor is failing sometimes with kerberos issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Put-HiveQl-NiFi-processor-is-failing-sometimes-with-kerberos/m-p/229800#M79576</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/45207/sudheerpc2.html" nodeid="45207"&gt;@Sudheer Velagapudi&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Which version of NiFi/HDF are you using is it NiFi-1.5?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 04:21:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Put-HiveQl-NiFi-processor-is-failing-sometimes-with-kerberos/m-p/229800#M79576</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-06-15T04:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Put HiveQl NiFi processor is failing sometimes with kerberos issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Put-HiveQl-NiFi-processor-is-failing-sometimes-with-kerberos/m-p/229801#M79577</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/45207/sudheerpc2.html" nodeid="45207"&gt;@Sudheer Velagapudi&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Once you disable/enable HiveController service the issue is not going to happen unitil sometime right?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 04:47:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Put-HiveQl-NiFi-processor-is-failing-sometimes-with-kerberos/m-p/229801#M79577</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-06-15T04:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Put HiveQl NiFi processor is failing sometimes with kerberos issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Put-HiveQl-NiFi-processor-is-failing-sometimes-with-kerberos/m-p/229802#M79578</link>
      <description>&lt;P&gt;Exactly...&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 04:51:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Put-HiveQl-NiFi-processor-is-failing-sometimes-with-kerberos/m-p/229802#M79578</guid>
      <dc:creator>itsssudheer</dc:creator>
      <dc:date>2018-06-15T04:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Put HiveQl NiFi processor is failing sometimes with kerberos issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Put-HiveQl-NiFi-processor-is-failing-sometimes-with-kerberos/m-p/229803#M79579</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/45207/sudheerpc2.html" nodeid="45207"&gt;@Sudheer Velagapudi&lt;/A&gt;&lt;P&gt;It's a bug in NiFi, couldn't able to refresh the kerberos ticket, to fix this issue please upgrade to HDF-3.1.2 (or) get in touch with support team regarding this issue to get Hot fix.&lt;/P&gt;&lt;P&gt;Refer to this link regarding HDF-3.1.2 release&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.1.2/bk_release-notes/content/ch_hdf_relnotes.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.1.2/bk_release-notes/content/ch_hdf_relnotes.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 04:57:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Put-HiveQl-NiFi-processor-is-failing-sometimes-with-kerberos/m-p/229803#M79579</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-06-15T04:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Put HiveQl NiFi processor is failing sometimes with kerberos issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Put-HiveQl-NiFi-processor-is-failing-sometimes-with-kerberos/m-p/229804#M79580</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/45207/sudheerpc2.html" nodeid="45207"&gt;@Sudheer Velagapudi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What version of HDF/NiFi are you using? As &lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt; mentioned, this is a known issue with HDF 3.1.1. The reason is the Kerberos ticket is not auto-generated once it is expired. Due to which, the connection to Hive is not established and your query doesn't run.&lt;/P&gt;&lt;P&gt;I would recommend upgrading to HDF 3.1.2 to fix this issue, provided you are on a lower HDF version and this is the reason for your problem.&lt;/P&gt;&lt;P&gt;Please have a look at&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.1.2/bk_release-notes/content/ch_hdf_relnotes.html"&gt; this&lt;/A&gt; document for further details on HDF 3.1.2 release and the issues that it is addressing.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jun 2018 02:16:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Put-HiveQl-NiFi-processor-is-failing-sometimes-with-kerberos/m-p/229804#M79580</guid>
      <dc:creator>RahulSoni</dc:creator>
      <dc:date>2018-06-16T02:16:17Z</dc:date>
    </item>
  </channel>
</rss>

