Apache Nifi:资源目录路径格式不正确:docs

时间:2016-11-17 15:56:28

标签: java apache-nifi

我得到"资源目录路径格式错误"来自集成的NIFI网络服务器码头。 Jar存在,这是内容:

/jhub/_prod/server_global_unifieddata_nifi_daemon/storage/work/nar/framework/nifi-framework-nar-1.0.0-SNAPSHOT.nar-unpacked/META-INF/bundled-dependencies/nifi-web-docs-1.0.0-SNAPSHOT.war
META-INF/
META-INF/MANIFEST.MF
css/
images/
WEB-INF/
WEB-INF/classes/
WEB-INF/classes/org/
WEB-INF/classes/org/apache/
WEB-INF/classes/org/apache/nifi/
WEB-INF/classes/org/apache/nifi/web/
WEB-INF/classes/org/apache/nifi/web/docs/
WEB-INF/classes/META-INF/
WEB-INF/jsp/
js/
css/component-usage.css
css/main.css
images/bgHeader.png
images/bgTableHeader.png
images/bgBannerFoot.png
WEB-INF/classes/org/apache/nifi/web/docs/DocumentationController.class
WEB-INF/classes/META-INF/DEPENDENCIES
WEB-INF/classes/META-INF/NOTICE
WEB-INF/classes/META-INF/LICENSE
WEB-INF/web.xml
WEB-INF/jsp/no-documentation-found.jsp
WEB-INF/jsp/documentation.jsp
js/application.js
META-INF/maven/org.apache.nifi/nifi-web-docs/pom.xml
META-INF/maven/org.apache.nifi/nifi-web-docs/pom.properties

这是来自日志的消息:

==> nifi-app_2016-11-17_13.0.log <==
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_92]
    at org.apache.nifi.NiFi.<init>(NiFi.java:146) ~[nifi-runtime-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
    at org.apache.nifi.NiFi.main(NiFi.java:243) ~[nifi-runtime-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
Caused by: java.lang.IllegalStateException: Resource directory paths are malformed: docs
    at org.apache.nifi.web.server.JettyServer.createDocsWebApp(JettyServer.java:540) ~[nifi-jetty-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
    at org.apache.nifi.web.server.JettyServer.loadWars(JettyServer.java:321) ~[nifi-jetty-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
    at org.apache.nifi.web.server.JettyServer.<init>(JettyServer.java:144) ~[nifi-jetty-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
    ... 6 common frames omitted

我可以使用任何指针来解决此问题吗?

1 个答案:

答案 0 :(得分:0)

要解决此问题,我在nifi工作目录中创建了缺少的文件夹。

&#34;资源目录路径格式错误&#34;在这种情况下意味着&#34;找不到文件夹&#34;