<?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: NiFi SelectHiveQL fails in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-SelectHiveQL-fails/m-p/149928#M56705</link>
    <description>&lt;P&gt;Sunile and I troubleshot this issue further.&lt;/P&gt;&lt;P&gt;The first thing we did is we enabled sun.security.krb5.debug=true, this can be done in bootstrap.conf, see &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDF2/HDF-2.0.2/bk_administration/content/troubleshooting_kerberos.html"&gt;this doc&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;What we found, nifi-bootstap.log, was:&lt;/P&gt;&lt;PRE&gt;INFO [NiFi logging handler] org.apache.nifi.StdOut Found unsupported keytype (18) for smanjee@FIELD&lt;/PRE&gt;&lt;P&gt;Keytype 18 is aes256-cts-hmac-sha1-96 (see &lt;A href="http://www.iana.org/assignments/kerberos-parameters/kerberos-parameters.xhtml"&gt;this page&lt;/A&gt;), and was the cipher used when we created the keytab for the smanjee@FIELD user. We created a new keytab using the cipher des3-cbc-sha1, and this resolved the issue.&lt;/P&gt;&lt;P&gt;Note: I am not recommending that weak ciphers be used in Production environments.&lt;/P&gt;</description>
    <pubDate>Sat, 11 Mar 2017 02:02:06 GMT</pubDate>
    <dc:creator>slachterman</dc:creator>
    <dc:date>2017-03-11T02:02:06Z</dc:date>
    <item>
      <title>NiFi SelectHiveQL fails</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-SelectHiveQL-fails/m-p/149926#M56703</link>
      <description>&lt;P&gt;I am unable to get SelectHiveQL to start&lt;/P&gt;&lt;P&gt;Here is the error:&lt;/P&gt;&lt;PRE&gt;2017-03-09 16:44:49,968 WARN [Timer-Driven Process Thread-6] org.apache.hive.jdbc.HiveConnection Failed to connect to xxxx.xxxx.hortonworks.com:10010
2017-03-09 16:44:49,968 ERROR [Timer-Driven Process Thread-6] o.a.nifi.dbcp.hive.HiveConnectionPool HiveConnectionPool[id=5571c713-c8d4-1145-0000-000031b86938] Error getting Hive connection
2017-03-09 16:44:49,973 ERROR [Timer-Driven Process Thread-6] o.a.nifi.dbcp.hive.HiveConnectionPool
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Could not open client transport with JDBC Uri: jdbc:hive2://xxxxx.xxxx.hortonworks.com:10010/default;principal=hive/_HOST@LAKE: GSS initiate failed)
        at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549) ~[commons-dbcp-1.4.jar:1.4]
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388) ~[commons-dbcp-1.4.jar:1.4]
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044) ~[commons-dbcp-1.4.jar:1.4]
        at org.apache.nifi.dbcp.hive.HiveConnectionPool.getConnection(HiveConnectionPool.java:288) ~[nifi-hive-processors-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
        at sun.reflect.GeneratedMethodAccessor1869.invoke(Unknown Source) ~[na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_77]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_77]
        at org.apache.nifi.controller.service.StandardControllerServiceProvider$1.invoke(StandardControllerServiceProvider.java:177) [nifi-framework-core-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
        at com.sun.proxy.$Proxy192.getConnection(Unknown Source) [na:na]
        at org.apache.nifi.processors.hive.SelectHiveQL.onTrigger(SelectHiveQL.java:158) [nifi-hive-processors-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
        at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27) [nifi-api-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
        at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1099) [nifi-framework-core-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
        at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136) [nifi-framework-core-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
        at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47) [nifi-framework-core-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
        at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132) [nifi-framework-core-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_77]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_77]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_77]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_77]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_77]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_77]
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_77]
&lt;/PRE&gt;&lt;P&gt;Hive transport is set to binary&lt;/P&gt;&lt;P&gt;I have tried to set the jdbc connection string using in many ways..ie using ZK  or direct.  Right now I have it set to&lt;/P&gt;&lt;P&gt;jdbc:hive2://xxxx.xxxx.hortonworks.com:10010/default;principal=hive/_HOST@LAKE&lt;/P&gt;&lt;P&gt;I have set the kerberos principle to smanjee@FIELD which is my principle and kerberos keytab point to location of my keytab.  &lt;/P&gt;&lt;P&gt;I have looked at all the way to set hive jdbc here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/4103/hiveserver2-jdbc-connection-url-examples.html" target="_blank"&gt;https://community.hortonworks.com/articles/4103/hiveserver2-jdbc-connection-url-examples.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;They don't work with nifi.  any insights?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 00:53:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-SelectHiveQL-fails/m-p/149926#M56703</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2017-03-10T00:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi SelectHiveQL fails</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-SelectHiveQL-fails/m-p/149927#M56704</link>
      <description>&lt;P&gt;Hi Sunil&lt;/P&gt;&lt;P&gt;The default port for thrift is 10000. Can you please check the port Number in your HDP setup?&lt;/P&gt;&lt;P&gt;The document you added says "10001" its an assumption. &lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2&lt;/A&gt; says the following&lt;/P&gt;&lt;P&gt;"HIVE_SERVER2_THRIFT_PORT – Optional TCP port number to listen on, default 10000. Overrides the configuration file setting."&lt;/P&gt;&lt;P&gt;So please try changing the port number from 10001 to 10000 in JDBC url.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahesh Nayak Kalyanpur&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 11:07:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-SelectHiveQL-fails/m-p/149927#M56704</guid>
      <dc:creator>mkalyanpur</dc:creator>
      <dc:date>2017-03-10T11:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi SelectHiveQL fails</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-SelectHiveQL-fails/m-p/149928#M56705</link>
      <description>&lt;P&gt;Sunile and I troubleshot this issue further.&lt;/P&gt;&lt;P&gt;The first thing we did is we enabled sun.security.krb5.debug=true, this can be done in bootstrap.conf, see &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDF2/HDF-2.0.2/bk_administration/content/troubleshooting_kerberos.html"&gt;this doc&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;What we found, nifi-bootstap.log, was:&lt;/P&gt;&lt;PRE&gt;INFO [NiFi logging handler] org.apache.nifi.StdOut Found unsupported keytype (18) for smanjee@FIELD&lt;/PRE&gt;&lt;P&gt;Keytype 18 is aes256-cts-hmac-sha1-96 (see &lt;A href="http://www.iana.org/assignments/kerberos-parameters/kerberos-parameters.xhtml"&gt;this page&lt;/A&gt;), and was the cipher used when we created the keytab for the smanjee@FIELD user. We created a new keytab using the cipher des3-cbc-sha1, and this resolved the issue.&lt;/P&gt;&lt;P&gt;Note: I am not recommending that weak ciphers be used in Production environments.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2017 02:02:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-SelectHiveQL-fails/m-p/149928#M56705</guid>
      <dc:creator>slachterman</dc:creator>
      <dc:date>2017-03-11T02:02:06Z</dc:date>
    </item>
  </channel>
</rss>

