You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by Pushkara R <pu...@gmail.com> on 2017/01/09 13:46:15 UTC

NiFi installation issues

Hi,

I'm installing NiFi on my arch linux machine following the instructions in
https://github.com/apache/nifi.

After I built the project, I executed the NiFi startup script and tried
connecting to the local server but I got a 404 error with the following
message.

HTTP ERROR: 404

Problem accessing /nifi/. Reason:

    Not Found

------------------------------
Powered by Jetty:// 9.3.9.v20160517 <http://eclipse.org/jetty>

Could someone please help me debug this?

Thank You
Pushkar

Re: NiFi installation issues

Posted by Pushkara R <pu...@gmail.com>.
I notice that the server takes a minute or so to come up after running
nifi.sh start. I think the first few times I tried running nifi, I tried
connecting to the server immediately after running nifi.sh. Obviously I
couldn't connect as the server wasn't up yet. Maybe I tried to rerun the
script which could have caused clashes for the 8080 port.

This is just a guess, I'm not sure if this is the reason. But everything
seems to be working fine now. Thanks a lot Oleg.

Pushkar

On Mon, Jan 9, 2017 at 8:23 PM, Pushkara R <pu...@gmail.com> wrote:

> Thanks for pointing that out Oleg. I'll see what's occupying that port.
>
> Pushkar
>
> On Mon, Jan 9, 2017 at 8:10 PM, Oleg Zhurakousky <
> ozhurakousky@hortonworks.com> wrote:
>
>> Pushkar
>>
>> It appears that something is running on port 8080 so Jetty can not start.
>> You can see at the bottom of the log the following (see below)
>>
>>
>>   1.
>> 2017-01-09 17:24:23,606 WARN [main] org.apache.nifi.web.server.JettyServer
>> Failed to start web server... shutting down.
>>   2.
>> java.net.BindException: Address already in use
>>   3.
>>     at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_112]
>>   4.
>>     at sun.nio.ch.Net.bind(Net.java:433) ~[na:1.8.0_112]
>>   5.
>>     at sun.nio.ch.Net.bind(Net.java:425) ~[na:1.8.0_112]
>>   6.
>>     at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
>> ~[na:1.8.0_112]
>>
>> On Jan 9, 2017, at 9:37 AM, Pushkara R <pushkar1593@gmail.com<mailto:
>> pushkar1593@gmail.com>> wrote:
>>
>> Oleg
>>
>> I've pasted the app log here http://pastebin.com/YXkEvNZJ
>> and the bootstrap log here http://pastebin.com/iPJeJvwX.
>>
>> I built the project using 'maven clean install' (after setting
>> MAVEN_OPTS="-Xmx2048m -XX:MaxPermSize=128m" because of OutOfMemory
>> exceptions).
>> Then I extracted the nifi-1.2.0-snapshot-bin.tar.gz.
>> Followed by '$ .<NIFI_HOME>/bin/nifi.sh start'
>>
>> I then try to connect to 'http://localhost:8080/nifi/' which gives me the
>> screen I pasted in my previous mail.
>>
>> These were the documentation as available in the README.md in the github
>> clone of the project.
>>
>> Thanks
>> Pushkar
>>
>>
>

Re: NiFi installation issues

Posted by Pushkara R <pu...@gmail.com>.
Thanks for pointing that out Oleg. I'll see what's occupying that port.

Pushkar

On Mon, Jan 9, 2017 at 8:10 PM, Oleg Zhurakousky <
ozhurakousky@hortonworks.com> wrote:

> Pushkar
>
> It appears that something is running on port 8080 so Jetty can not start.
> You can see at the bottom of the log the following (see below)
>
>
>   1.
> 2017-01-09 17:24:23,606 WARN [main] org.apache.nifi.web.server.JettyServer
> Failed to start web server... shutting down.
>   2.
> java.net.BindException: Address already in use
>   3.
>     at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_112]
>   4.
>     at sun.nio.ch.Net.bind(Net.java:433) ~[na:1.8.0_112]
>   5.
>     at sun.nio.ch.Net.bind(Net.java:425) ~[na:1.8.0_112]
>   6.
>     at sun.nio.ch.ServerSocketChannelImpl.bind(
> ServerSocketChannelImpl.java:223) ~[na:1.8.0_112]
>
> On Jan 9, 2017, at 9:37 AM, Pushkara R <pushkar1593@gmail.com<mailto:
> pushkar1593@gmail.com>> wrote:
>
> Oleg
>
> I've pasted the app log here http://pastebin.com/YXkEvNZJ
> and the bootstrap log here http://pastebin.com/iPJeJvwX.
>
> I built the project using 'maven clean install' (after setting
> MAVEN_OPTS="-Xmx2048m -XX:MaxPermSize=128m" because of OutOfMemory
> exceptions).
> Then I extracted the nifi-1.2.0-snapshot-bin.tar.gz.
> Followed by '$ .<NIFI_HOME>/bin/nifi.sh start'
>
> I then try to connect to 'http://localhost:8080/nifi/' which gives me the
> screen I pasted in my previous mail.
>
> These were the documentation as available in the README.md in the github
> clone of the project.
>
> Thanks
> Pushkar
>
>

Re: NiFi installation issues

Posted by Oleg Zhurakousky <oz...@hortonworks.com>.
Pushkar

It appears that something is running on port 8080 so Jetty can not start. You can see at the bottom of the log the following (see below)


  1.
2017-01-09 17:24:23,606 WARN [main] org.apache.nifi.web.server.JettyServer Failed to start web server... shutting down.
  2.
java.net.BindException: Address already in use
  3.
    at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_112]
  4.
    at sun.nio.ch.Net.bind(Net.java:433) ~[na:1.8.0_112]
  5.
    at sun.nio.ch.Net.bind(Net.java:425) ~[na:1.8.0_112]
  6.
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) ~[na:1.8.0_112]

On Jan 9, 2017, at 9:37 AM, Pushkara R <pu...@gmail.com>> wrote:

Oleg

I've pasted the app log here http://pastebin.com/YXkEvNZJ
and the bootstrap log here http://pastebin.com/iPJeJvwX.

I built the project using 'maven clean install' (after setting
MAVEN_OPTS="-Xmx2048m -XX:MaxPermSize=128m" because of OutOfMemory
exceptions).
Then I extracted the nifi-1.2.0-snapshot-bin.tar.gz.
Followed by '$ .<NIFI_HOME>/bin/nifi.sh start'

I then try to connect to 'http://localhost:8080/nifi/' which gives me the
screen I pasted in my previous mail.

These were the documentation as available in the README.md in the github
clone of the project.

Thanks
Pushkar


Re: NiFi installation issues

Posted by Pushkara R <pu...@gmail.com>.
Oleg

I've pasted the app log here http://pastebin.com/YXkEvNZJ
and the bootstrap log here http://pastebin.com/iPJeJvwX.

I built the project using 'maven clean install' (after setting
MAVEN_OPTS="-Xmx2048m -XX:MaxPermSize=128m" because of OutOfMemory
exceptions).
Then I extracted the nifi-1.2.0-snapshot-bin.tar.gz.
Followed by '$ .<NIFI_HOME>/bin/nifi.sh start'

I then try to connect to 'http://localhost:8080/nifi/' which gives me the
screen I pasted in my previous mail.

These were the documentation as available in the README.md in the github
clone of the project.

Thanks
Pushkar

Re: NiFi installation issues

Posted by Oleg Zhurakousky <oz...@hortonworks.com>.
Pushkar

Any chance you can look and provide relevant logs? You can find them in the <NIFI_HOME>/log directory.
Also, could you please be more specific as to what directions did you follow. Just want to make sure that if there are any issues with documentation it is corrected.

Cheers
Oleg

> On Jan 9, 2017, at 8:46 AM, Pushkara R <pu...@gmail.com> wrote:
> 
> Hi,
> 
> I'm installing NiFi on my arch linux machine following the instructions in
> https://github.com/apache/nifi.
> 
> After I built the project, I executed the NiFi startup script and tried
> connecting to the local server but I got a 404 error with the following
> message.
> 
> HTTP ERROR: 404
> 
> Problem accessing /nifi/. Reason:
> 
>    Not Found
> 
> ------------------------------
> Powered by Jetty:// 9.3.9.v20160517 <http://eclipse.org/jetty>
> 
> Could someone please help me debug this?
> 
> Thank You
> Pushkar