<?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: Oozie/hive-server2 not able to connect to hive-metastore when SASL enabled in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/15514#M1783</link>
    <description>Where exactly is the hive.metastore.sasl.enabled property applied? Are you certain it is applied to the running HiveMetaStore server?&lt;BR /&gt;&lt;BR /&gt;Does a regular Hive CLI configured with hive.metastore.uris instead of DB properties run properly (i.e. show tables, etc. work fine)?</description>
    <pubDate>Sun, 20 Jul 2014 07:45:26 GMT</pubDate>
    <dc:creator>Harsh J</dc:creator>
    <dc:date>2014-07-20T07:45:26Z</dc:date>
    <item>
      <title>Oozie/hive-server2 not able to connect to hive-metastore when SASL enabled</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/12408#M1782</link>
      <description>&lt;P&gt;I'm using CDH5. I have set up a Hive Metastore to use SASL. i.e. the hive-site.xml has the following properties&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;hive.metastore.sasl.enabled&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;

&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;hive.metastore.kerberos.keytab.file&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;/etc/hive/conf/hive.keytab&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;

&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;hive.metastore.kerberos.principal&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;hive/hive-metastore.xxxxxxx.com@XXXXXXX.COM&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The logs show no errors on starting the hive-metastore service.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to run a hive action in an oozie workflow. The oozie-site.xml file has the following property&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;    &amp;lt;property&amp;gt;
        &amp;lt;name&amp;gt;oozie.credentials.credentialclasses&amp;lt;/name&amp;gt;
        &amp;lt;value&amp;gt;hcat=org.apache.oozie.action.hadoop.HCatCredentials&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the workflow xml file has the credentials tag&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;    &amp;lt;credentials&amp;gt;
        &amp;lt;credential name='hive_credentials' type='hcat'&amp;gt;
               &amp;lt;property&amp;gt;
                    &amp;lt;name&amp;gt;hcat.metastore.uri&amp;lt;/name&amp;gt;
                    &amp;lt;value&amp;gt;thrift://hive-metastore.xxxxxxx.com:9083&amp;lt;/value&amp;gt;
               &amp;lt;/property&amp;gt;
               &amp;lt;property&amp;gt;
                    &amp;lt;name&amp;gt;hcat.metastore.principal&amp;lt;/name&amp;gt;
                    &amp;lt;value&amp;gt;hive/hadoop-metastore.xxxxxxx.com@XXXXXXX.COM&amp;lt;/value&amp;gt;
               &amp;lt;/property&amp;gt;
         &amp;lt;/credential&amp;gt;
    &amp;lt;/credentials&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The hive action refers to the credentials using the 'cred' attribute.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;    &amp;lt;action name="hive" cred="hive_credentials"&amp;gt;
        &amp;lt;hive xmlns="uri:oozie:hive-action:0.2"&amp;gt;
            &amp;lt;job-tracker&amp;gt;${jobTracker}&amp;lt;/job-tracker&amp;gt;
            &amp;lt;name-node&amp;gt;${nameNode}&amp;lt;/name-node&amp;gt;
            &amp;lt;job-xml&amp;gt;${appPath}/hive-site.xml&amp;lt;/job-xml&amp;gt;
            &amp;lt;configuration&amp;gt;
                &amp;lt;property&amp;gt;
                    &amp;lt;name&amp;gt;mapred.job.queue.name&amp;lt;/name&amp;gt;
                    &amp;lt;value&amp;gt;${queueName}&amp;lt;/value&amp;gt;
                &amp;lt;/property&amp;gt;
            &amp;lt;/configuration&amp;gt;
            &amp;lt;script&amp;gt;${appPath}/queries.hql&amp;lt;/script&amp;gt;
        &amp;lt;/hive&amp;gt;
        &amp;lt;ok to="pass"/&amp;gt;
        &amp;lt;error to="fail"/&amp;gt;
    &amp;lt;/action&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I try to run this workflow, I get the following error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Exception in addtoJobConf
MetaException(message:Could not connect to meta store using any of the URIs provided. Most recent failure: org.apache.thrift.transport.TTransportException: No common protection layer between client and server
        at org.apache.thrift.transport.TSaslTransport.sendAndThrowMessage(TSaslTransport.java:221)
        at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:297)
        at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37)
        at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport$1.run(TUGIAssumingTransport.java:52)
        at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport$1.run(TUGIAssumingTransport.java:49)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:396)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1548)
        at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport.open(TUGIAssumingTransport.java:49)
        at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.open(HiveMetaStoreClient.java:288)
        at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.&amp;lt;init&amp;gt;(HiveMetaStoreClient.java:169)
        at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.&amp;lt;init&amp;gt;(HiveMetaStoreClient.java:109)
        at org.apache.oozie.action.hadoop.HCatCredentialHelper.getHCatClient(HCatCredentialHelper.java:87)
        at org.apache.oozie.action.hadoop.HCatCredentialHelper.set(HCatCredentialHelper.java:52)
        at org.apache.oozie.action.hadoop.HCatCredentials.addtoJobConf(HCatCredentials.java:58)
        at org.apache.oozie.action.hadoop.JavaActionExecutor.setCredentialTokens(JavaActionExecutor.java:990)
        at org.apache.oozie.action.hadoop.JavaActionExecutor.submitLauncher(JavaActionExecutor.java:851)
        at org.apache.oozie.action.hadoop.JavaActionExecutor.start(JavaActionExecutor.java:1071)
        at org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:217)
        at org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:62)
        at org.apache.oozie.command.XCommand.call(XCommand.java:280)
        at org.apache.oozie.service.CallableQueueService$CompositeCallable.call(CallableQueueService.java:323)
        at org.apache.oozie.service.CallableQueueService$CompositeCallable.call(CallableQueueService.java:252)
        at org.apache.oozie.service.CallableQueueService$CallableWrapper.run(CallableQueueService.java:174)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
        at java.lang.Thread.run(Thread.java:662)
)
        at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.open(HiveMetaStoreClient.java:334)
        at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.&amp;lt;init&amp;gt;(HiveMetaStoreClient.java:169)
        at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.&amp;lt;init&amp;gt;(HiveMetaStoreClient.java:109)
        at org.apache.oozie.action.hadoop.HCatCredentialHelper.getHCatClient(HCatCredentialHelper.java:87)
        at org.apache.oozie.action.hadoop.HCatCredentialHelper.set(HCatCredentialHelper.java:52)
        at org.apache.oozie.action.hadoop.HCatCredentials.addtoJobConf(HCatCredentials.java:58)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like oozie is not able to connect to the hive metastore using its hive client.&lt;/P&gt;
&lt;P&gt;When I start the hive-server2 and try to connect using beeline, I get the same exception message. (i.e. javax.security.sasl.SaslException: No common protection layer between client and server)&lt;/P&gt;
&lt;P&gt;I'm able to connect to the metastore using hive cli.&lt;/P&gt;
&lt;P&gt;Any idea what could be causing this issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Terance.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 21:34:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/12408#M1782</guid>
      <dc:creator>terance</dc:creator>
      <dc:date>2019-10-04T21:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie/hive-server2 not able to connect to hive-metastore when SASL enabled</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/15514#M1783</link>
      <description>Where exactly is the hive.metastore.sasl.enabled property applied? Are you certain it is applied to the running HiveMetaStore server?&lt;BR /&gt;&lt;BR /&gt;Does a regular Hive CLI configured with hive.metastore.uris instead of DB properties run properly (i.e. show tables, etc. work fine)?</description>
      <pubDate>Sun, 20 Jul 2014 07:45:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/15514#M1783</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2014-07-20T07:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie/hive-server2 not able to connect to hive-metastore when SASL enabled</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/16246#M1784</link>
      <description>&lt;P&gt;The hive.metastore.sasl.enabled is applied to hive-site.xml in /etc/hive/conf/hive-site.xml. The same hive-site.xml is also present in the oozie app directory and is referred to in workflow.xml as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;job-xml&amp;gt;${appPath}/hive-site.xml&amp;lt;/job-xml&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the hive-site.xml has hive.metastore.uris property, i think the Hive CLI will use the metastore uri and not connect to DB directly. When this property is present in hive-site.xml along with&amp;nbsp;hive.metastore.sasl.enabled,&amp;nbsp;hive.metastore.kerberos.keytab.file and hive.metastore.kerberos.principal, I'm able to use Hive CLI and run show tables, etc. So I guess Hive CLI is able to talk to metastore, but oozie is not.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 07:38:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/16246#M1784</guid>
      <dc:creator>terance</dc:creator>
      <dc:date>2014-07-31T07:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie/hive-server2 not able to connect to hive-metastore when SASL enabled</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/16250#M1785</link>
      <description>To have Oozie talk to a secured HiveMetaStore, you need to follow the&lt;BR /&gt;credentials procedure detailed at&lt;BR /&gt;&lt;A target="_blank" href="http://archive.cloudera.com/cdh5/cdh/5/oozie/DG_UnifiedCredentialsModule.html"&gt;http://archive.cloudera.com/cdh5/cdh/5/oozie/DG_UnifiedCredentialsModule.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Basically:&lt;BR /&gt;1. Enable Credentials of HCat type at the Oozie Server (via service&lt;BR /&gt;configuration, requires restart).&lt;BR /&gt;2. Add a credentials section to your workflow. This section also&lt;BR /&gt;configures the HMS location and the SPN.&lt;BR /&gt;3. Add the credential name to the action that requires a token for&lt;BR /&gt;authentication (your hive action).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jul 2014 11:47:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/16250#M1785</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2014-07-31T11:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie/hive-server2 not able to connect to hive-metastore when SASL enabled</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/16254#M1786</link>
      <description>Thanks Harsh, I've done these these. Please see my first post.</description>
      <pubDate>Thu, 31 Jul 2014 12:07:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/16254#M1786</guid>
      <dc:creator>terance</dc:creator>
      <dc:date>2014-07-31T12:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie/hive-server2 not able to connect to hive-metastore when SASL enabled</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/16264#M1787</link>
      <description>Ugh, very sorry. I replied the above post via email, thinking it was a wholly new question.&lt;BR /&gt;&lt;BR /&gt;OK, so looking further in, the Oozie server is already using a TSaslTransport for the HMS client connection, so the property is likely not the problem.&lt;BR /&gt;&lt;BR /&gt;Do you perhaps have "hadoop.rpc.protection", on your cluster, set to a non-default value of "privacy" (for traffic encryption in HDFS and the like)?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jul 2014 14:30:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/16264#M1787</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2014-07-31T14:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie/hive-server2 not able to connect to hive-metastore when SASL enabled</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/16294#M1788</link>
      <description>Yes Harsh, the 'hadoop.rpc.protection' property is set to 'privacy'. Does this property affect communication between hive metastore and its client?</description>
      <pubDate>Fri, 01 Aug 2014 06:18:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/16294#M1788</guid>
      <dc:creator>terance</dc:creator>
      <dc:date>2014-08-01T06:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie/hive-server2 not able to connect to hive-metastore when SASL enabled</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/16330#M1789</link>
      <description>It does lead to this error from another issue we've seen internally&lt;BR /&gt;(with CM canaries over HMS). Does adding the hadoop.rpc.protection&lt;BR /&gt;property pair (with "privacy" option set), to your passed&lt;BR /&gt;config file in the WF help with getting the HMS connection through?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Aug 2014 16:48:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/16330#M1789</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2014-08-01T16:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie/hive-server2 not able to connect to hive-metastore when SASL enabled</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/16378#M1790</link>
      <description>&lt;P&gt;You mean add the 'hadoop.rpc.protection' property with value 'privacy' in the hive-site.xml file in that is used in the workflow xml? I tried this and I'm still getting the same exception.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2014 05:46:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/16378#M1790</guid>
      <dc:creator>terance</dc:creator>
      <dc:date>2014-08-04T05:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie/hive-server2 not able to connect to hive-metastore when SASL enabled</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/16380#M1791</link>
      <description>Thank you for trying that out! I investigated further into the code&lt;BR /&gt;and it turns out you are hitting&lt;BR /&gt;&lt;A href="https://issues.apache.org/jira/browse/OOZIE-1593," target="_blank"&gt;https://issues.apache.org/jira/browse/OOZIE-1593,&lt;/A&gt; which we have&lt;BR /&gt;backported in our CDH 5.1.0 release. With that fix added, the&lt;BR /&gt;Credentials code will properly load the hadoop.rpc.protection when&lt;BR /&gt;making HMS connections. But it does not appear do so in prior&lt;BR /&gt;releases, even if you were to specify it as part of your action&lt;BR /&gt;configuration.&lt;BR /&gt;&lt;BR /&gt;This is the fixed code line, if you are interested in taking a look:&lt;BR /&gt;&lt;A href="https://github.com/cloudera/oozie/blob/cdh5.1.0-release/core/src/main/java/org/apache/oozie/action/hadoop/HCatCredentialHelper.java#L92" target="_blank"&gt;https://github.com/cloudera/oozie/blob/cdh5.1.0-release/core/src/main/java/org/apache/oozie/action/hadoop/HCatCredentialHelper.java#L92&lt;/A&gt;&lt;BR /&gt;(Note the missing line in 5.0.0 sources, at&lt;BR /&gt;&lt;A href="https://github.com/cloudera/oozie/blob/cdh5.0.0-release/core/src/main/java/org/apache/oozie/action/hadoop/HCatCredentialHelper.java#L86)" target="_blank"&gt;https://github.com/cloudera/oozie/blob/cdh5.0.0-release/core/src/main/java/org/apache/oozie/action/hadoop/HCatCredentialHelper.java#L86)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you are unable to upgrade immediately, you can perhaps try&lt;BR /&gt;something like the below as one way of workaround for this:&lt;BR /&gt;&lt;BR /&gt;# SSH to Oozie machine&lt;BR /&gt;# Log on as root&lt;BR /&gt;# Do below:&lt;BR /&gt;cat &amp;gt; /tmp/hive-site.xml&lt;BR /&gt;hadoop.rpc.protectionprivacy&lt;BR /&gt;^D&lt;BR /&gt;cd /tmp/&lt;BR /&gt;jar cf hive-rpc-protection.jar hive-site.xml&lt;BR /&gt;mv hive-rpc-protection.jar /var/lib/oozie/&lt;BR /&gt;# Restart Oozie server, and retry your WF.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Aug 2014 06:05:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/16380#M1791</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2014-08-04T06:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie/hive-server2 not able to connect to hive-metastore when SASL enabled</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/16386#M1792</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Sorry, the XML appears to have got eaten up. Here's clearer instructions for releases prior to CDH 5.1.0:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;# SSH to Oozie machine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;# Log on as root&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;# Do below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;cat &amp;gt; /tmp/hive-site.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;&amp;lt;configuration&amp;gt;&amp;lt;property&amp;gt;&amp;lt;name&amp;gt;hadoop.rpc.protection&amp;lt;/name&amp;gt;&amp;lt;value&amp;gt;privacy&amp;lt;/value&amp;gt;&amp;lt;/property&amp;gt;&amp;lt;/configuration&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;^D&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;cd /tmp/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;jar cf hive-rpc-protection.jar hive-site.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;mv hive-rpc-protection.jar /var/lib/oozie/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;# Restart Oozie server, and retry your WF.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2014 06:43:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/16386#M1792</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2014-08-04T06:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie/hive-server2 not able to connect to hive-metastore when SASL enabled</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/16440#M1793</link>
      <description>Thanks Harsh, that worked.</description>
      <pubDate>Tue, 05 Aug 2014 10:29:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/16440#M1793</guid>
      <dc:creator>terance</dc:creator>
      <dc:date>2014-08-05T10:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie/hive-server2 not able to connect to hive-metastore when SASL enabled</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/78301#M1794</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any instructions for CDH 5.13.1 ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a similar error message for the same config.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hadoop RPC Protection: Authenticate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error Message:&lt;/P&gt;&lt;P&gt;WARN org.apache.oozie.action.hadoop.HCatCredentials:&amp;nbsp;SERVER[myhost] USER[ABC] Group[ABC]&amp;nbsp;APP[ABCDEFGHIJKL] JOB[JOBID] Action[MyAction]&amp;nbsp;Exception in addtoJobConf&lt;BR /&gt;org.apache.hive.hcatalog.common.HCatException : 9001 : Exception occurred while processing HCat request : TException while getting delegation token.. Cause : org.apache.thrift.transport.TTransportException: java.net.SocketException: Connection reset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 14:06:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/78301#M1794</guid>
      <dc:creator>suryajayanthi</dc:creator>
      <dc:date>2018-08-09T14:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie/hive-server2 not able to connect to hive-metastore when SASL enabled</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/278858#M1795</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/213"&gt;@Harsh J&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting the same kind of issue/error while running the spark Job.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"JA009&amp;nbsp;&amp;nbsp;&amp;nbsp; JA009: org.apache.hive.hcatalog.common.HCatException : 9001 : Exception occurred while processing HCat request : TException while getting delegation token.. Cause : org.apache.thrift.transport.TTransportException: java.net.SocketTimeoutException: Read timed out "&lt;/P&gt;&lt;P&gt;We are currently using CDH Version and CManager Version (5.13.3). So can you Please suggest me whether the procedure you provided in Version 5.1.1* above&amp;nbsp;can be applied for 5.13 .&lt;/P&gt;&lt;P&gt;&amp;nbsp;Appreciate your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mannan.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 21:03:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/278858#M1795</guid>
      <dc:creator>Abdul</dc:creator>
      <dc:date>2019-10-04T21:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie/hive-server2 not able to connect to hive-metastore when SASL enabled</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/278880#M1796</link>
      <description>The original issue described here is not applicable to your version. In&lt;BR /&gt;your case it could simply be a misconfiguration that's causing oozie to not&lt;BR /&gt;load the right hive configuration required to talk to the hive service. Try&lt;BR /&gt;enabling debug logging on the oozie server if you are unable to find an&lt;BR /&gt;error in it. Also try to locate files or jars in your workflow that may be&lt;BR /&gt;supplying an invalid hive client XML.&lt;BR /&gt;</description>
      <pubDate>Sat, 05 Oct 2019 07:43:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oozie-hive-server2-not-able-to-connect-to-hive-metastore/m-p/278880#M1796</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2019-10-05T07:43:15Z</dc:date>
    </item>
  </channel>
</rss>

