Created 01-13-2017 07:11 PM
Hello all,
I downloaded NIFI on a linux ec2 node. I set the JAVA_HOME and am trying to run as su. I am running the command ./nifi.sh run. I do not see any error messages on nifi-app.log or nifi-bootstrap.log but when I check status I keep getting "Apacha Nifi not running". Am I missing some basic check here? One more issue: nifi-user.log file stays at 0 KB (doesn't get updated).
Thanks
Created 01-13-2017 10:07 PM
I am seeing that nifi is trying to start and is getting killed for some reason, don't see any logs that indicate an error.
Are you being patient enough? There is a lot of packages that get unpacked and setup when you run nifi for the first time. Also the entropy can sometimes block, so may try giving it some more time, around 15 minutes and see if it comes up. I am just hoping you are not terminating it too early.
If that is not the case, what kind of ec2 are you using, how much memory, disk space and cores?
Created 01-13-2017 07:13 PM
@Ranjit S can you confirm nothing else is running on port 8080. This is port used by nifi for web-ui. You can look into logs/nifi-bootstrap.log and logs/nifi-app.log and see if there are any errors.
Created 01-13-2017 07:18 PM
if you have some other process running on port 8080, you can change nifi to use a different port by changing the value in conf/nifi.properties. replace 8080 with whatever port you want.
Created 01-13-2017 07:37 PM
I am not sure if my previous reply got posted. I think it got lost. My 8080 is not in use. I ran netstat -pan and did not get any reference of 8080 in my output. I also tried changing port to 9090 but no luck. The log files don't contain any error either. The file: nifi-user.log stays at 0KB though. Any other suggestions?
Thanks for your help!
Created 01-13-2017 08:02 PM
@Ranjit S what about nifi-bootstrap.log and nifi-app.log can you check that. Also, it could be possible you may getting stuck in the java entropy issue. In your conf/bootstrap.conf file add the following line .
java.arg.15=-Djava.security.egd=file:/dev/./urandom
Try starting nifi now.
Created 01-13-2017 08:34 PM
@Karthik Narayanan nifi-bootstrap.log and nifi.app.log do not show any error. I added the java.arg.15 line but I still get the same issue.
Created 01-13-2017 08:05 PM
@Ranjit S I would recommend using ./nifi.sh start, rather than ./nifi.sh run and see if that works out for you. You can then stop it by running "nifi.sh stop".
Created 01-13-2017 08:35 PM
@mpayne I tried running nifi using ./nifi.sh start and after few minutes tries ./nifi.sh status and I still get the same result that nifi is not running.
Created 01-13-2017 08:37 PM
@Ranjit S That is strange.... can you show us your directory structure, a screenshot of it. Also make sure you downloaded the full tar and that it was not corrupted. I should see something in nifi-bootstrap.log at least.
Created 01-13-2017 08:47 PM
I agree - that would be useful. Any chance that there are permissions issues at play here? The user running NiFi will need write permissions to the $NIFI_HOME directory and all subdirectories.