<?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: Unable to start the node manager in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-start-the-node-manager/m-p/286227#M212302</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/19178"&gt;@saivenkatg55&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to analyze your situation but with access to the Linux box it rather difficult,but I think there is a workaround.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;STRONG&gt;chattr&lt;/STRONG&gt; linux command makes important files IMMUTABLE (Unchangeable).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The immutable bit [&amp;nbsp;&lt;STRONG&gt;+i&lt;/STRONG&gt;&amp;nbsp; ] can only be set by superuser (i.e root) user or a user with sudo privileges can be able to set. This will prevent the file from being deleted forcefully, renamed or change the permissions, but it won’t be allowed says '&lt;FONT color="#FF0000"&gt;Operation not permitted&lt;/FONT&gt;“'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;# ls -al /var/run/hadoop-yarn/yarn/&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;total 8&lt;BR /&gt;.&lt;BR /&gt;..&lt;BR /&gt;-rw-r--r-- 1 yarn hadoop 0 Dec 24 09:34 hadoop-yarn-nodemanager.pid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set immutable bit&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;# chattr +i hadoop-yarn-nodemanager.pid&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Verify the attribute with command the below command&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;# lsattr&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;----i--------e-- ./hadoop-yarn-nodemanager.pid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The normal ls command shows no difference&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;# ls -al /var/run/hadoop-yarn/yarn/&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;total 8&lt;BR /&gt;drwxr-xr-x 2 root root 4096 Dec 24 09:34 .&lt;BR /&gt;drwxr-xr-x 3 root root 4096 Dec 24 09:34 ..&lt;BR /&gt;-rw-r--r-- 1 yarn hadoop 0 Dec 24 09:34 hadoop-yarn-nodemanager.pid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Deletion protection&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;# rm -rf /var/run/hadoop-yarn/yarn/hadoop-yarn-nodemanager.pid&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;rm: cannot remove ‘/var/run/hadoop-yarn/yarn/hadoop-yarn-nodemanager.pid’: &lt;FONT color="#FF0000"&gt;Operation not permitted&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Permission change&amp;nbsp; protected&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;# chmod 755&amp;nbsp; /var/run/hadoop-yarn/yarn/hadoop-yarn-nodemanager.pid&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;chmod: changing permissions of ‘/var/run/hadoop-yarn/yarn/hadoop-yarn-nodemanager.pid’: &lt;FONT color="#FF0000"&gt;Operation not permitted&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;How to unset attribute on Files&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;# chattr -i /var/run/hadoop-yarn/yarn/hadoop-yarn-nodemanager.pid&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After resetting permissions, verify the immutable status of files using lsattr command&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;# lsattr&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;---------------- ./var/run/hadoop-yarn/yarn/hadoop-yarn-nodemanager.pid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please do that and revert&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Dec 2019 09:06:15 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2019-12-24T09:06:15Z</dc:date>
  </channel>
</rss>

