<?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: Sqoop/Hive in Oozie shell action running in local mode post Mrv1 to Mrv2 migration in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Hive-in-Oozie-shell-action-running-in-local-mode-post/m-p/57127#M64510</link>
    <description>This occurs due to the actions inheriting YARN NM configs which are not&lt;BR /&gt;pre-configured for MR2. Since MR2 is an app-side concept in YARN and not an&lt;BR /&gt;inbuilt/server-side one, your action environment does not find the adequate&lt;BR /&gt;configs by referencing the NM ones.&lt;BR /&gt;&lt;BR /&gt;This was improved via &lt;A href="https://issues.apache.org/jira/browse/OOZIE-2343" target="_blank"&gt;https://issues.apache.org/jira/browse/OOZIE-2343&lt;/A&gt; in&lt;BR /&gt;CDH 5.5.0+, which ships configs along with the shell scripts that include&lt;BR /&gt;MR2 specifics.&lt;BR /&gt;&lt;BR /&gt;For your older CDH version however, you can try the below:&lt;BR /&gt;&lt;BR /&gt;Step 1: Ensure all your hosts have a YARN/MR2 Gateway role added on it, and&lt;BR /&gt;that client configuration is deployed on all hosts at /etc/hadoop/conf/*.&lt;BR /&gt;Step 2: Add the env-var 'HADOOP_CONF_DIR=/etc/hadoop/conf' to all shell&lt;BR /&gt;actions via the shell action configuration for passing environments, or via&lt;BR /&gt;manual edits to the top of the shell scripts.&lt;BR /&gt;</description>
    <pubDate>Sun, 09 Jul 2017 13:50:35 GMT</pubDate>
    <dc:creator>Harsh J</dc:creator>
    <dc:date>2017-07-09T13:50:35Z</dc:date>
    <item>
      <title>Sqoop/Hive in Oozie shell action running in local mode post Mrv1 to Mrv2 migration</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Hive-in-Oozie-shell-action-running-in-local-mode-post/m-p/57126#M64509</link>
      <description>&lt;P&gt;I have a CDH 5.3.9 cluster. Earlier, we used Mrv1 across our cluster for all services and clients. Owing to nature of our applications we have to invoke &lt;STRONG&gt;Sqoop and Hive commands within shell action in Oozie&lt;/STRONG&gt;. Earlier, this shell action would run &lt;STRONG&gt;properly in distributed way via MRv1&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recently, we moved from Mrv1 to YARN. Everything is running smooth via YARN containers, except Hive and Sqoop commands &lt;STRONG&gt;within&lt;/STRONG&gt; Oozie shell action run in&lt;STRONG&gt; 'Local Mapred'&lt;/STRONG&gt; mode. They work correctly, but they run in Local mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I log into my datanodes ( where my shell actions would run) and &lt;STRONG&gt;manually&lt;/STRONG&gt; invoke the Sqoop and Hive commands (tired via various users - yarn, mapred, hdfs) I can see a &lt;STRONG&gt;proper tracking URL&lt;/STRONG&gt; for the job being submitted to YARN ( i.e in the non local mode ).&lt;BR /&gt;&lt;BR /&gt;I know I am missing passing some configuration details previously not needed by Mrv1. Can someone please help me setup my shell actions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some more details:&lt;/P&gt;&lt;P&gt;I have HA set on my HDFS as well as Mrv2. Oozie and Hive are correctly able to use YARN and submit jobs to it. My shell actions run via YARN. Only problem is sqoop/hive commands within the shell action in Oozie.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:54:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Hive-in-Oozie-shell-action-running-in-local-mode-post/m-p/57126#M64509</guid>
      <dc:creator>SuvP</dc:creator>
      <dc:date>2022-09-16T11:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop/Hive in Oozie shell action running in local mode post Mrv1 to Mrv2 migration</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Hive-in-Oozie-shell-action-running-in-local-mode-post/m-p/57127#M64510</link>
      <description>This occurs due to the actions inheriting YARN NM configs which are not&lt;BR /&gt;pre-configured for MR2. Since MR2 is an app-side concept in YARN and not an&lt;BR /&gt;inbuilt/server-side one, your action environment does not find the adequate&lt;BR /&gt;configs by referencing the NM ones.&lt;BR /&gt;&lt;BR /&gt;This was improved via &lt;A href="https://issues.apache.org/jira/browse/OOZIE-2343" target="_blank"&gt;https://issues.apache.org/jira/browse/OOZIE-2343&lt;/A&gt; in&lt;BR /&gt;CDH 5.5.0+, which ships configs along with the shell scripts that include&lt;BR /&gt;MR2 specifics.&lt;BR /&gt;&lt;BR /&gt;For your older CDH version however, you can try the below:&lt;BR /&gt;&lt;BR /&gt;Step 1: Ensure all your hosts have a YARN/MR2 Gateway role added on it, and&lt;BR /&gt;that client configuration is deployed on all hosts at /etc/hadoop/conf/*.&lt;BR /&gt;Step 2: Add the env-var 'HADOOP_CONF_DIR=/etc/hadoop/conf' to all shell&lt;BR /&gt;actions via the shell action configuration for passing environments, or via&lt;BR /&gt;manual edits to the top of the shell scripts.&lt;BR /&gt;</description>
      <pubDate>Sun, 09 Jul 2017 13:50:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Hive-in-Oozie-shell-action-running-in-local-mode-post/m-p/57127#M64510</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2017-07-09T13:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop/Hive in Oozie shell action running in local mode post Mrv1 to Mrv2 migration</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Hive-in-Oozie-shell-action-running-in-local-mode-post/m-p/57151#M64511</link>
      <description>&lt;P&gt;Thanks Harsh!! That worked very well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I installed YARN gateway roles on all my nodes, followed by setting 'export HADOOP_CONF_DIR='&lt;EM&gt;/etc/hadoop/conf&lt;/EM&gt;' in my shell action shell scripts. (Didn't use env var for shell action to avoid killing the job).&lt;/P&gt;&lt;P&gt;Previously, HADOOP_CONF_DIR was pointing to '&lt;EM&gt;/run/cloudera-scm-agent/process/11552-yarn-NODEMANAGER&lt;/EM&gt;'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 08:59:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Hive-in-Oozie-shell-action-running-in-local-mode-post/m-p/57151#M64511</guid>
      <dc:creator>SuvP</dc:creator>
      <dc:date>2017-07-10T08:59:14Z</dc:date>
    </item>
  </channel>
</rss>

