Created 12-15-2017 07:01 PM
I am unable to restart NIFI on HDF 3, getting following error
ERRORorg.apache.nifi.NiFi Failure to launch NiFi due to java.lang.reflect.InvocationTargetException java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.apache.nifi.NiFi.<init>(NiFi.java:153) at org.apache.nifi.NiFi.main(NiFi.java:267) Caused by: java.lang.NoSuchMethodError: org.eclipse.jetty.util.TypeUtil.getLoadedFrom(Ljava/lang/Class;)Lorg/eclipse/jetty/util/resource/Resource; at org.eclipse.jetty.webapp.WebAppContext.<clinit>(WebAppContext.java:140) at org.eclipse.jetty.webapp.Configuration$ClassList.<init>(Configuration.java:148) at org.eclipse.jetty.webapp.Configuration$ClassList.serverDefault(Configuration.java:143) at org.eclipse.jetty.webapp.Configuration$ClassList.setServerDefault(Configuration.java:115) at org.apache.nifi.web.server.JettyServer.<init>(JettyServer.java:149) ... 6 common frames omitted
Created 12-15-2017 09:19 PM
Have you added anything to NiFI's lib directory?
This looks like the classpath is messed up.
Created 12-15-2017 09:19 PM
Have you added anything to NiFI's lib directory?
This looks like the classpath is messed up.
Created 12-15-2017 09:29 PM
I added phoenix-client.jar to the nifi/lib folder, i moved it out and able to start nifi now.
Thanks
Created 12-15-2017 09:46 PM
Sounds good, there is a property in the HBase Client Service where you can specify the location of phoenix-client.jar so it can be located outside NiFi's lib dir.