Support Questions
Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

MiNiFi on Raspberry fails to start after crash

I am running MiNiFi 0.0.1 (Java) on a Raspberry Pi 2 Model B. Recently, the Raspberry was rebooted after a power outage but I could not bring up MiNiFi again. The log looks like this:

2016-11-15 17:36:48,918 WARN [main] o.a.n.p.MiNiFiPersistentProvenanceRepository Merging [provenance_repository/journals/1167037.journal.4, provenance_repository/journals/1167037.journal.11, provenance_repository/journals/1167037.journal.15, provenance_repository/journals/1167037.journal.8, provenance_repository/journals/1167037.journal.10, provenance_repository/journals/1167037.journal.2, provenance_repository/journals/1167037.journal.5, provenance_repository/journals/1167037.journal.13, provenance_repository/journals/1167037.journal.9, provenance_repository/journals/1167037.journal.14, provenance_repository/journals/1167037.journal.6, provenance_repository/journals/1167037.journal.7, provenance_repository/journals/1167037.journal.1, provenance_repository/journals/1167037.journal.12, provenance_repository/journals/1167037.journal.0, provenance_repository/journals/1167037.journal.3] to provenance_repository/1167037.prov
2016-11-15 17:36:49,261 WARN [main] org.apache.nifi.minifi.MiNiFiServer Failed to start minifi server... shutting down.
java.lang.Exception: Unable to load flow due to: java.lang.RuntimeException: Unable to create Provenance Repository
        at org.apache.nifi.minifi.MiNiFiServer.start(MiNiFiServer.java:85) [minifi-framework-core-0.0.1.jar:0.0.1]
        at org.apache.nifi.minifi.MiNiFi.<init>(MiNiFi.java:134) [minifi-runtime-0.0.1.jar:0.0.1]
        at org.apache.nifi.minifi.MiNiFi.main(MiNiFi.java:233) [minifi-runtime-0.0.1.jar:0.0.1]
Caused by: java.lang.RuntimeException: Unable to create Provenance Repository
        at org.apache.nifi.controller.FlowController.<init>(FlowController.java:431) ~[nifi-framework-core-0.6.1.jar:0.6.1]
        at org.apache.nifi.controller.FlowController.createStandaloneInstance(FlowController.java:366) ~[nifi-framework-core-0.6.1.jar:0.6.1]
        at org.apache.nifi.minifi.MiNiFiServer.start(MiNiFiServer.java:61) [minifi-framework-core-0.0.1.jar:0.0.1]
        ... 2 common frames omitted
Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.nifi.provenance.ProvenanceEventType.
        at java.lang.Enum.valueOf(Enum.java:238) ~[na:1.8.0_65]
        at org.apache.nifi.provenance.ProvenanceEventType.valueOf(ProvenanceEventType.java:19) ~[nifi-api-0.6.1.jar:0.6.1]
        at org.apache.nifi.provenance.StandardRecordReader.nextRecord(StandardRecordReader.java:284) ~[nifi-persistent-provenance-repository-0.6.1.jar:0.6.1]
        at org.apache.nifi.provenance.MiNiFiPersistentProvenanceRepository.mergeJournals(MiNiFiPersistentProvenanceRepository.java:1371) ~[na:na]
        at org.apache.nifi.provenance.MiNiFiPersistentProvenanceRepository.recoverJournalFiles(MiNiFiPersistentProvenanceRepository.java:1161) ~[na:na]
        at org.apache.nifi.provenance.MiNiFiPersistentProvenanceRepository.recover(MiNiFiPersistentProvenanceRepository.java:502) ~[na:na]
        at org.apache.nifi.provenance.MiNiFiPersistentProvenanceRepository.initi
alize(MiNiFiPersistentProvenanceRepository.java:182) ~[na:na]        at org.apache.nifi.controller.FlowController.<init>(FlowController.java:
427) ~[nifi-framework-core-0.6.1.jar:0.6.1]
        ... 4 common frames omitted
2016-11-15 17:36:49,270 INFO [Thread-1] org.apache.nifi.minifi.MiNiFi Initiating
 shutdown of MiNiFi server...
2016-11-15 17:36:49,272 WARN [Thread-1] org.apache.nifi.minifi.MiNiFiServer Prob
lem occurred ensuring flow controller or repository was properly terminated due 
to java.lang.NullPointerException

What happened here? I am looking for ideas how to

  • fix this
  • prevent startup problems in the future.
1 ACCEPTED SOLUTION

Apparently this is a known issue: https://issues.apache.org/jira/browse/NIFI-2890.

I deleted all files in provenance_repository/journals/ - after that MiNiFi started up fine.

View solution in original post

1 REPLY 1

Apparently this is a known issue: https://issues.apache.org/jira/browse/NIFI-2890.

I deleted all files in provenance_repository/journals/ - after that MiNiFi started up fine.