Hi Hao, A similar issue appears to have previously been reported on the Apache JIRA. https://issues.apache.org/jira/browse/NIFI-9242 Could you kindly confirm that the measures listed below the case solves your issue?
Kind Regards, Lehel Boér ________________________________ From: Hao Wang <[email protected]> Sent: Sunday, November 28, 2021 5:36 To: [email protected] <[email protected]> Subject: How to fix this problem on Windows ? Dear devs : I came across the following error (as shown in nifi-app.log) during my usage of NiFi on Windows : 2021-11-28 12:20:35,059 ERROR [main] org.apache.nifi.NiFi Failure to launch NiFi due to org.xerial.snappy.SnappyError: [FAILED_TO_LOAD_NATIVE_LIBRARY] Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @19e86461 org.xerial.snappy.SnappyError: [FAILED_TO_LOAD_NATIVE_LIBRARY] Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @19e86461 at org.xerial.snappy.SnappyLoader.injectSnappyNativeLoader(SnappyLoader.java:297) at org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:227) at org.xerial.snappy.Snappy.<clinit>(Snappy.java:48) at org.apache.nifi.processors.hive.PutHiveStreaming.<clinit>(PutHiveStreaming.java:158) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:467) at org.apache.nifi.nar.StandardExtensionDiscoveringManager.getClass(StandardExtensionDiscoveringManager.java:330) at org.apache.nifi.documentation.DocGenerator.documentConfigurableComponent(DocGenerator.java:100) at org.apache.nifi.documentation.DocGenerator.generate(DocGenerator.java:65) at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:1139) at org.apache.nifi.NiFi.<init>(NiFi.java:170) at org.apache.nifi.NiFi.<init>(NiFi.java:82) at org.apache.nifi.NiFi.main(NiFi.java:331) 2021-11-28 12:20:35,060 INFO [Thread-0] org.apache.nifi.NiFi Initiating shutdown of Jetty web server... 2021-11-28 12:20:35,060 INFO [Thread-0] org.apache.nifi.NiFi Jetty web server shutdown completed (nicely or otherwise). Please let me know how to fix the error. Bravo ! Hao Wang
