Support Questions

Find answers, ask questions, and share your expertise

NIFI : Failure to launch NiFi due to java.lang.IllegalStateException: Unable to access working directory for NAR dependencies

avatar
New Contributor

when I try to start the Nifi service show me  this error 

 

$./nifi.sh 
startnifi.sh: NIFI_ENV_PATH not specified and default /etc/nifi/conf/nifi-env.sh not found.

 

When I check  the logs on /var/lonifi/nifi-app.log 

 

$tail -f /var/log/nifi/nifi-app.log

java.lang.IllegalStateException: Unable to access working directory for NAR dependencies in: /var/lib/nifi/work/nar/extensions/nifi-jetty-bundle-1.13.2.2.1.1.12-2.nar-unpacked/NAR-INF/bundled-dependencies
        at org.apache.nifi.web.server.JettyServer.lambda$findWars$1(JettyServer.java:490)
        at java.lang.Iterable.forEach(Iterable.java:75)
        at org.apache.nifi.web.server.JettyServer.findWars(JettyServer.java:482)
        at org.apache.nifi.web.server.JettyServer.loadInitialWars(JettyServer.java:223)
        at org.apache.nifi.web.server.JettyServer.init(JettyServer.java:184)
        at org.apache.nifi.web.server.JettyServer.initialize(JettyServer.java:1291)
        at org.apache.nifi.NiFi.<init>(NiFi.java:151)
        at org.apache.nifi.NiFi.<init>(NiFi.java:71)
        at org.apache.nifi.NiFi.main(NiFi.java:303)

 

When I checked the directory Path permission and give  full access to it 

 

$ll /var/lib/nifi/work/nar/extensions/nifi-jetty-bundle-1.13.2.2.1.1.12-2.nar-unpacked/NAR-INF/bundled-dependencies

total 7260
-rwxrwxrwx. 1 nifi nifi  253615 Dec 15 17:13 apache-el-8.5.54.jar
-rwxrwxrwx. 1 nifi nifi 1041929 Dec 15 17:13 apache-jsp-8.5.54.jar
-rwxrwxrwx. 1 nifi nifi   21239 Dec 15 17:13 apache-jsp-9.4.38.v20210224.jar
-rwxrwxrwx. 1 nifi nifi   12549 Dec 15 17:13 apache-jstl-9.4.38.v20210224.jar
-rwxrwxrwx. 1 nifi nifi  121783 Dec 15 17:13 asm-9.0.jar
-rwxrwxrwx. 1 nifi nifi   33439 Dec 15 17:13 asm-analysis-9.0.jar
-rwxrwxrwx. 1 nifi nifi   71646 Dec 15 17:13 asm-commons-9.0.jar
-rwxrwxrwx. 1 nifi nifi   52673 Dec 15 17:13 asm-tree-9.0.jar
-rwxrwxrwx. 1 nifi nifi 2884633 Dec 15 17:13 ecj-3.19.0.jar
-rwxrwxrwx. 1 nifi nifi   26586 Dec 15 17:13 javax.annotation-api-1.3.2.jar
-rwxrwxrwx. 1 nifi nifi   86708 Dec 15 17:13 jetty-annotations-9.4.38.v20210224.jar
-rwxrwxrwx. 1 nifi nifi   25380 Dec 15 17:13 jetty-continuation-9.4.38.v20210224.jar
-rwxrwxrwx. 1 nifi nifi   62874 Dec 15 17:13 jetty-deploy-9.4.38.v20210224.jar
-rwxrwxrwx. 1 nifi nifi  221941 Dec 15 17:13 jetty-http-9.4.38.v20210224.jar
-rwxrwxrwx. 1 nifi nifi  170266 Dec 15 17:13 jetty-io-9.4.38.v20210224.jar
-rwxrwxrwx. 1 nifi nifi   46773 Dec 15 17:13 jetty-jndi-9.4.38.v20210224.jar
-rwxrwxrwx. 1 nifi nifi   65608 Dec 15 17:13 jetty-plus-9.4.38.v20210224.jar
-rwxrwxrwx. 1 nifi nifi  118492 Dec 15 17:13 jetty-security-9.4.38.v20210224.jar
-rwxrwxrwx. 1 nifi nifi  710389 Dec 15 17:13 jetty-server-9.4.38.v20210224.jar
-rwxrwxrwx. 1 nifi nifi  145831 Dec 15 17:13 jetty-servlet-9.4.38.v20210224.jar
-rwxrwxrwx. 1 nifi nifi  107267 Dec 15 17:13 jetty-servlets-9.4.38.v20210224.jar
-rwxrwxrwx. 1 nifi nifi  571208 Dec 15 17:13 jetty-util-9.4.38.v20210224.jar
-rwxrwxrwx. 1 nifi nifi   65240 Dec 15 17:13 jetty-util-ajax-9.4.38.v20210224.jar
-rwxrwxrwx. 1 nifi nifi  140219 Dec 15 17:13 jetty-webapp-9.4.38.v20210224.jar
-rwxrwxrwx. 1 nifi nifi   68299 Dec 15 17:13 jetty-xml-9.4.38.v20210224.jar
-rwxrwxrwx. 1 nifi nifi  206430 Dec 15 17:13 taglibs-standard-impl-1.2.5.jar
-rwxrwxrwx. 1 nifi nifi   40153 Dec 15 17:13 taglibs-standard-spec-1.2.5.jar

 

I used 
CFM 2.1.1.12-2 

 

Version  Cloudera Manager 7.4.4 (#15850731 built by jenkins on 20210730-1954 git: aa2740de2751a99075f3d170fd5e55fdfb4c6121)Java VM Name
OpenJDK 64-Bit Server VMJava Version
1.8.0_312Server Time
Dec 20, 2021 

 

 

0 REPLIES 0