<?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: Apache Oozie Distcp Action with Kerberos enabled clusters in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151952#M114431</link>
    <description>&lt;P&gt;Let me check.   The Java opts might be getting added after the class&lt;/P&gt;</description>
    <pubDate>Sat, 11 Mar 2017 04:01:05 GMT</pubDate>
    <dc:creator>vranganathan</dc:creator>
    <dc:date>2017-03-11T04:01:05Z</dc:date>
    <item>
      <title>Apache Oozie Distcp Action with Kerberos enabled clusters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151947#M114426</link>
      <description>&lt;P&gt;my environment requires that I pass &lt;/P&gt;&lt;PRE&gt;-D ipc.client.fallback-to-simple-auth-allowed=true&lt;/PRE&gt;&lt;P&gt;to distcp command, in distcp 0.2 action specification for Oozie 4.2, I see java-opts option and I can't seem to make workflow run by passing this property. The only way I can imagine it work is if I put the property in core-site.xml which in production clusters is not feasible. My workflow for reference is&lt;/P&gt;&lt;PRE&gt;&amp;lt;action name="distcp_1"&amp;gt;
        &amp;lt;distcp xmlns="uri:oozie:distcp-action:0.2"&amp;gt;
            &amp;lt;job-tracker&amp;gt;${resourceManager}&amp;lt;/job-tracker&amp;gt;
            &amp;lt;name-node&amp;gt;${nameNode}&amp;lt;/name-node&amp;gt;
            &amp;lt;arg&amp;gt;hdfs://aervits-hdp70:8020/tmp/hellounsecure&amp;lt;/arg&amp;gt;
            &amp;lt;arg&amp;gt;hdfs://hacluster:8020/user/centos/&amp;lt;/arg&amp;gt;
            &amp;lt;java-opts&amp;gt;-Dipc.client.fallback-to-simple-auth-allowed=true&amp;lt;/java-opts&amp;gt;
        &amp;lt;/distcp&amp;gt;
        &amp;lt;ok to="end"/&amp;gt;
        &amp;lt;error to="kill"/&amp;gt;
    &amp;lt;/action&amp;gt; &lt;/PRE&gt;</description>
      <pubDate>Sat, 11 Mar 2017 00:41:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151947#M114426</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-03-11T00:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Oozie Distcp Action with Kerberos enabled clusters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151948#M114427</link>
      <description>&lt;P&gt;Can you add a space between -D and ipc.client...   This is not a Java system property but should be the -D option to the Tool runner&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2017 00:59:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151948#M114427</guid>
      <dc:creator>vranganathan</dc:creator>
      <dc:date>2017-03-11T00:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Oozie Distcp Action with Kerberos enabled clusters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151949#M114428</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/195/vranganathan.html" nodeid="195"&gt;@Venkat Ranganathan&lt;/A&gt; can you be more specific, I tried with space character, I'm getting&lt;/P&gt;&lt;PRE&gt;Error: E0701 : E0701: XML schema error, cvc-complex-type.2.4.a: Invalid content was found starting with element 'java-opts'. One of '{"uri:oozie:distcp-action:0.2":arg}' is expected.
&lt;/PRE&gt;&lt;P&gt;is this passed as an &amp;lt;arg&amp;gt; or &amp;lt;java-opts&amp;gt;?&lt;/P&gt;&lt;PRE&gt;&amp;lt;java-opts&amp;gt;-D ipc.client.fallback-to-simple-auth-allowed=true&amp;lt;/java-opts&amp;gt;
&lt;/PRE&gt;</description>
      <pubDate>Sat, 11 Mar 2017 01:10:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151949#M114428</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-03-11T01:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Oozie Distcp Action with Kerberos enabled clusters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151950#M114429</link>
      <description>&lt;P&gt;You should have the java-opts right after configuration element and before arg.  &lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2017 01:29:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151950#M114429</guid>
      <dc:creator>vranganathan</dc:creator>
      <dc:date>2017-03-11T01:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Oozie Distcp Action with Kerberos enabled clusters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151951#M114430</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/195/vranganathan.html" nodeid="195"&gt;@Venkat Ranganathan&lt;/A&gt; That didn't work, getting&lt;/P&gt;&lt;PRE&gt;Error: Could not find or load main class ipc.client.fallback-to-simple-auth-allowed=true
&lt;/PRE&gt;&lt;P&gt;in the stderr log. My workflow as of now looks like so&lt;/P&gt;&lt;PRE&gt;&amp;lt;action name="distcp_1"&amp;gt;
        &amp;lt;distcp xmlns="uri:oozie:distcp-action:0.2"&amp;gt;
            &amp;lt;job-tracker&amp;gt;${resourceManager}&amp;lt;/job-tracker&amp;gt;
            &amp;lt;name-node&amp;gt;${nameNode}&amp;lt;/name-node&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;java-opts&amp;gt;-D ipc.client.fallback-to-simple-auth-allowed=true&amp;lt;/java-opts&amp;gt;
            &amp;lt;arg&amp;gt;hdfs://aervits-hdp70:8020/tmp/hellounsecure&amp;lt;/arg&amp;gt;
            &amp;lt;arg&amp;gt;hdfs://hacluster:8020/user/centos/&amp;lt;/arg&amp;gt;
        &amp;lt;/distcp&amp;gt;
        &amp;lt;ok to="end"/&amp;gt;
        &amp;lt;error to="kill"/&amp;gt;
    &amp;lt;/action&amp;gt;
&lt;/PRE&gt;</description>
      <pubDate>Sat, 11 Mar 2017 03:17:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151951#M114430</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-03-11T03:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Oozie Distcp Action with Kerberos enabled clusters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151952#M114431</link>
      <description>&lt;P&gt;Let me check.   The Java opts might be getting added after the class&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2017 04:01:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151952#M114431</guid>
      <dc:creator>vranganathan</dc:creator>
      <dc:date>2017-03-11T04:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Oozie Distcp Action with Kerberos enabled clusters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151953#M114432</link>
      <description>&lt;P&gt;You can set up your args like this and remove from java-opts&lt;/P&gt;&lt;PRE&gt;&amp;lt;arg&amp;gt;-D&amp;lt;/arg&amp;gt;
&amp;lt;arg&amp;gt;ipc.client.fallback-to-simple-auth-allowed=true&amp;lt;/arg&amp;gt;
&amp;lt;arg&amp;gt;hdfs://aervits-hdp70:8020/tmp/hellounsecure&amp;lt;/arg&amp;gt;
&amp;lt;arg&amp;gt;hdfs://hacluster:8020/user/centos/&amp;lt;/arg&amp;gt;&lt;/PRE&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2017 06:47:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151953#M114432</guid>
      <dc:creator>vranganathan</dc:creator>
      <dc:date>2017-03-11T06:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Oozie Distcp Action with Kerberos enabled clusters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151954#M114433</link>
      <description>&lt;P&gt;BTW, this has to come before distcp arguments (like -update etc)&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2017 07:15:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151954#M114433</guid>
      <dc:creator>vranganathan</dc:creator>
      <dc:date>2017-03-11T07:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Oozie Distcp Action with Kerberos enabled clusters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151955#M114434</link>
      <description>&lt;P&gt;That property is used when one cluster is kerberized and the other isn't, is this your case? If both clusters are kerberized you need to set "oozie.launcher.mapreduce.job.hdfs-servers" property. Regarding your property can you try to pass it as an arg:&lt;/P&gt;&lt;PRE&gt;&amp;lt;arg&amp;gt;-Dipc.client.fallback-to-simple-auth-allowed=true&amp;lt;/arg&amp;gt;&lt;/PRE&gt;&lt;P&gt;I don't think the space after "-D" matters, but you can try either way.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2017 08:08:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151955#M114434</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2017-03-11T08:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Oozie Distcp Action with Kerberos enabled clusters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151956#M114435</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/195/vranganathan.html" nodeid="195"&gt;@Venkat Ranganathan&lt;/A&gt; tried many different options, as part of configuration block as well as a part of submission, i.e.&lt;/P&gt;&lt;P&gt;oozie job -D ipc.client.fallback-to-simple-auth-allowed=true  -run&lt;/P&gt;&lt;P&gt;no luck, I read in the Oozie docs that I need property oozie.launcher.mapreduce.job.hdfs-servers and my jobs stopped getting submitted to YARN, hence I commented it out. I also added hadoop.proxy.oozie.hosts and guests to the 2nd cluster as per docs, no luck.&lt;/P&gt;&lt;PRE&gt;    &amp;lt;action name="distcp_1"&amp;gt;
        &amp;lt;distcp xmlns="uri:oozie:distcp-action:0.2"&amp;gt;
            &amp;lt;job-tracker&amp;gt;${resourceManager}&amp;lt;/job-tracker&amp;gt;
            &amp;lt;name-node&amp;gt;${nameNode}&amp;lt;/name-node&amp;gt;
&amp;lt;!--
            &amp;lt;configuration&amp;gt;
                &amp;lt;property&amp;gt;
                    &amp;lt;name&amp;gt;oozie.launcher.mapreduce.job.hdfs-servers&amp;lt;/name&amp;gt;
                    &amp;lt;value&amp;gt;${nameNode},${nameNode2}&amp;lt;/value&amp;gt;
                &amp;lt;/property&amp;gt;
            &amp;lt;/configuration&amp;gt;
--&amp;gt;
            &amp;lt;arg&amp;gt;-D&amp;lt;/arg&amp;gt;
            &amp;lt;arg&amp;gt;ipc.client.fallback-to-simple-auth-allowed=true&amp;lt;/arg&amp;gt;
            &amp;lt;arg&amp;gt;-overwrite&amp;lt;/arg&amp;gt;
            &amp;lt;arg&amp;gt;${nameNode}/user/centos/primary&amp;lt;/arg&amp;gt;
            &amp;lt;arg&amp;gt;${nameNode2}/tmp/&amp;lt;/arg&amp;gt;
        &amp;lt;/distcp&amp;gt;
        &amp;lt;ok to="end"/&amp;gt;
        &amp;lt;error to="kill"/&amp;gt;
    &amp;lt;/action&amp;gt;

&lt;/PRE&gt;&lt;P&gt;Finally, I stumbled on this note and I'm afraid I hit such case&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IMPORTANT:&lt;/STRONG&gt; The DistCp action may not work properly with all configurations (secure, insecure) in all versions of Hadoop.&lt;/P&gt;&lt;P&gt;I take instances where one cluster is secured and 2nd cluster is not is not suppored in Distcp action spec 0.2. &lt;/P&gt;&lt;P&gt;&lt;A href="https://oozie.apache.org/docs/4.2.0/DG_DistCpActionExtension.html"&gt;https://oozie.apache.org/docs/4.2.0/DG_DistCpActionExtension.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2017 09:00:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151956#M114435</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-03-11T09:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Oozie Distcp Action with Kerberos enabled clusters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151957#M114436</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/177/pminovic.html" nodeid="177"&gt;@Predrag Minovic&lt;/A&gt; &amp;amp; &lt;A rel="user" href="https://community.cloudera.com/users/195/vranganathan.html" nodeid="195"&gt;@Venkat Ranganathan&lt;/A&gt; the only way this works with secure and insecure cluster is if core-site.xml has the property below on the secured cluster side.&lt;/P&gt;&lt;PRE&gt;    &amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;ipc.client.fallback-to-simple-auth-allowed&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;
&lt;/PRE&gt;&lt;P&gt;uploading core-site.xml with this property in it in the lib folder of the workflow doesn't work. &amp;lt;arg&amp;gt; and &amp;lt;java-opts&amp;gt; for this property take no effect. job config would not update, the only way to make it work was to update on the hdfs side globally.&lt;/P&gt;&lt;P&gt;Thank you both for your recommendations, eventually it was Predrag who suggested to update HDFS with the property. This is not optimal but for lack of better option will do. It's best to have either two unsecure or two secure clusters.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2017 10:19:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151957#M114436</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-03-11T10:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Oozie Distcp Action with Kerberos enabled clusters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151958#M114437</link>
      <description>&lt;P&gt;Can you try to put your copy of core-site.xml with that property set to true in the Oozie share lib folder for distcp?&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2017 10:25:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151958#M114437</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2017-03-11T10:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Oozie Distcp Action with Kerberos enabled clusters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151959#M114438</link>
      <description>&lt;P&gt;adding to sharelib of distcp core-site.xml with this property does not take effect and including it in lib directory of the workflow doesn't take effect either.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2017 10:44:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151959#M114438</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-03-11T10:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Oozie Distcp Action with Kerberos enabled clusters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151960#M114439</link>
      <description>&lt;P&gt;That's good to know! Many restrictions with Oozie...&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2017 10:57:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Oozie-Distcp-Action-with-Kerberos-enabled-clusters/m-p/151960#M114439</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2017-03-11T10:57:06Z</dc:date>
    </item>
  </channel>
</rss>

