Created on 05-31-2018 12:00 PM - edited 08-17-2019 09:41 PM
I have installed Nifi-1.6.0 and when I fire the command `./nifi.sh start`
in terminal, it is showing `Exception in thread "main" java.io.IOException: /home/nifi-1.6.0/run directory does not have read/write privilege
`.
Although on browser GUI, Nifi is coming well on `localhost:8080/nifi
`.
Created 06-01-2018 05:48 AM
Okay ! after a bit of search on stackoverflow I came across the command
`sudo chown -R $USER:$USER /home/rahul/nifi-1.6.0`
that will give the permission to the folder to alter the changes with permission to read and write, and Bingo !!! it worked .
And after firing the command mentioned in above, there is no error as following :
Exception in thread "main" java.io.IOException: /home/nifi-1.6.0/run directory does not have read/write privilege
Thanks @Matt Clarke @Jay Kumar SenSharma
Created 05-31-2018 12:14 PM
There is a typo in your command.
You are running it as :
# cd /home/rahul/nifi-1.6.0/bin # . nifi.sh start
Where as you should run the command as following:
# cd /home/rahul/nifi-1.6.0/bin # ./nifi.sh start
.
NOTE: "./nifi.sh". There is no space between DOT and nifi.sh
Created on 06-01-2018 03:45 AM - edited 08-17-2019 09:41 PM
Still showing same error
Created 05-31-2018 12:52 PM
-
The NiFi "run" directory is where NiFi creates the "nifi.pid" and "nifi.status" files during startup.
-
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.
-
Your NiFi should have failed to start.
Take a look in your nifi-bootstrap.log file to see when the last time you see:
org.apache.nifi.bootstrap.Command Starting Apache NiFi...
Does the timestamp for that line correspond with your latest attempt to start NiFi?
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.
Run the following command to see what nifi is actually running and how long it has been running:
ps -ef|grep "TIME\|nifi-1"
-
Thank you,
Matt
Created on 06-01-2018 03:41 AM - edited 08-17-2019 09:41 PM
I started nifi just now and it is showing too in the nifi-bootstrap.log
I ran
ps -ef|grep "TIME\|nifi-1"
which gave following result as shown in the image, but still java.io.exception is there...
Created 06-01-2018 05:48 AM
Okay ! after a bit of search on stackoverflow I came across the command
`sudo chown -R $USER:$USER /home/rahul/nifi-1.6.0`
that will give the permission to the folder to alter the changes with permission to read and write, and Bingo !!! it worked .
And after firing the command mentioned in above, there is no error as following :
Exception in thread "main" java.io.IOException: /home/nifi-1.6.0/run directory does not have read/write privilege
Thanks @Matt Clarke @Jay Kumar SenSharma