You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Jonhnathan Davidson (Jira)" <ji...@apache.org> on 2021/09/23 01:52:00 UTC

[jira] [Comment Edited] (NIFI-9242) org.apache.nifi.NiFi Failure to launch NiFi due to org.xerial.snappy.SnappyError

    [ https://issues.apache.org/jira/browse/NIFI-9242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17418897#comment-17418897 ] 

Jonhnathan Davidson edited comment on NIFI-9242 at 9/23/21, 1:51 AM:
---------------------------------------------------------------------

I made the below modifications in the "nifi.properties" file.

 
{code:java}
nifi.remote.input.http.enabled=false
nifi.web.http.host=127.0.0.1
nifi.web.http.port=9090
nifi.web.https.host=127.0.0.1
nifi.web.https.port=
{code}
 

In the "nifi-env.bat" file, I modified the Java implementation section, with the entry below – which is the current release of the Java JRE product, September 22, 2021.
{code:java}
set JAVA_HOME="C:\Progra~1\Java\jre1.8.0_301"
{code}
The additional modification that I made to another previous error, equivalent to no permissions to write to a folder, identified in the "nifi-app.log," pertained to running the command shell in administrator mode to address the problem.  The NiFi web site is up and running now.

 

 


was (Author: jkdavidson):
I made the below modifications in the "nifi.properties" file.

 
{code:java}
nifi.remote.input.http.enabled=false
nifi.web.http.host=127.0.0.1
nifi.web.http.port=9090
nifi.web.https.host=127.0.0.1
nifi.web.https.port=
{code}
 

 

In the "nifi-env.bat" file, I modified the Java implementation section, with the entry below – which is the current release of the Java JRE product, September 22, 2021.
{code:java}
set JAVA_HOME="C:\Progra~1\Java\jre1.8.0_301"
{code}
The additional modification that I made to another previous error, equivalent to no permissions to write to a folder, identified in the "nifi-app.log," pertained to running the command shell in administrator mode to address the problem.  The NiFi web site is up and running now.

 

 

> org.apache.nifi.NiFi Failure to launch NiFi due to org.xerial.snappy.SnappyError
> --------------------------------------------------------------------------------
>
>                 Key: NIFI-9242
>                 URL: https://issues.apache.org/jira/browse/NIFI-9242
>             Project: Apache NiFi
>          Issue Type: Bug
>         Environment: Windows 10 Pro 21H1, OS build 19043.1237
> Java version "17" 2021-09-14 LTS
> Java(TM) SE Runtime Environment (build 17+35-LTS-2724)
> Java HotSpot(TM) 64-Bit Server VM (build 17+35-LTS-2724, mixed mode, sharing)
>            Reporter: Jonhnathan Davidson
>            Priority: Major
>
> During the execution of "run-nifi.bat;" the below error appears in the "nifi-app.log."
>  
>  
> {noformat}
> Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
>  
> {noformat}
>  
> +The "nifi-app.log" section with the error.+
>  
> {code:java}
>  
> === StatusHistoryRepository Type === === StatusHistoryRepository Type === org.apache.nifi.controller.status.history.EmbeddedQuestDbStatusHistoryRepository org.apache.nifi:nifi-framework-nar:1.14.0 || .\work\nar\framework\nifi-framework-nar-1.14.0.nar-unpacked org.apache.nifi.controller.status.history.VolatileComponentStatusRepository org.apache.nifi:nifi-framework-nar:1.14.0 || .\work\nar\framework\nifi-framework-nar-1.14.0.nar-unpacked === End StatusHistoryRepository types ===2021-09-22 17:16:38,577 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 @61853c7eorg.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 @61853c7e 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:328) 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:1126) at org.apache.nifi.NiFi.<init>(NiFi.java:159) at org.apache.nifi.NiFi.<init>(NiFi.java:71) at org.apache.nifi.NiFi.main(NiFi.java:303)
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)