<?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: YARN force nobody user on all jobs (and so they fail) in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/35707#M34668</link>
    <description>&lt;P&gt;I had to fix this by changing the 'yarn' user to have a umask of '0'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest adding this fix to the Cloudera Manager.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lance Norskog&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2016 12:31:16 GMT</pubDate>
    <dc:creator>edmodolance</dc:creator>
    <dc:date>2016-05-09T12:31:16Z</dc:date>
    <item>
      <title>YARN force nobody user on all jobs (and so they fail)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/26050#M34663</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am having some problems with YARN and it is not the first clusters where this happens, so I don't get what I am doing wrong. Every night I shut down the clusters (installed on AWS and SoftLayer) to not spend money while not working. Also, sooner or later I need bigger machines, so I change the AWS instance type (similar name also for SoftLayer). What happens in a not very clear moment is that after a particular restart YARN generates problems in the NodeManager user cache directory (e.g. /bigdata1/yarn/nm/usercache/m.giusto), like in this case (&lt;A href="https://community.cloudera.com/t5/Data-Ingestion-Integration/Sqoop-Error-Sqoop-2-not-working-through-hue/td-p/24261/page/2)" target="_blank"&gt;https://community.cloudera.com/t5/Data-Ingestion-Integration/Sqoop-Error-Sqoop-2-not-working-through-hue/td-p/24261/page/2)&lt;/A&gt; and I am forced to remove everything from all the user cache directories (acceptable) otherwise jobs are unable to start.&lt;BR /&gt;However the bigger problem is that YARN also starts applying a not desired rule for which each user that submit a job is considered not allowed and YARN starts the job as "nobody" (yarn.nodemanager.linux-container-executor.nonsecure-mode.local-user default value). This happens for a not super-user like "m.giusto" (UID over 1000) and also for "hdfs" (UID less than 500). I have tried to move "hdfs" from "banned.users" to "allowed.system.users" and to set "&lt;SPAN&gt;min.user.id"&amp;nbsp;&lt;/SPAN&gt;to 0 , no changes. Moreover "nobody" user is not able to write to the real-user user cache folder (permission denied) and so the job fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;main : user is nobody&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;main : requested yarn user is m.giusto&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Can't create directory /bigdata1/yarn/nm/usercache/m.giusto/appcache/application_1427799738120_0001 - Permission denied&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Can't create directory /bigdata2/yarn/nm/usercache/m.giusto/appcache/application_1427799738120_0001 - Permission denied&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Did not create any app directories&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;.Failing this attempt.. Failing the application.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I do not get is why the system starts applying these rules and how to fix.&amp;nbsp;At the moment the only solution is to reinstall the cluster..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some other infos: OS is Centos6.6, tested CDH version are 5.2.1, 5.3.1 and 5.3.2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Michele&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:25:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/26050#M34663</guid>
      <dc:creator>mgiusto</dc:creator>
      <dc:date>2022-09-16T09:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: YARN force nobody user on all jobs (and so they fail)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/26079#M34664</link>
      <description>&lt;P&gt;Hi Michele&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It sounds like YARN is running under the linux container executor which is used to provide secure containers or resource isolation (using cgroups).&amp;nbsp;If you don't need these features or if this was enabled accidentally then you can probably fix the problem by unchecking "&lt;SPAN class="cmfParamName"&gt;Always Use Linux Container Executor" in YARN configuration under Cloudera Manager. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="cmfParamName"&gt;Or if you do need LCE, then one thing to check is&amp;nbsp;that your&amp;nbsp;local users (e.g. m.giusto) exist on all nodes .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="cmfParamName"&gt;Dave&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2015 19:42:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/26079#M34664</guid>
      <dc:creator>dbeech</dc:creator>
      <dc:date>2015-03-31T19:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: YARN force nobody user on all jobs (and so they fail)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/26114#M34665</link>
      <description>&lt;P&gt;Hi Dave,&lt;BR /&gt;thanks for the quick answer. You are right, the problem is that it is enabled the flag of "Always Use Linux Container Executor". I have unchecked it and now things seems to be working.&lt;/P&gt;&lt;P&gt;However, the description on Cloudera Manager of the "Always Use Linux Container Executor" flag says "Cgroups enforcement only works when the Linux Container Executor is used", so if I want to use the desired "Static Resource Pool" where YARN gets only X% of the resources, I have to maintain the flag enabled (now I also understand when the flag gets checked, after making the first configuration of the resource pool...). So I have tried to install what needed for cgroups (libcgroup) and reenabled the flag.&lt;BR /&gt;Now if I execute YARN application (like Hive query) everything works. If instead I try to execute a Oozie job with a shell action inside, the shell action is executed by "nobody" user (real Oozie user "m.giusto"). Normally shell action are executed as "yarn", so I have added "yarn" in "allowed.system.users" and removed it from "banned.users". "nobody" user remains the MR user. Any idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Michele&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 10:13:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/26114#M34665</guid>
      <dc:creator>mgiusto</dc:creator>
      <dc:date>2015-04-01T10:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: YARN force nobody user on all jobs (and so they fail)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/26119#M34666</link>
      <description>You can force the LCE to impersonate actual users in non-secure mode&lt;BR /&gt;by turning "yarn.nodemanager.linux-container-executor.nonsecure-mode.limit-users"&lt;BR /&gt;to false (default is true, which causes it to limit all users to&lt;BR /&gt;"nobody"). Note though that enabling this ability requires that your&lt;BR /&gt;users' accounts exist on all nodes in the cluster at the Unix level&lt;BR /&gt;(i.e. id must return a valid ID for their jobs to work).&lt;BR /&gt;&lt;BR /&gt;If you instead just wanted to change the "nobody" user to some other&lt;BR /&gt;static user, the config for that is&lt;BR /&gt;"yarn.nodemanager.linux-container-executor.nonsecure-mode.local-user"&lt;BR /&gt;(default: "nobody"). If you go this way, you need to leave the earlier&lt;BR /&gt;mentioned config as its default of true.&lt;BR /&gt;&lt;BR /&gt;These configs need to be changed in CM's YARN configuration page&lt;BR /&gt;(either via direct fields if available, or via the yarn-site.xml), and&lt;BR /&gt;they must reach the NodeManager's configs to apply.&lt;BR /&gt;&lt;BR /&gt;These configs are also documented in the yarn-default.xml:&lt;BR /&gt;&lt;A href="http://archive.cloudera.com/cdh5/cdh/5/hadoop/hadoop-yarn/hadoop-yarn-common/yarn-default.xml" target="_blank"&gt;http://archive.cloudera.com/cdh5/cdh/5/hadoop/hadoop-yarn/hadoop-yarn-common/yarn-default.xml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Does this help?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Apr 2015 14:20:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/26119#M34666</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2015-04-01T14:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: YARN force nobody user on all jobs (and so they fail)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/26125#M34667</link>
      <description>&lt;P&gt;Hi Harsh,&lt;/P&gt;&lt;P&gt;thanks for the reply. I didn't know about the "&lt;SPAN&gt;yarn.nodemanager.linux-container-executor.nonsecu&lt;/SPAN&gt;&lt;SPAN&gt;re-mode.limit-users" property. I will explore the two opportunities in order to choose the better one for the current experiments.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michele&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 16:33:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/26125#M34667</guid>
      <dc:creator>mgiusto</dc:creator>
      <dc:date>2015-04-01T16:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: YARN force nobody user on all jobs (and so they fail)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/35707#M34668</link>
      <description>&lt;P&gt;I had to fix this by changing the 'yarn' user to have a umask of '0'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest adding this fix to the Cloudera Manager.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lance Norskog&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 12:31:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/35707#M34668</guid>
      <dc:creator>edmodolance</dc:creator>
      <dc:date>2016-05-09T12:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: YARN force nobody user on all jobs (and so they fail)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/40610#M34669</link>
      <description>&lt;P&gt;Hey Lance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also stuck with the same issue. Can you please tell how did you change the umask for yarn user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 11:43:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/40610#M34669</guid>
      <dc:creator>ankurk01</dc:creator>
      <dc:date>2016-05-09T11:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: YARN force nobody user on all jobs (and so they fail)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/40637#M34670</link>
      <description>&lt;P&gt;I don't remember how I did this.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 17:03:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/40637#M34670</guid>
      <dc:creator>edmodolance</dc:creator>
      <dc:date>2016-05-09T17:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: YARN force nobody user on all jobs (and so they fail)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/82540#M34671</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have followed the instruction to allow Linux&amp;nbsp;user to run the container as the user which lunch the application, but still, I can see the actual user is nobody. Even though&amp;nbsp;I can see this:&lt;/P&gt;&lt;PRE&gt;main : run as user is nobody
main : requested yarn user is panahi&lt;/PRE&gt;&lt;P&gt;I have OpenLDAP sync users and groups in all the nodes across&amp;nbsp;the cluster. My only problem is the yarn containers are launched either by yarn in a non-secure cluster with default values, or nobody when you change "&lt;SPAN&gt;Limit Nonsecure Container Executor Users" to false, and "yarn.nodemanager.container-executor.class" to true.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Despite the fact Spark runs with the user which runs it, the result of this snippet which Spark calls another application is always either yarn or nobody in any situation:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;val test = sc.parallelize(Seq("test user")).repartition(1)
val piped = test.pipe(Seq("whoami"))
val c = piped.collect()&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 00:58:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/82540#M34671</guid>
      <dc:creator>maziyar</dc:creator>
      <dc:date>2018-11-19T00:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: YARN force nobody user on all jobs (and so they fail)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/82546#M34672</link>
      <description>&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/19408"&gt;@maziyar&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Are you sure you have "Always Use Linux Container Executor" checked and&lt;BR /&gt;"Limit Nonsecure Container Executor Users" unchecked, and no safety valves&lt;BR /&gt;overriding relevant properties? What CDH and CM version are you running?&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Nov 2018 04:49:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/82546#M34672</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2018-11-19T04:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: YARN force nobody user on all jobs (and so they fail)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/82563#M34673</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/213"&gt;@Harsh J&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response. Yes, these are the two configs you mentioned, and also I checked all the "&lt;SPAN&gt;safety valves" there is nothing related to any Linux&amp;nbsp;or cgroups:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/5022iBD688723B4BFB77C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/5023i6712D86E696E1B46/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have even remove the "nobody" user from allowed and left the "nonsecure-mode.lcaol-user" empty, but still says "nobody". If I revert all the changes, it says "yarn". So these configs impact something somewhere.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Cloudera Express:&lt;/STRONG&gt; 5.15.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Java Version:&lt;/STRONG&gt; 1.8.0_181&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;CDH:&amp;nbsp;&lt;/STRONG&gt;5.15.1-1.cdh5.15.1.p0.4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;UPDATE: one more thing that might be useful, when I download client&amp;nbsp;configuration from CM, I can't find these two configs in any of the configs. Not sure if that is normal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Maziyar&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 10:25:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/82563#M34673</guid>
      <dc:creator>maziyar</dc:creator>
      <dc:date>2018-11-19T10:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: YARN force nobody user on all jobs (and so they fail)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/82572#M34674</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/213"&gt;@Harsh J&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You mentioning the Safe Valve gave me an idea! I thought maybe the UI in CM is not setting one or both of those key/values. So I did this manually and it worked! Now every container asked by Spark Pipe() has the same owner as the Spark application itself (no more nobody or yarn! - there must be something with the UI that won't map one of those two configs back to yarn-site.xml):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/5024iE67C45FE90340F6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 12:05:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/YARN-force-nobody-user-on-all-jobs-and-so-they-fail/m-p/82572#M34674</guid>
      <dc:creator>maziyar</dc:creator>
      <dc:date>2018-11-19T12:05:42Z</dc:date>
    </item>
  </channel>
</rss>

