nifi没有开始。当我跑的时候 ./nifi.sh status
它给出的错误是,
org.apache.nifi.bootstrap.command apache nifi未运行
日志nifi-app.log文件中出现以下错误:
2016-12-21 11:54:30,653 INFO [main] o.a.nifi.properties.NiFiPropertiesLoader Determined default nifi.properties path to be '/root/HDF-2.0.0.0/nifi/./conf/nifi.properties'
2016-12-21 11:54:30,663 INFO [main] o.a.nifi.properties.NiFiPropertiesLoader Loaded 121 properties from /root/HDF-2.0.0.0/nifi/./conf/nifi.properties
2016-12-21 11:54:30,674 INFO [main] org.apache.nifi.NiFi Loaded 121 properties
2016-12-21 11:54:30,681 INFO [main] org.apache.nifi.BootstrapListener Started Bootstrap Listener, Listening for incoming requests on port 39604
2016-12-21 11:54:30,692 ERROR [main] org.apache.nifi.NiFi Failure to launch NiFi due to java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.8.0_101]
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[na:1.8.0_101]
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[na:1.8.0_101]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[na:1.8.0_101]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0_101]
at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0_101]
at java.net.Socket.connect(Socket.java:538) ~[na:1.8.0_101]
at org.apache.nifi.BootstrapListener.sendCommand(BootstrapListener.java:100) ~[nifi-runtime-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
at org.apache.nifi.BootstrapListener.start(BootstrapListener.java:83) ~[nifi-runtime-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
at org.apache.nifi.NiFi.<init>(NiFi.java:102) ~[nifi-runtime-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
at org.apache.nifi.NiFi.main(NiFi.java:262) ~[nifi-runtime-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
2016-12-21 11:54:30,694 INFO [Thread-1] org.apache.nifi.NiFi Initiating shutdown of Jetty web server...
2016-12-21 11:54:30,695 INFO [Thread-1] org.apache.nifi.NiFi Jetty web server shutdown completed (nicely or otherwise).
2016-12-21 11:57:07,288 INFO [main] org.apache.nifi.NiFi Launching NiFi...
3条答案
按热度按时间vdgimpew1#
对我来说,使用openjdk8而不是9是可行的。
czfnxgou2#
检查并终止正在运行的进程,这些进程已经与nifi使用相同的端口。
lmyy7pcs3#
转到nifi文件夹,检查bin文件夹下的nifi.sh是否存在,并在linux中运行下面的命令,因为您运行的是linux机器而不是windows,所以不要在这里运行批处理文件。
bin/nifi.sh开始
bin/nifi.sh状态
bin/nifi.sh停止。