You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by na...@bt.com.INVALID on 2022/01/23 14:30:19 UTC
Building NiFi 1.15.3
Hi All,
Sorry, I normally use the user community, but this feels like it may be more of a dev question!
I've been trying to build & deploy NiFi 1.15.3, however I've been hitting issues when I've been running the application after deployment with the below error. Annoyingly, the binary download from the Apache CDN starts fine.
I've built the binary using Centos 7.9, with Java 11 and Maven 3.8.4, no errors occur during the build an it completes successfully, including tests. I also noticed that the file is about 0.1G bigger when I build it.
2022-01-23 13:15:25,807 INFO [main] org.apache.nifi.nar.NarClassLoaders Found NiFiServer implementation org.apache.nifi.web.server.JettyServer in org.apache.nifi:nifi-server-nar:1.15.3
2022-01-23 13:15:25,822 ERROR [main] org.apache.nifi.NiFi Failure to launch NiFi
java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-11-openjdk-11.0.13.0.8-1.el7_9.x86_64/lib/libmanagement.so: /usr/lib/jvm/java-11-openjdk-11.0.13.0.8-1.el7_9.x86_64/lib/libmanagement.so: cannot open shared object file: Too many open files
at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2648)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830)
at java.base/java.lang.System.loadLibrary(System.java:1873)
at java.management/java.lang.management.ManagementFactory.lambda$static$8(ManagementFactory.java:1020)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.management/java.lang.management.ManagementFactory.<clinit>(ManagementFactory.java:1019)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:398)
at org.eclipse.jetty.util.Uptime$DefaultImpl.<init>(Uptime.java:46)
at org.eclipse.jetty.util.Uptime.<init>(Uptime.java:104)
at org.eclipse.jetty.util.Uptime.<clinit>(Uptime.java:91)
at org.eclipse.jetty.util.log.Log.initialized(Log.java:170)
at org.eclipse.jetty.util.log.Log.getLogger(Log.java:278)
at org.eclipse.jetty.util.log.Log.getLogger(Log.java:267)
at org.eclipse.jetty.util.component.AbstractLifeCycle.<clinit>(AbstractLifeCycle.java:36)
at org.apache.nifi.web.server.JettyServer.init(JettyServer.java:191)
at org.apache.nifi.web.server.JettyServer.initialize(JettyServer.java:1367)
at org.apache.nifi.NiFi.<init>(NiFi.java:162)
at org.apache.nifi.NiFi.<init>(NiFi.java:82)
at org.apache.nifi.NiFi.main(NiFi.java:330)
I must be doing something wrong, but I've followed the build steps on the README.md file. So I'm a little lost!
Kind Regards,
Nathan
RE: Building NiFi 1.15.3
Posted by na...@bt.com.INVALID.
Hi All,
I've worked out the issue. It turns out to be something to do with the Hive 3 Processor I also was loading in, after removing it, NiFi started successfully.
Kind Regards,
Nathan
From: English,N,Nathan,VIR R
Sent: 23 January 2022 17:30
To: dev@nifi.apache.org
Subject: Building NiFi 1.15.3
Hi All,
Sorry, I normally use the user community, but this feels like it may be more of a dev question!
I've been trying to build & deploy NiFi 1.15.3, however I've been hitting issues when I've been running the application after deployment with the below error. Annoyingly, the binary download from the Apache CDN starts fine.
I've built the binary using Centos 7.9, with Java 11 and Maven 3.8.4, no errors occur during the build an it completes successfully, including tests. I also noticed that the file is about 0.1G bigger when I build it.
2022-01-23 13:15:25,807 INFO [main] org.apache.nifi.nar.NarClassLoaders Found NiFiServer implementation org.apache.nifi.web.server.JettyServer in org.apache.nifi:nifi-server-nar:1.15.3
2022-01-23 13:15:25,822 ERROR [main] org.apache.nifi.NiFi Failure to launch NiFi
java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-11-openjdk-11.0.13.0.8-1.el7_9.x86_64/lib/libmanagement.so: /usr/lib/jvm/java-11-openjdk-11.0.13.0.8-1.el7_9.x86_64/lib/libmanagement.so: cannot open shared object file: Too many open files
at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2648)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830)
at java.base/java.lang.System.loadLibrary(System.java:1873)
at java.management/java.lang.management.ManagementFactory.lambda$static$8(ManagementFactory.java:1020)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.management/java.lang.management.ManagementFactory.<clinit>(ManagementFactory.java:1019)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:398)
at org.eclipse.jetty.util.Uptime$DefaultImpl.<init>(Uptime.java:46)
at org.eclipse.jetty.util.Uptime.<init>(Uptime.java:104)
at org.eclipse.jetty.util.Uptime.<clinit>(Uptime.java:91)
at org.eclipse.jetty.util.log.Log.initialized(Log.java:170)
at org.eclipse.jetty.util.log.Log.getLogger(Log.java:278)
at org.eclipse.jetty.util.log.Log.getLogger(Log.java:267)
at org.eclipse.jetty.util.component.AbstractLifeCycle.<clinit>(AbstractLifeCycle.java:36)
at org.apache.nifi.web.server.JettyServer.init(JettyServer.java:191)
at org.apache.nifi.web.server.JettyServer.initialize(JettyServer.java:1367)
at org.apache.nifi.NiFi.<init>(NiFi.java:162)
at org.apache.nifi.NiFi.<init>(NiFi.java:82)
at org.apache.nifi.NiFi.main(NiFi.java:330)
I must be doing something wrong, but I've followed the build steps on the README.md file. So I'm a little lost!
Kind Regards,
Nathan