title: Cannot start Yarn processes
body: <p>My <code>start-yarn.sh</code> cannot start resourcemanager and nodemanager processes</p>
  
  <p>I set these options in yarn-env.sh scripts as suggested earlier.<br></p>
  
  <pre><code>export YARN_RESOURCEMANAGER_OPTS="--add-modules java.activation"
  export YARN_NODEMANAGER_OPTS="--add-modules java.activation".
  </code></pre>
  
  <p>My yarn-site.xml</p>
  
  <pre><code>&lt;configuration&gt;
      &lt;property&gt;
          &lt;name&gt;yarn.nodemanager.aux-services&lt;/name&gt;
          &lt;value&gt;mapreduce_shuffle&lt;/value&gt;
      &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>My mapred-site.xml</p>
  
  <pre><code>&lt;configuration&gt;
      &lt;property&gt;
          &lt;name&gt;mapreduce.framework.name&lt;/name&gt;
          &lt;value&gt;yarn&lt;/value&gt;
      &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>When I start the yarn process in hadoop 3.1.2 in Ubuntu I get below error</p>
  
  <pre><code>Starting resourcemanager
  ERROR: Cannot set priority of resourcemanager process 3147
  Starting nodemanagers
  localhost: ERROR: Cannot set priority of nodemanager process 3271
  </code></pre>