<?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: Running shell scripts in oozie using hue in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Running-shell-scripts-in-oozie-using-hue/m-p/64100#M73991</link>
    <description>&lt;P&gt;So,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; I should uncheck thie below?&lt;/P&gt;&lt;DIV class="header-column"&gt;&lt;DIV class="display-name"&gt;Limit Nonsecure Container Executor Users --&amp;gt; YARN (MR2 Included) (Service-Wide) { currently the check box is selected}&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="control-and-description"&gt;&lt;DIV class="control-column-expanded"&gt;&lt;DIV class="input-row"&gt;&lt;DIV class="input-col"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="input-col"&gt;2. what should I put instead of nobody for the below?&lt;/DIV&gt;&lt;DIV class="input-col"&gt;&lt;DIV class="header-column"&gt;&lt;DIV class="display-name"&gt;UNIX User for Nonsecure Mode with Linux Container Executor&lt;/DIV&gt;&lt;DIV class="property-name"&gt;yarn.nodemanager.linux-container-executor.nonsecure-mode.local-user&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="control-and-description"&gt;&lt;DIV class="control-column-expanded"&gt;&lt;DIV&gt;&lt;DIV class="context-container"&gt;&lt;SPAN class="context-label"&gt;YARN (MR2 Included) (Service-Wide)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; ---&amp;gt; Nobody&amp;nbsp;&lt;/SPAN&gt;&lt;DIV class="context-controls"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="input-col"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="input-col"&gt;3. Is there something more I should change?&lt;/DIV&gt;&lt;DIV class="input-col"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="input-col"&gt;4. Kerberos is not enabled in the system.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 29 Jan 2018 15:16:52 GMT</pubDate>
    <dc:creator>nehanirmal</dc:creator>
    <dc:date>2018-01-29T15:16:52Z</dc:date>
    <item>
      <title>Running shell scripts in oozie using hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Running-shell-scripts-in-oozie-using-hue/m-p/64097#M73989</link>
      <description>&lt;P&gt;Running the below script:&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;BR /&gt;ssh user@host.abcd.com "if [ -f /data/home/user/datafiles/Test.csv ] ; then echo 1 ; else echo 0 ; fi;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set up passwordless ssh for 'user' too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Getting the below error:&lt;/P&gt;&lt;PRE&gt;Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.ShellMain], exit code [1]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please Assist!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 13:44:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Running-shell-scripts-in-oozie-using-hue/m-p/64097#M73989</guid>
      <dc:creator>nehanirmal</dc:creator>
      <dc:date>2026-04-21T13:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Running shell scripts in oozie using hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Running-shell-scripts-in-oozie-using-hue/m-p/64099#M73990</link>
      <description>&lt;P&gt;This is probably related to the fact that the shell action, when run from Oozie, runs as user "yarn" and not as the desired user you're specifying in the ssh command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can refer to this thread for more information about the issue:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Batch-Processing-and-Workflow/How-to-run-Oozie-workfllow-or-action-as-another-user/td-p/26794" target="_blank"&gt;https://community.cloudera.com/t5/Batch-Processing-and-Workflow/How-to-run-Oozie-workfllow-or-action-as-another-user/td-p/26794&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It should all boil down (in case your cluster is not secured with kerberos) to&amp;nbsp;try and set up your environment, specifically the "&lt;/SPAN&gt;&lt;SPAN&gt;linux-container-executor" configuration parameter (you go in Cloudera Admin UI --&amp;gt; Yarn --&amp;gt; Configuration).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It's all explained in the linked document. Another alternative could be to grant OS user "yarn" with permissions to execute "ssh" and/or "su" so you can eventually switch user in your script before executing the remote ssh command&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 15:05:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Running-shell-scripts-in-oozie-using-hue/m-p/64099#M73990</guid>
      <dc:creator>FrozenWave</dc:creator>
      <dc:date>2018-01-29T15:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Running shell scripts in oozie using hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Running-shell-scripts-in-oozie-using-hue/m-p/64100#M73991</link>
      <description>&lt;P&gt;So,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; I should uncheck thie below?&lt;/P&gt;&lt;DIV class="header-column"&gt;&lt;DIV class="display-name"&gt;Limit Nonsecure Container Executor Users --&amp;gt; YARN (MR2 Included) (Service-Wide) { currently the check box is selected}&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="control-and-description"&gt;&lt;DIV class="control-column-expanded"&gt;&lt;DIV class="input-row"&gt;&lt;DIV class="input-col"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="input-col"&gt;2. what should I put instead of nobody for the below?&lt;/DIV&gt;&lt;DIV class="input-col"&gt;&lt;DIV class="header-column"&gt;&lt;DIV class="display-name"&gt;UNIX User for Nonsecure Mode with Linux Container Executor&lt;/DIV&gt;&lt;DIV class="property-name"&gt;yarn.nodemanager.linux-container-executor.nonsecure-mode.local-user&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="control-and-description"&gt;&lt;DIV class="control-column-expanded"&gt;&lt;DIV&gt;&lt;DIV class="context-container"&gt;&lt;SPAN class="context-label"&gt;YARN (MR2 Included) (Service-Wide)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; ---&amp;gt; Nobody&amp;nbsp;&lt;/SPAN&gt;&lt;DIV class="context-controls"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="input-col"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="input-col"&gt;3. Is there something more I should change?&lt;/DIV&gt;&lt;DIV class="input-col"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="input-col"&gt;4. Kerberos is not enabled in the system.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Jan 2018 15:16:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Running-shell-scripts-in-oozie-using-hue/m-p/64100#M73991</guid>
      <dc:creator>nehanirmal</dc:creator>
      <dc:date>2018-01-29T15:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Running shell scripts in oozie using hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Running-shell-scripts-in-oozie-using-hue/m-p/64102#M73992</link>
      <description>&lt;P&gt;1) Apparently, yes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) The name of the user you're trying to use to log in to the remote system, I suppose. Pls note that the user you specify here would be the user "oozie" will run as, so you'd eventually get other problems of unpredictable nature when using Oozie&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) I don't really know, sorry about that... The fact is that even if I'm pretty sure to have understood the cause of your issue, I never had to deal with it directly myself. Maybe the easier way could be to follow the additional suggestions I wrote in my previous answer (give permissions to OS User "yarn" to "ssh" and/or "su"). Or, maybe, another possibility would be for you to create a "yarn" user on the remote system and grant this user with the correct permissions to get to the final working directory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you'll manage to get through the problems and make it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 15:27:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Running-shell-scripts-in-oozie-using-hue/m-p/64102#M73992</guid>
      <dc:creator>FrozenWave</dc:creator>
      <dc:date>2018-01-29T15:27:21Z</dc:date>
    </item>
  </channel>
</rss>

