<?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: Exception in thread &amp;quot;main&amp;quot; java.io.IOException: /home/nifi-1.6.0/run directory does not have read/write privilege in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-io-IOException-home/m-p/206731#M78973</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/83196/rk241091.html" nodeid="83196"&gt;@Rahul Kumar&lt;/A&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;The NiFi "run" directory is where NiFi creates the "nifi.pid" and "nifi.status" files during startup.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;You should make sure that the user that owns teh NiFi process has the ability to create files inside the /home/rahul/nifi-1.6.0/run directory.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Your NiFi should have failed to start.&lt;/P&gt;&lt;P&gt;Take a look in your nifi-bootstrap.log file to see when the last time you see:&lt;/P&gt;&lt;PRE&gt;org.apache.nifi.bootstrap.Command Starting Apache NiFi...&lt;/PRE&gt;&lt;P&gt;Does the timestamp for that line correspond with your latest attempt to start NiFi?&lt;/P&gt;&lt;P&gt;My thought is that their was already a NiFi process running and what you see in browser is really not the same process as to what you think you just started.&lt;/P&gt;&lt;P&gt;Run the following command to see what nifi is actually running and how long it has been running:&lt;/P&gt;&lt;PRE&gt;ps -ef|grep "TIME\|nifi-1"&lt;/PRE&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;Matt&lt;/P&gt;</description>
    <pubDate>Thu, 31 May 2018 19:52:57 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2018-05-31T19:52:57Z</dc:date>
    <item>
      <title>Exception in thread "main" java.io.IOException: /home/nifi-1.6.0/run directory does not have read/write privilege</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-io-IOException-home/m-p/206729#M78971</link>
      <description>&lt;P&gt;I have installed Nifi-1.6.0 and when I fire the command &lt;CODE&gt;`./nifi.sh start`&lt;/CODE&gt; in terminal, it is showing &lt;CODE&gt;`Exception in thread "main" java.io.IOException: /home/nifi-1.6.0/run directory does not have read/write privilege&lt;/CODE&gt;`.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="76523-main-javaio.png" style="width: 1078px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17023i345DEBF45ABD2057/image-size/medium?v=v2&amp;amp;px=400" role="button" title="76523-main-javaio.png" alt="76523-main-javaio.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Although on browser GUI, Nifi is coming well on &lt;CODE&gt;`localhost:8080/nifi&lt;/CODE&gt;`.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 04:41:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-io-IOException-home/m-p/206729#M78971</guid>
      <dc:creator>rk241091</dc:creator>
      <dc:date>2019-08-18T04:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.io.IOException: /home/nifi-1.6.0/run directory does not have read/write privilege</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-io-IOException-home/m-p/206730#M78972</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/83196/rk241091.html" nodeid="83196"&gt;@Rahul Kumar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is a typo in your command.&lt;/P&gt;&lt;P&gt;You are running it as :&lt;/P&gt;&lt;PRE&gt;# cd /home/rahul/nifi-1.6.0/bin
# . nifi.sh start&lt;/PRE&gt;&lt;P&gt;Where as you should run the command as following:&lt;/P&gt;&lt;PRE&gt;# cd /home/rahul/nifi-1.6.0/bin
# ./nifi.sh start&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE:&lt;/STRONG&gt;  &lt;STRONG&gt;"./nifi.sh".  &lt;/STRONG&gt;There is no space between DOT and nifi.sh&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 19:14:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-io-IOException-home/m-p/206730#M78972</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-05-31T19:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.io.IOException: /home/nifi-1.6.0/run directory does not have read/write privilege</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-io-IOException-home/m-p/206731#M78973</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/83196/rk241091.html" nodeid="83196"&gt;@Rahul Kumar&lt;/A&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;The NiFi "run" directory is where NiFi creates the "nifi.pid" and "nifi.status" files during startup.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;You should make sure that the user that owns teh NiFi process has the ability to create files inside the /home/rahul/nifi-1.6.0/run directory.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Your NiFi should have failed to start.&lt;/P&gt;&lt;P&gt;Take a look in your nifi-bootstrap.log file to see when the last time you see:&lt;/P&gt;&lt;PRE&gt;org.apache.nifi.bootstrap.Command Starting Apache NiFi...&lt;/PRE&gt;&lt;P&gt;Does the timestamp for that line correspond with your latest attempt to start NiFi?&lt;/P&gt;&lt;P&gt;My thought is that their was already a NiFi process running and what you see in browser is really not the same process as to what you think you just started.&lt;/P&gt;&lt;P&gt;Run the following command to see what nifi is actually running and how long it has been running:&lt;/P&gt;&lt;PRE&gt;ps -ef|grep "TIME\|nifi-1"&lt;/PRE&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 19:52:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-io-IOException-home/m-p/206731#M78973</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2018-05-31T19:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.io.IOException: /home/nifi-1.6.0/run directory does not have read/write privilege</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-io-IOException-home/m-p/206732#M78974</link>
      <description>&lt;P&gt;I started nifi just now and it is showing too in the nifi-bootstrap.log&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="76542-bootstrap-nifi.png" style="width: 1366px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17021i0ADA1439F914B452/image-size/medium?v=v2&amp;amp;px=400" role="button" title="76542-bootstrap-nifi.png" alt="76542-bootstrap-nifi.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I ran &lt;/P&gt;&lt;PRE&gt;ps -ef|grep "TIME\|nifi-1"                                                                                                                                &lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;which gave following result as shown in the image, but still java.io.exception is there...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="76543-ps-efgrep-timenifi-1.png" style="width: 1294px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17022i56C26296D8F3AD1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="76543-ps-efgrep-timenifi-1.png" alt="76543-ps-efgrep-timenifi-1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 04:41:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-io-IOException-home/m-p/206732#M78974</guid>
      <dc:creator>rk241091</dc:creator>
      <dc:date>2019-08-18T04:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.io.IOException: /home/nifi-1.6.0/run directory does not have read/write privilege</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-io-IOException-home/m-p/206733#M78975</link>
      <description>&lt;P&gt;Still showing same error&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="76544-still-error-persists.png" style="width: 1081px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17020iB7FB0D2050D2FE4A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="76544-still-error-persists.png" alt="76544-still-error-persists.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 04:41:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-io-IOException-home/m-p/206733#M78975</guid>
      <dc:creator>rk241091</dc:creator>
      <dc:date>2019-08-18T04:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.io.IOException: /home/nifi-1.6.0/run directory does not have read/write privilege</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-io-IOException-home/m-p/206734#M78976</link>
      <description>&lt;P&gt;Okay ! after a bit of search on stackoverflow I came across the command &lt;/P&gt;&lt;P&gt;`sudo chown -R $USER:$USER /home/rahul/nifi-1.6.0`&lt;/P&gt;&lt;P&gt;that will give the permission to the folder to alter the changes with permission to read and write, and Bingo !!! it worked . &lt;BR /&gt;&lt;BR /&gt;And after firing the command mentioned in above, there is no error as following :&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Exception in thread "main" java.io.IOException: /home/nifi-1.6.0/run directory does not have read/write privilege&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/525/mclarke.html" nodeid="525"&gt;@Matt Clarke  &lt;/A&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 12:48:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-thread-quot-main-quot-java-io-IOException-home/m-p/206734#M78976</guid>
      <dc:creator>rk241091</dc:creator>
      <dc:date>2018-06-01T12:48:53Z</dc:date>
    </item>
  </channel>
</rss>

