Hello Edward:

SELinux is running in Permissive mode.

Greg

> On Dec 18, 2021, at 8:15 AM, Edward Armes <edward.ar...@gmail.com> wrote:
> 
> Hi Greg,
> 
> Can you confirm when you deploy via the RPM and start Nifi that selinux is 
> either running in permissive mode or is disabled
> 
> Edward
> 
> On Fri, 17 Dec 2021, 20:55 Gregory M. Foreman, 
> <gfore...@spinnerconsulting.com <mailto:gfore...@spinnerconsulting.com>> 
> wrote:
> David:
> 
> Correct, only the RPM version.  Running nifi.sh start in the regular build 
> output directory works fine.
> 
> Greg
> 
> 
>> On Dec 17, 2021, at 3:38 PM, David Handermann <exceptionfact...@apache.org 
>> <mailto:exceptionfact...@apache.org>> wrote:
>> 
>> Gregory,
>> 
>> Thanks for the confirmation. So this issue is specific to the RPM build, 
>> correct?  NiFi starts correctly using the tar.gz binary?
>> 
>> Regards,
>> David Handermann
>> 
>> On Fri, Dec 17, 2021 at 2:23 PM Gregory M. Foreman 
>> <gfore...@spinnerconsulting.com <mailto:gfore...@spinnerconsulting.com>> 
>> wrote:
>> David:
>> 
>> No modifications were made to the sources or configurations.  I executed 
>> nifi.sh start and that was all.
>> 
>> Thanks,
>> Greg
>> 
>>> On Dec 17, 2021, at 3:14 PM, David Handermann <exceptionfact...@apache.org 
>>> <mailto:exceptionfact...@apache.org>> wrote:
>>> 
>>> Gregory,
>>> 
>>> Thanks for reporting this issue.  Do you have any notification services 
>>> configured as part of the bootstrap.conf, such as the HTTP notification 
>>> service?
>>> 
>>> Regards,
>>> David Handermann
>>> 
>>> On Fri, Dec 17, 2021 at 1:56 PM Gregory M. Foreman 
>>> <gfore...@spinnerconsulting.com <mailto:gfore...@spinnerconsulting.com>> 
>>> wrote:
>>> Hello:
>>> 
>>> I am having trouble with the Nifi 1.15.1 RPM.  The generated code runs when 
>>> executed directly, but the RPM deployed version does not run.  I did note a 
>>> significant difference between.  Build output is attached.
>>> 
>>> ====
>>> 
>>> mvn -version
>>> Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)
>>> Maven home: /opt/maven
>>> Java version: 1.8.0_312, vendor: Red Hat, Inc., runtime: 
>>> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.312.b07-1.el7_9.x86_64/jre
>>> Default locale: en_US, platform encoding: UTF-8
>>> OS name: "linux", version: "3.10.0-1160.49.1.el7.x86_64", arch: "amd64", 
>>> family: "unix"
>>> 
>>> mvn clean install -Prpm -DskipTests
>>> 
>>> yum localinstall 
>>> nifi-assembly/target/rpm/nifi-bin/RPMS/noarch/nifi-1.15.1-1.el7.noarch.rpm
>>> 
>>> /opt/nifi/nifi-1.15.1/bin/nifi.sh start
>>> nifi.sh: JAVA_HOME not set; results may vary
>>> 
>>> Java home: 
>>> NiFi home: /opt/nifi/nifi-1.15.1
>>> 
>>> Bootstrap Config File: /opt/nifi/nifi-1.15.1/conf/bootstrap.conf
>>> 
>>> Exception in thread "main" java.lang.NoClassDefFoundError: 
>>> org/apache/nifi/security/util/TlsConfiguration
>>>         at java.lang.ClassLoader.defineClass1(Native Method)
>>>         at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
>>>         at 
>>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
>>>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
>>>         at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
>>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
>>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
>>>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
>>>         at 
>>> org.apache.nifi.bootstrap.util.SecureNiFiConfigUtil.configureSecureNiFiProperties(SecureNiFiConfigUtil.java:124)
>>>         at org.apache.nifi.bootstrap.RunNiFi.start(RunNiFi.java:1247)
>>>         at org.apache.nifi.bootstrap.RunNiFi.main(RunNiFi.java:289)
>>> Caused by: java.lang.ClassNotFoundException: 
>>> org.apache.nifi.security.util.TlsConfiguration
>>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
>>>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
>>>         ... 15 more
>>> 
>>> 
>> 
> 

Reply via email to