ehanson5 ehanson5 - 1 year ago 136
Apache Configuration Question

NiFi Build Errors

I'm trying to build Apache NiFi after cloning it from and it keeps failing on the tests on the nifi-standard-processors project. I opened up the output file in the surefire-reports directory and there's the below error that it can't run program "cmd" in directory /var/test, because no such file or directory exists. The first time I ran the install it didn't exist, but I created it and I still get the error message. I do a sanity check every time to make sure the directory still does exist. Does anyone have any idea what might be causing this issue? I'm only taking a very few steps to do this. They are posted below. I'm logged on as root on a CentOS Linux VM. Thanks in advance for any help.


  1. cd /tmp

  2. git clone

  3. cd nifi

  4. mvn clean install

[main] ERROR org.apache.nifi.processors.standard.ExecuteProcess - ExecuteProcess[id=a8d6b3a3-befa-4b74-a962-330bd021ec7b] Failed to create process due to Cannot run program "cmd" (in directory "/var/test"): error=2, No such file or directory: Cannot run program "cmd" (in directory "/var/test"): error=2, No such file or directory

Answer Source

I believe this is due to a recent commit "solving" this ticket[1]. I actually already reopened[2] it due to failures on TravisCI and the contributor is currently working on a fix.

In order to build now, you can tell maven to "skip tests" by running the command with the proper flag: mvn clean install -Dmaven.test.skip=true



Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download