Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Apache metron on single node VM metron-config Failure

Highlighted

Apache metron on single node VM metron-config Failure

Explorer

Hi

I am trying to install apache metron on Ubuntu 18.04. I am following the steps here .

I am getting an error when I run

mvn clean package -rf :metron-config
[ERROR] Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-59_binding.node": 
[ERROR] 
[ERROR] HTTP error 404 Not Found
[ERROR] 
[ERROR] Hint: If github.com is not accessible in your location
[ERROR]       try setting a proxy via HTTP_PROXY, e.g. 
[ERROR] 
[ERROR]       export HTTP_PROXY=http://example.com:1234
[ERROR] 
[ERROR] or configure npm proxy via
[ERROR] 
[ERROR]       npm config set proxy http://example.com:8080
[INFO] Building: /home/sohaila/metron/metron-interface/metron-config/node/node /home/sohaila/metron/metron-interface/metron-config/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
[ERROR] gyp info it worked if it ends with ok
[ERROR] gyp verb cli [ '/home/sohaila/metron/metron-interface/metron-config/node/node',
[ERROR] gyp verb cli   '/home/sohaila/metron/metron-interface/metron-config/node_modules/node-gyp/bin/node-gyp.js',
[ERROR] gyp verb cli   'rebuild',
[ERROR] gyp verb cli   '--verbose',
[ERROR] gyp verb cli   '--libsass_ext=',
[ERROR] gyp verb cli   '--libsass_cflags=',
[ERROR] gyp verb cli   '--libsass_ldflags=',
[ERROR] gyp verb cli   '--libsass_library=' ]
[ERROR] gyp info using node-gyp@3.8.0
[ERROR] gyp info using node@9.11.1 | linux | x64
[ERROR] gyp verb command rebuild []
[ERROR] gyp verb command clean []
[ERROR] gyp verb clean removing "build" directory
[ERROR] gyp verb command configure []
[ERROR] gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
[ERROR] gyp verb download using dist-url https://nodejs.org/dist
[ERROR] gyp verb check python checking for Python executable "python2" in the PATH
[ERROR] gyp verb `which` succeeded python2 /usr/bin/python2
[ERROR] gyp verb check python version `/usr/bin/python2 -c "import sys; print "2.7.15
[ERROR] gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
[ERROR] gyp verb get node dir no --target version specified, falling back to host node version: 9.11.1
[ERROR] gyp verb command install [ '9.11.1' ]
[ERROR] gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
[ERROR] gyp verb download using dist-url https://nodejs.org/dist
[ERROR] gyp verb install input version string "9.11.1"
[ERROR] gyp verb install installing version: 9.11.1
[ERROR] gyp verb install --ensure was passed, so won't reinstall if already installed
[ERROR] gyp verb install version is already installed, need to check "installVersion"
[ERROR] gyp verb got "installVersion" 9
[ERROR] gyp verb needs "installVersion" 9
[ERROR] gyp verb install version is good
[ERROR] gyp verb get node dir target node version installed: 9.11.1
[ERROR] gyp verb build dir attempting to create "build" dir: /home/sohaila/metron/metron-interface/metron-config/node_modules/node-sass/build
[ERROR] gyp verb build dir "build" dir needed to be created? /home/sohaila/metron/metron-interface/metron-config/node_modules/node-sass/build
[ERROR] gyp verb build/config.gypi creating config file
[ERROR] gyp verb build/config.gypi writing out config file: /home/sohaila/metron/metron-interface/metron-config/node_modules/node-sass/build/config.gypi
[ERROR] gyp verb config.gypi checking for gypi file: /home/sohaila/metron/metron-interface/metron-config/node_modules/node-sass/config.gypi
[ERROR] gyp verb common.gypi checking for gypi file: /home/sohaila/metron/metron-interface/metron-config/node_modules/node-sass/common.gypi
[ERROR] gyp verb gyp gyp format was not specified; forcing "make"
[ERROR] gyp info spawn /usr/bin/python2
[ERROR] gyp info spawn args [ '/home/sohaila/metron/metron-interface/metron-config/node_modules/node-gyp/gyp/gyp_main.py',
[ERROR] gyp info spawn args   'binding.gyp',
[ERROR] gyp info spawn args   '-f',
[ERROR] gyp info spawn args   'make',
[ERROR] gyp info spawn args   '-I',
[ERROR] gyp info spawn args   '/home/sohaila/metron/metron-interface/metron-config/node_modules/node-sass/build/config.gypi',
[ERROR] gyp info spawn args   '-I',
[ERROR] gyp info spawn args   '/home/sohaila/metron/metron-interface/metron-config/node_modules/node-gyp/addon.gypi',
[ERROR] gyp info spawn args   '-I',
[ERROR] gyp info spawn args   '/home/sohaila/.node-gyp/9.11.1/include/node/common.gypi',
[ERROR] gyp info spawn args   '-Dlibrary=shared_library',
[ERROR] gyp info spawn args   '-Dvisibility=default',
[ERROR] gyp info spawn args   '-Dnode_root_dir=/home/sohaila/.node-gyp/9.11.1',
[ERROR] gyp info spawn args   '-Dnode_gyp_dir=/home/sohaila/metron/metron-interface/metron-config/node_modules/node-gyp',
[ERROR] gyp info spawn args   '-Dnode_lib_file=/home/sohaila/.node-gyp/9.11.1/<(target_arch)/node.lib',
[ERROR] gyp info spawn args   '-Dmodule_root_dir=/home/sohaila/metron/metron-interface/metron-config/node_modules/node-sass',
[ERROR] gyp info spawn args   '-Dnode_engine=v8',
[ERROR] gyp info spawn args   '--depth=.',
[ERROR] gyp info spawn args   '--no-parallel',
[ERROR] gyp info spawn args   '--generator-output',
[ERROR] gyp info spawn args   'build',
[ERROR] gyp info spawn args   '-Goutput_dir=.' ]
[ERROR] gyp verb command build []
[ERROR] gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
[ERROR] gyp verb download using dist-url https://nodejs.org/dist
[ERROR] gyp verb build type Release
[ERROR] gyp verb architecture x64
[ERROR] gyp verb node dev dir /home/sohaila/.node-gyp/9.11.1
[ERROR] gyp verb `which` succeeded for `make` /usr/bin/make
[ERROR] gyp info spawn make
[ERROR] gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]



It seems that github link to download node-sass is not working,

Anybody have any idea how to fix this problem

13 REPLIES 13
Highlighted

Re: Apache metron on single node VM metron-config Failure

Explorer

Try installing the node-sass:

npm install node-sass

and then run the mvn command again:

mvn clean package-rf :metron-config

any changes?

Re: Apache metron on single node VM metron-config Failure

Explorer

unfortunately it doesn't work :(

each time the mvn command is run it removes the node and node_modules directory and reinstalled it again,

So even if I use the command to install node-sass when I run mvn it will be removed

Highlighted

Re: Apache metron on single node VM metron-config Failure

Explorer

I see...

May I know why you are running

mvn clean package-rf :metron-config

instead of

cd metron/metron-deployment/development/centos6
vagrant up

Also. can you share with me the result when you run

metron/metron-deployment/scripts/platform-info.sh
Highlighted

Re: Apache metron on single node VM metron-config Failure

Explorer

I am following this guide , is that wrong?

I run the command, this is the output

sohaila@sohaila-virtual-machine:~/metron$ metron-deployment/scripts/platform-info.sh
Metron 0.6.1
--
* master
--
commit 0e037edad913955d3b6754ca9cf42b329cd84160 (HEAD -> master, origin/master, origin/feature/METRON-1090-stellar-assignment, origin/HEAD)
Author: Nick Allen <nick@nickallen.org>
Date:   Tue Oct 23 15:01:04 2018 -0400


    Revert "METRON-1801 Allow Customization of Elasticsearch Document ID (nickwallen) closes apache/metron#1218"
    
    This reverts commit 90c5e1d2896b8a95bd6c928e3dab96f1fd85167c.
--
--
ansible 2.7.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/sohaila/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.15rc1 (default, Apr 15 2018, 21:51:34) [GCC 7.3.0]
--
Vagrant 2.0.3
--
vagrant-hostmanager (1.8.9)
--
Python 2.7.15rc1
--
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T21:33:14+03:00)
Maven home: /opt/apache-maven
Java version: 1.8.0_191, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.15.0-38-generic", arch: "amd64", family: "unix"
--
Docker version 18.06.1-ce, build e68fc7a
--
node
v8.10.0
--
npm
3.5.2
--
g++ (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


--
Compiler is C++11 compliant
--
Linux sohaila-virtual-machine 4.15.0-38-generic #41-Ubuntu SMP Wed Oct 10 10:59:38 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
--
Total System Memory = 3921.56 MB
Processor Model: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz
Processor Speed: 2601.000 MHz
Total Physical Processors: 4
Total cores: 8
Disk information:
/dev/sda1        79G   15G   60G  20% /
/dev/loop2      3.8M  3.8M     0 100% /snap/gnome-system-monitor/51
/dev/loop4      2.4M  2.4M     0 100% /snap/gnome-calculator/180
/dev/loop3       87M   87M     0 100% /snap/core/4917
/dev/loop0       15M   15M     0 100% /snap/gnome-logs/37
/dev/loop1       35M   35M     0 100% /snap/gtk-common-themes/319
/dev/loop6       13M   13M     0 100% /snap/gnome-characters/103
/dev/loop5      141M  141M     0 100% /snap/gnome-3-26-1604/70
/dev/sr0        1.9G  1.9G     0 100% /media/sohaila/Ubuntu 18.04.1 LTS amd64
/dev/loop7       88M   88M     0 100% /snap/core/5662
/dev/loop9       13M   13M     0 100% /snap/gnome-characters/124
/dev/loop8      2.3M  2.3M     0 100% /snap/gnome-calculator/238
/dev/loop10      15M   15M     0 100% /snap/gnome-logs/45
/dev/loop11      43M   43M     0 100% /snap/gtk-common-themes/701
/dev/loop12     141M  141M     0 100% /snap/gnome-3-26-1604/74
This CPU appears to support virtualization

Highlighted

Re: Apache metron on single node VM metron-config Failure

Explorer

Well...I cannot say it's wrong or right...maybe a little incomplete...personally I followed this: Dev VM Install: Ansible Based Vagrant Single Node VM Install - Metron on CentOS 6 , with the exception that I used CentOS 7 instead of 6.

So far, from the result, it shows that you have fulfilled all the necessary components.

Can you share me the result when you do this:

cd metron/metron-deployment/development/centos6 (or ubuntu14, whichever you choose to use)

vagrant destroy -f (to remove any previous running vagrant)

vagrant up 

Should any error occur, please share, including which task it started to get the issue.

Highlighted

Re: Apache metron on single node VM metron-config Failure

Explorer

93457-2.png

That's what I got

Highlighted

Re: Apache metron on single node VM metron-config Failure

Explorer

I see...Can you share more below? The error should continue. This part shows that the error happened when it tried to run

mvn package -DSkipTests -Pbuild-debs -T 2C

More in the error should explain what happened, particularly starting from "BUILD FAILURE....." until "Ansible failed to..."

Can you share that section?

Highlighted

Re: Apache metron on single node VM metron-config Failure

Explorer

Thank you @Nor Liana Kamaruzzaman for helping

when you mentioned to follow this I didn't realize that maven version should be 3.3.9

even though I am getting another error but this one was fixed by installing the correct version of maven

Highlighted

Re: Apache metron on single node VM metron-config Failure

New Contributor

I have same issue. Can you help me?

failed: [node1 -> localhost] (item=mvn package -DskipTests -Pbuild-debs -T 2C) => {"changed": true, "cmd": "mvn package -DskipTests -Pbuild-debs -T 2C", "delta": "0:01:04.482482", "end": "2018-11-07 09:48:03.014693", "item": "mvn package -DskipTests -Pbuild-debs -T 2C", "msg": "non-zero return code", "rc": 1, "start": "2018-11-07 09:46:58.532211", "stderr": "", "stderr_lines": [], "stdout": "[INFO] Scanning for projects...\n[INFO] ------------------------------------------------------------------------\n[INFO] Reactor Build Order:\n[INFO] \n[INFO] metron-deployment\n[INFO] metron-debs\n[INFO] \n[INFO] Using the MultiThreadedBuilder implementation with a thread count of 2\n[INFO]                                                                         \n[INFO] ------------------------------------------------------------------------\n[INFO] Building metron-deployment 0.6.1\n[INFO] ------------------------------------------------------------------------\n[INFO] \n[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ metron-deployment ---\n[INFO] \n[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-deployment ---\n[INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/root/incubator-metron/metron-deployment/target/jacoco.exec\n[INFO] \n[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @ metron-deployment ---\n[INFO] Skipping JaCoCo execution due to missing execution data file.\n[INFO]                                                                         \n[INFO] ------------------------------------------------------------------------\n[INFO] Building metron-debs 0.6.1\n[INFO] ------------------------------------------------------------------------\n[INFO] \n[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ metron-debs ---\n[INFO] \n[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-debs ---\n[INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/root/incubator-metron/metron-deployment/packaging/docker/deb-docker/target/jacoco.exec\n[INFO] \n[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @ metron-debs ---\n[INFO] Skipping JaCoCo execution due to missing execution data file.\n[INFO] \n[INFO] --- maven-resources-plugin:3.0.1:copy-resources (copy-deb-sources) @ metron-debs ---\n[INFO] Using 'UTF-8' encoding to copy filtered resources.\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] \n[INFO] --- exec-maven-plugin:1.5.0:exec (docker-build) @ metron-debs ---\n[ERROR] Command execution failed.\njava.io.IOException: Cannot run program \"docker\" (in directory \"/root/incubator-metron/metron-deployment/packaging/docker/deb-docker\"): error=2, No such file or directory\n\tat java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)\n\tat java.lang.Runtime.exec(Runtime.java:620)\n\tat org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:61)\n\tat org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:279)\n\tat org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:336)\n\tat org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)\n\tat org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)\n\tat org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)\n\tat org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)\n\tat org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)\n\tat org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:185)\n\tat org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:181)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat java.lang.Thread.run(Thread.java:748)\nCaused by: java.io.IOException: error=2, No such file or directory\n\tat java.lang.UNIXProcess.forkAndExec(Native Method)\n\tat java.lang.UNIXProcess.<init>(UNIXProcess.java:247)\n\tat java.lang.ProcessImpl.start(ProcessImpl.java:134)\n\tat java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)\n\t... 21 more\n[INFO] ------------------------------------------------------------------------\n[INFO] Reactor Summary:\n[INFO] \n[INFO] metron-deployment .................................. SUCCESS [  5.031 s]\n[INFO] metron-debs ........................................ FAILURE [ 52.014 s]\n[INFO] ------------------------------------------------------------------------\n[INFO] BUILD FAILURE\n[INFO] ------------------------------------------------------------------------\n[INFO] Total time: 57.806 s (Wall Clock)\n[INFO] Finished at: 2018-11-07T09:48:02-08:00\n[INFO] Final Memory: 15M/247M\n[INFO] ------------------------------------------------------------------------\n[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (docker-build) on project metron-debs: Command execution failed. Cannot run program \"docker\" (in directory \"/root/incubator-metron/metron-deployment/packaging/docker/deb-docker\"): error=2, No such file or directory -> [Help 1]\n[ERROR] \n[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.\n[ERROR] Re-run Maven using the -X switch to enable full debug logging.\n[ERROR] \n[ERROR] For more information about the errors and possible solutions, please read the following articles:\n[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException\n[ERROR] \n[ERROR] After correcting the problems, you can resume the build with the command\n[ERROR]   mvn <goals> -rf :metron-debs", "stdout_lines": ["[INFO] Scanning for projects...", "[INFO] ------------------------------------------------------------------------", "[INFO] Reactor Build Order:", "[INFO] ", "[INFO] metron-deployment", "[INFO] metron-debs", "[INFO] ", "[INFO] Using the MultiThreadedBuilder implementation with a thread count of 2", "[INFO]                                                                         ", "[INFO] ------------------------------------------------------------------------", "[INFO] Building metron-deployment 0.6.1", "[INFO] ------------------------------------------------------------------------", "[INFO] ", "[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ metron-deployment ---", "[INFO] ", "[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-deployment ---", "[INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/root/incubator-metron/metron-deployment/target/jacoco.exec", "[INFO] ", "[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @ metron-deployment ---", "[INFO] Skipping JaCoCo execution due to missing execution data file.", "[INFO]                                                                         ", "[INFO] ------------------------------------------------------------------------", "[INFO] Building metron-debs 0.6.1", "[INFO] ------------------------------------------------------------------------", "[INFO] ", "[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ metron-debs ---", "[INFO] ", "[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-debs ---", "[INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/root/incubator-metron/metron-deployment/packaging/docker/deb-docker/target/jacoco.exec", "[INFO] ", "[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @ metron-debs ---", "[INFO] Skipping JaCoCo execution due to missing execution data file.", "[INFO] ", "[INFO] --- maven-resources-plugin:3.0.1:copy-resources (copy-deb-sources) @ metron-debs ---", "[INFO] Using 'UTF-8' encoding to copy filtered resources.", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] ", "[INFO] --- exec-maven-plugin:1.5.0:exec (docker-build) @ metron-debs ---", "[ERROR] Command execution failed.", "java.io.IOException: Cannot run program \"docker\" (in directory \"/root/incubator-metron/metron-deployment/packaging/docker/deb-docker\"): error=2, No such file or directory", "\tat java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)", "\tat java.lang.Runtime.exec(Runtime.java:620)", "\tat org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:61)", "\tat org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:279)", "\tat org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:336)", "\tat org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)", "\tat org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)", "\tat org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)", "\tat org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)", "\tat org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)", "\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)", "\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)", "\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)", "\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)", "\tat org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:185)", "\tat org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:181)", "\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)", "\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)", "\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)", "\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)", "\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)", "\tat java.lang.Thread.run(Thread.java:748)", "Caused by: java.io.IOException: error=2, No such file or directory", "\tat java.lang.UNIXProcess.forkAndExec(Native Method)", "\tat java.lang.UNIXProcess.<init>(UNIXProcess.java:247)", "\tat java.lang.ProcessImpl.start(ProcessImpl.java:134)", "\tat java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)", "\t... 21 more", "[INFO] ------------------------------------------------------------------------", "[INFO] Reactor Summary:", "[INFO] ", "[INFO] metron-deployment .................................. SUCCESS [  5.031 s]", "[INFO] metron-debs ........................................ FAILURE [ 52.014 s]", "[INFO] ------------------------------------------------------------------------", "[INFO] BUILD FAILURE", "[INFO] ------------------------------------------------------------------------", "[INFO] Total time: 57.806 s (Wall Clock)", "[INFO] Finished at: 2018-11-07T09:48:02-08:00", "[INFO] Final Memory: 15M/247M", "[INFO] ------------------------------------------------------------------------", "[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (docker-build) on project metron-debs: Command execution failed. Cannot run program \"docker\" (in directory \"/root/incubator-metron/metron-deployment/packaging/docker/deb-docker\"): error=2, No such file or directory -> [Help 1]", "[ERROR] ", "[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.", "[ERROR] Re-run Maven using the -X switch to enable full debug logging.", "[ERROR] ", "[ERROR] For more information about the errors and possible solutions, please read the following articles:", "[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException", "[ERROR] ", "[ERROR] After correcting the problems, you can resume the build with the command", "[ERROR]   mvn <goals> -rf :metron-debs"]}


,

i have same issuse. Can you help me?.

failed: [node1 -> localhost] (item=mvn package -DskipTests -Pbuild-debs -T 2C) => {"changed": true, "cmd": "mvn package -DskipTests -Pbuild-debs -T 2C", "delta": "0:01:04.482482", "end": "2018-11-07 09:48:03.014693", "item": "mvn package -DskipTests -Pbuild-debs -T 2C", "msg": "non-zero return code", "rc": 1, "start": "2018-11-07 09:46:58.532211", "stderr": "", "stderr_lines": [], "stdout": "[INFO] Scanning for projects...\n[INFO] ------------------------------------------------------------------------\n[INFO] Reactor Build Order:\n[INFO] \n[INFO] metron-deployment\n[INFO] metron-debs\n[INFO] \n[INFO] Using the MultiThreadedBuilder implementation with a thread count of 2\n[INFO]                                                                         \n[INFO] ------------------------------------------------------------------------\n[INFO] Building metron-deployment 0.6.1\n[INFO] ------------------------------------------------------------------------\n[INFO] \n[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ metron-deployment ---\n[INFO] \n[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-deployment ---\n[INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/root/incubator-metron/metron-deployment/target/jacoco.exec\n[INFO] \n[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @ metron-deployment ---\n[INFO] Skipping JaCoCo execution due to missing execution data file.\n[INFO]                                                                         \n[INFO] ------------------------------------------------------------------------\n[INFO] Building metron-debs 0.6.1\n[INFO] ------------------------------------------------------------------------\n[INFO] \n[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ metron-debs ---\n[INFO] \n[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-debs ---\n[INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/root/incubator-metron/metron-deployment/packaging/docker/deb-docker/target/jacoco.exec\n[INFO] \n[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @ metron-debs ---\n[INFO] Skipping JaCoCo execution due to missing execution data file.\n[INFO] \n[INFO] --- maven-resources-plugin:3.0.1:copy-resources (copy-deb-sources) @ metron-debs ---\n[INFO] Using 'UTF-8' encoding to copy filtered resources.\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] \n[INFO] --- exec-maven-plugin:1.5.0:exec (docker-build) @ metron-debs ---\n[ERROR] Command execution failed.\njava.io.IOException: Cannot run program \"docker\" (in directory \"/root/incubator-metron/metron-deployment/packaging/docker/deb-docker\"): error=2, No such file or directory\n\tat java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)\n\tat java.lang.Runtime.exec(Runtime.java:620)\n\tat org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:61)\n\tat org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:279)\n\tat org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:336)\n\tat org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)\n\tat org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)\n\tat org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)\n\tat org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)\n\tat org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)\n\tat org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:185)\n\tat org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:181)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat java.lang.Thread.run(Thread.java:748)\nCaused by: java.io.IOException: error=2, No such file or directory\n\tat java.lang.UNIXProcess.forkAndExec(Native Method)\n\tat java.lang.UNIXProcess.<init>(UNIXProcess.java:247)\n\tat java.lang.ProcessImpl.start(ProcessImpl.java:134)\n\tat java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)\n\t... 21 more\n[INFO] ------------------------------------------------------------------------\n[INFO] Reactor Summary:\n[INFO] \n[INFO] metron-deployment .................................. SUCCESS [  5.031 s]\n[INFO] metron-debs ........................................ FAILURE [ 52.014 s]\n[INFO] ------------------------------------------------------------------------\n[INFO] BUILD FAILURE\n[INFO] ------------------------------------------------------------------------\n[INFO] Total time: 57.806 s (Wall Clock)\n[INFO] Finished at: 2018-11-07T09:48:02-08:00\n[INFO] Final Memory: 15M/247M\n[INFO] ------------------------------------------------------------------------\n[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (docker-build) on project metron-debs: Command execution failed. Cannot run program \"docker\" (in directory \"/root/incubator-metron/metron-deployment/packaging/docker/deb-docker\"): error=2, No such file or directory -> [Help 1]\n[ERROR] \n[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.\n[ERROR] Re-run Maven using the -X switch to enable full debug logging.\n[ERROR] \n[ERROR] For more information about the errors and possible solutions, please read the following articles:\n[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException\n[ERROR] \n[ERROR] After correcting the problems, you can resume the build with the command\n[ERROR]   mvn <goals> -rf :metron-debs", "stdout_lines": ["[INFO] Scanning for projects...", "[INFO] ------------------------------------------------------------------------", "[INFO] Reactor Build Order:", "[INFO] ", "[INFO] metron-deployment", "[INFO] metron-debs", "[INFO] ", "[INFO] Using the MultiThreadedBuilder implementation with a thread count of 2", "[INFO]                                                                         ", "[INFO] ------------------------------------------------------------------------", "[INFO] Building metron-deployment 0.6.1", "[INFO] ------------------------------------------------------------------------", "[INFO] ", "[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ metron-deployment ---", "[INFO] ", "[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-deployment ---", "[INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/root/incubator-metron/metron-deployment/target/jacoco.exec", "[INFO] ", "[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @ metron-deployment ---", "[INFO] Skipping JaCoCo execution due to missing execution data file.", "[INFO]                                                                         ", "[INFO] ------------------------------------------------------------------------", "[INFO] Building metron-debs 0.6.1", "[INFO] ------------------------------------------------------------------------", "[INFO] ", "[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ metron-debs ---", "[INFO] ", "[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-debs ---", "[INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/root/incubator-metron/metron-deployment/packaging/docker/deb-docker/target/jacoco.exec", "[INFO] ", "[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @ metron-debs ---", "[INFO] Skipping JaCoCo execution due to missing execution data file.", "[INFO] ", "[INFO] --- maven-resources-plugin:3.0.1:copy-resources (copy-deb-sources) @ metron-debs ---", "[INFO] Using 'UTF-8' encoding to copy filtered resources.", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] ", "[INFO] --- exec-maven-plugin:1.5.0:exec (docker-build) @ metron-debs ---", "[ERROR] Command execution failed.", "java.io.IOException: Cannot run program \"docker\" (in directory \"/root/incubator-metron/metron-deployment/packaging/docker/deb-docker\"): error=2, No such file or directory", "\tat java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)", "\tat java.lang.Runtime.exec(Runtime.java:620)", "\tat org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:61)", "\tat org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:279)", "\tat org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:336)", "\tat org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)", "\tat org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)", "\tat org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)", "\tat org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)", "\tat org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)", "\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)", "\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)", "\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)", "\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)", "\tat org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:185)", "\tat org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:181)", "\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)", "\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)", "\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)", "\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)", "\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)", "\tat java.lang.Thread.run(Thread.java:748)", "Caused by: java.io.IOException: error=2, No such file or directory", "\tat java.lang.UNIXProcess.forkAndExec(Native Method)", "\tat java.lang.UNIXProcess.<init>(UNIXProcess.java:247)", "\tat java.lang.ProcessImpl.start(ProcessImpl.java:134)", "\tat java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)", "\t... 21 more", "[INFO] ------------------------------------------------------------------------", "[INFO] Reactor Summary:", "[INFO] ", "[INFO] metron-deployment .................................. SUCCESS [  5.031 s]", "[INFO] metron-debs ........................................ FAILURE [ 52.014 s]", "[INFO] ------------------------------------------------------------------------", "[INFO] BUILD FAILURE", "[INFO] ------------------------------------------------------------------------", "[INFO] Total time: 57.806 s (Wall Clock)", "[INFO] Finished at: 2018-11-07T09:48:02-08:00", "[INFO] Final Memory: 15M/247M", "[INFO] ------------------------------------------------------------------------", "[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (docker-build) on project metron-debs: Command execution failed. Cannot run program \"docker\" (in directory \"/root/incubator-metron/metron-deployment/packaging/docker/deb-docker\"): error=2, No such file or directory -> [Help 1]", "[ERROR] ", "[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.", "[ERROR] Re-run Maven using the -X switch to enable full debug logging.", "[ERROR] ", "[ERROR] For more information about the errors and possible solutions, please read the following articles:", "[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException", "[ERROR] ", "[ERROR] After correcting the problems, you can resume the build with the command", "[ERROR]   mvn <goals> -rf :metron-debs"]}
Don't have an account?
Coming from Hortonworks? Activate your account here