[ https://issues.apache.org/jira/browse/NIFI-9527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17475053#comment-17475053 ]
Saurabh B edited comment on NIFI-9527 at 1/13/22, 2:16 AM: ----------------------------------------------------------- [~mattyb149] - I saw this behavior in 1.15.0 and 1.15.2. I have tested new jar release, which worked, however applied the below fix in bootstrap.conf (as found -> [https://community.cloudera.com/t5/Community-Articles/NiFi-org-xerial-snappy-SnappyError/ta-p/248734]) java.arg.snappy=-Dorg.xerial.snappy.tempdir=/path_to_nifi_home/tmp No change was done to the user which starts NiFi or the permission of the Java temp folder. The issue was observed in a new install of NiFi 1.15.x and upgrade from 1.12.1. Next week I plan to upgrade 1.14.0 -> 1.15.2 and will update my findings (1.14.0 was upgraded from 1.13.x without this issue with the same java version). was (Author: JIRAUSER282969): [~mattyb149] - I saw this behavior in 1.15.0 and 1.15.2. I have tested new jar release, which worked, however applied the below fix in bootstrap.conf (as found -> [https://community.cloudera.com/t5/Community-Articles/NiFi-org-xerial-snappy-SnappyError/ta-p/248734]) java.arg.snappy=-Dorg.xerial.snappy.tempdir=/usr/hdf/current/nifi/tmp No change was done to the user which starts NiFi or the permission of the Java temp folder. The issue was observed in a new install of NiFi 1.15.x and upgrade from 1.12.1. Next week I plan to upgrade 1.14.0 -> 1.15.2 and will update my findings (1.14.0 was upgraded from 1.13.x without this issue with the same java version). > nifi-hive-nar fails to load because of the old snappy-java jar > -------------------------------------------------------------- > > Key: NIFI-9527 > URL: https://issues.apache.org/jira/browse/NIFI-9527 > Project: Apache NiFi > Issue Type: Bug > Components: Extensions > Affects Versions: 1.15.0, 1.15.2 > Environment: Linux 3.10.0-1160.49.1.el7.x86_64 #1 SMP Tue Nov 9 > 16:09:48 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux > Reporter: Saurabh B > Priority: Minor > > nifi-hive-nar has old version of snappy-java jar (snappy-java-1.0.5.jar) > which fails to load. New version of snappy-java-1.1.8.4.jar works. > > {{2022-01-03 12:11:19,126 ERROR [main] org.apache.nifi.NiFi Failure to launch > NiFi}} > {{org.xerial.snappy.SnappyError: [FAILED_TO_LOAD_NATIVE_LIBRARY] null}} > {{ at org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:239)}} > {{ 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:398)}} > {{ 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:330)}} -- This message was sent by Atlassian Jira (v8.20.1#820001)