2017-07-05 346 views
0

我試圖在8號窗口機器上啓動Apache nifi版本1.2.0。它曾經正常啓動。重新啓動系統後,nifi完全沒有啓動。我有檢查狀態它繼續得到「Apacha Nifi沒有運行」。Apache nifi未啓動

下面是nifi.bootstrap.log文件記錄: - 從nifi.app.log

2017-07-05 15:41:57,105 WARN [NiFi Bootstrap Command Listener] 
org.apache.nifi.bootstrap.RunNiFi Failed to set permissions so that only the 
owner can read pid file E:\softwares\nifi-1.2.0\bin\..\run\nifi.pid; this 
may allows others to have access to the key needed to communicate with NiFi. 
Permissions should be changed so that only the owner can read this file 
2017-07-05 15:41:57,142 WARN [NiFi Bootstrap Command Listener] 
org.apache.nifi.bootstrap.RunNiFi Failed to set permissions so that only the 
owner can read status file E:\softwares\nifi-1.2.0\bin\..\run\nifi.status; 
this may allows others to have access to the key needed to communicate with 
NiFi. Permissions should be changed so that only the owner can read this 
file 
2017-07-05 15:41:57,168 INFO [NiFi Bootstrap Command Listener] 
org.apache.nifi.bootstrap.RunNiFi Apache NiFi now running and listening for 
Bootstrap requests on port 50765 
2017-07-05 15:43:12,077 ERROR [NiFi logging handler] org.apache.nifi.StdErr 
Failed to start web server: Unable to start Flow Controller. 
2017-07-05 15:43:12,078 ERROR [NiFi logging handler] org.apache.nifi.StdErr 
Shutting down... 
2017-07-05 15:43:14,501 INFO [main] org.apache.nifi.bootstrap.RunNiFi NiFi 
never started. Will not restart NiFi 

堆棧跟蹤: -

2017-07-05 15:43:12,077 WARN [main] org.apache.nifi.web.server.JettyServer Failed to start web server... shutting down. 
org.apache.nifi.web.NiFiCoreException: Unable to start Flow Controller. 
    at org.apache.nifi.web.contextlistener.ApplicationStartupContextListener.contextInitialized(ApplicationStartupContextListener.java:88) 
    at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:876) 
    at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:532) 
    at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:839) 
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:344) 
    at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1480) 
    at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1442) 
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:799) 
    at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:261) 
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:540) 
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) 
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) 
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113) 
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) 
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) 
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) 
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105) 
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) 
    at org.eclipse.jetty.server.handler.gzip.GzipHandler.doStart(GzipHandler.java:290) 
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) 
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131) 
    at org.eclipse.jetty.server.Server.start(Server.java:452) 
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105) 
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) 
    at org.eclipse.jetty.server.Server.doStart(Server.java:419) 
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) 
    at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:695) 
    at org.apache.nifi.NiFi.<init>(NiFi.java:160) 
    at org.apache.nifi.NiFi.main(NiFi.java:267) 
Caused by: java.io.IOException: Expected to read a Sentinel Byte of '1' but got a value of '0' instead 
    at org.apache.nifi.repository.schema.SchemaRecordReader.readRecord(SchemaRecordReader.java:65) 
    at org.apache.nifi.controller.repository.SchemaRepositoryRecordSerde.deserializeRecord(SchemaRepositoryRecordSerde.java:115) 
    at org.apache.nifi.controller.repository.SchemaRepositoryRecordSerde.deserializeEdit(SchemaRepositoryRecordSerde.java:109) 
    at org.apache.nifi.controller.repository.SchemaRepositoryRecordSerde.deserializeEdit(SchemaRepositoryRecordSerde.java:46) 
    at org.wali.MinimalLockingWriteAheadLog$Partition.recoverNextTransaction(MinimalLockingWriteAheadLog.java:1096) 
    at org.wali.MinimalLockingWriteAheadLog.recoverFromEdits(MinimalLockingWriteAheadLog.java:459) 
    at org.wali.MinimalLockingWriteAheadLog.recoverRecords(MinimalLockingWriteAheadLog.java:301) 
    at org.apache.nifi.controller.repository.WriteAheadFlowFileRepository.loadFlowFiles(WriteAheadFlowFileRepository.java:381) 
    at org.apache.nifi.controller.FlowController.initializeFlow(FlowController.java:712) 
    at org.apache.nifi.controller.StandardFlowService.initializeController(StandardFlowService.java:953) 
    at org.apache.nifi.controller.StandardFlowService.load(StandardFlowService.java:534) 
    at org.apache.nifi.web.contextlistener.ApplicationStartupContextListener.contextInitialized(ApplicationStartupContextListener.java:72) 
    ... 28 common frames omitted 

在此先感謝

回答

0

谷歌搜索後這個錯誤「引起的:java.io.IOException:預期會讀取'1'的哨兵字節,但得到值'0',而不是」我發現這個錯誤表示部分寫入回購。

以下是一些您可以檢查/嘗試將Dataflow重新聯機的功能;

  • 檢查,如果你的dsks不是完整
  • 你啓動nifi使用相同的用戶?你是否以管理員權限運行它?
  • 您可以備份/移動您的存儲庫,並嘗試使用空存儲庫啓動Nifi,您仍然可以在那裏獲得數據流,但是任何在關機時正在處理的文件都將消失。

你能試試嗎?

+0

嗨克里斯托夫謝謝你是對的最後一個建議爲我工作。 – Phani