nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Psaltis <psaltis.and...@gmail.com>
Subject Re: Nifi on Raspberry pi - jetty issues
Date Fri, 03 Mar 2017 09:57:06 GMT
Pushkar,
While it certainly should and has been possible to run regular NiFi on a
PI. Perhaps the best way forward is to actually use MiNiFi [1]. MiNiFi is
available in as a C++ and Java agent and designed explicitly to run on
devices.

I'm sorry I could not be of more assistance with the actually config
changes you may want to make, I am traveling at the present time and do not
have access to a PI.


[1] https://nifi.apache.org/minifi/index.html

Thanks,
Andrew

On Fri, Mar 3, 2017 at 3:21 PM, Pushkara R <pushkar1593@gmail.com> wrote:

> Hi,
>
> I'm getting NiFi to run on a raspberry pi. the bootstrap takes a very long
> time. But at the end, the port doesn't open because of a jetty issue and
> NiFi shuts down. I've pasted the exception below.
>
> A quick look at stackoverflow tells me I need to insrease the timeout value
> to go around this. But I do not know how to change it, I'm not sure if it
> is picking it up at runtime or not.
>
> Any assistance would be helpful.
>
> Thanks
> Pushkar
>
> PS : the stacktrace
>
> java.lang.Exception: Timeout scanning annotations
>         at
> org.eclipse.jetty.annotations.AnnotationConfiguration.scanForAnnotations(
> AnnotationConfiguration.java:575)
> ~[jetty-annotations-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at
> org.eclipse.jetty.annotations.AnnotationConfiguration.configure(
> AnnotationConfiguration.java:447)
> ~[jetty-annotations-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at
> org.eclipse.jetty.webapp.WebAppContext.configure(WebAppContext.java:494)
> ~[jetty-webapp-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at
> org.eclipse.jetty.webapp.WebAppContext.startContext(
> WebAppContext.java:1361)
> ~[jetty-webapp-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at
> org.eclipse.jetty.server.handler.ContextHandler.
> doStart(ContextHandler.java:772)
> ~[jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at
> org.eclipse.jetty.servlet.ServletContextHandler.doStart(
> ServletContextHandler.java:262)
> ~[jetty-servlet-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at
> org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:520)
> ~[jetty-webapp-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at
> org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:68)
> ~[jetty-util-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at
> org.eclipse.jetty.util.component.ContainerLifeCycle.
> start(ContainerLifeCycle.java:132)
> ~[jetty-util-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at
> org.eclipse.jetty.util.component.ContainerLifeCycle.
> doStart(ContainerLifeCycle.java:114)
> ~[jetty-util-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at
> org.eclipse.jetty.server.handler.AbstractHandler.
> doStart(AbstractHandler.java:61)
> ~[jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at
> org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:68)
> ~[jetty-util-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at
> org.eclipse.jetty.util.component.ContainerLifeCycle.
> start(ContainerLifeCycle.java:132)
> ~[jetty-util-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at
> org.eclipse.jetty.util.component.ContainerLifeCycle.
> doStart(ContainerLifeCycle.java:106)
> ~[jetty-util-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at
> org.eclipse.jetty.server.handler.AbstractHandler.
> doStart(AbstractHandler.java:61)
> ~[jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at
> org.eclipse.jetty.server.handler.gzip.GzipHandler.
> doStart(GzipHandler.java:231)
> ~[jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at
> org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:68)
> ~[jetty-util-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at
> org.eclipse.jetty.util.component.ContainerLifeCycle.
> start(ContainerLifeCycle.java:132)
> ~[jetty-util-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at org.eclipse.jetty.server.Server.start(Server.java:411)
> ~[jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at
> org.eclipse.jetty.util.component.ContainerLifeCycle.
> doStart(ContainerLifeCycle.java:106)
> ~[jetty-util-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at
> org.eclipse.jetty.server.handler.AbstractHandler.
> doStart(AbstractHandler.java:61)
> ~[jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at org.eclipse.jetty.server.Server.doStart(Server.java:378)
> ~[jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at
> org.eclipse.jetty.util.component.AbstractLifeCycle.
> start(AbstractLifeCycle.java:68)
> ~[jetty-util-9.3.9.v20160517.jar:9.3.9.v20160517]
>         at
> org.apache.nifi.web.server.JettyServer.start(JettyServer.java:675)
> ~[nifi-jetty-1.1.2.jar:1.1.2]
>         at org.apache.nifi.NiFi.<init>(NiFi.java:156)
> [nifi-runtime-1.1.2.jar:1.1.2]
>         at org.apache.nifi.NiFi.main(NiFi.java:262)
> [nifi-runtime-1.1.2.jar:1.1.2]
>



-- 
Thanks,
Andrew

Subscribe to my book: Streaming Data <http://manning.com/psaltis>
<https://www.linkedin.com/pub/andrew-psaltis/1/17b/306>
twiiter: @itmdata <http://twitter.com/intent/user?screen_name=itmdata>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message