NIFI:不能运行Fat Nar

时间:2018-01-26 15:45:15

标签: maven apache-nifi

我试图在nifi中运行胖子/超级游戏。我有nifi 1.4.0,这是我的pom

lib

我可以建立它就好了。然后我将jar放入安装了nifi的2018-01-26 10:38:35,243 ERROR [main] org.apache.nifi.NiFi Failure to launch NiFi due to java.io.FileNotFoundException: ./work/nar/extensions/.DS_Store/META-INF/MANIFEST.MF (Not a directory) java.io.FileNotFoundException: ./work/nar/extensions/.DS_Store/META-INF/MANIFEST.MF (Not a directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at org.apache.nifi.nar.NarBundleUtil.fromNarDirectory(NarBundleUtil.java:44) at org.apache.nifi.nar.NarClassLoaders.getNarDetails(NarClassLoaders.java:298) at org.apache.nifi.nar.NarClassLoaders.load(NarClassLoaders.java:157) at org.apache.nifi.nar.NarClassLoaders.init(NarClassLoaders.java:112) at org.apache.nifi.NiFi.<init>(NiFi.java:137) at org.apache.nifi.NiFi.main(NiFi.java:268) 2018-01-26 10:38:35,244 INFO [Thread-1] org.apache.nifi.NiFi Initiating shutdown of Jetty web server... 2018-01-26 10:38:35,244 INFO [Thread-1] org.apache.nifi.NiFi Jetty web server shutdown completed (nicely or otherwise). 文件夹中。当我运行nifi时,我得到了

{{1}}

1 个答案:

答案 0 :(得分:5)

为了构建正确的NAR,您应该使用NiFi的NAR Maven插件,它将为您生成适当的MANIFEST文件。

有一个Maven原型可以为您设置合适的项目结构。这个页面应该包含您需要的一切:

https://cwiki.apache.org/confluence/display/NIFI/Maven+Projects+for+Extensions