Did the command before that one run successfully? The one that looks like the following.
cd incubator-metron mvn clean install -DskipTests -PHDP-2.5.0.0 I don't think you need to run the command that is failing you at all. I would think you already have the RPMs built. Can you run a command like the following and see if you already have RPMs built? If you do, it will look something like this. nallen@HW12402 : ~/Development/incubator-metron $ find ./ -name "*.rpm" .//metron-deployment/packaging/docker/rpm-docker/RPMS/noarch/metron-common-0.4.0-201705031846.noarch.rpm .//metron-deployment/packaging/docker/rpm-docker/RPMS/noarch/metron-config-0.4.0-201705031846.noarch.rpm .//metron-deployment/packaging/docker/rpm-docker/RPMS/noarch/metron-data-management-0.4.0-201705031846.noarch.rpm .//metron-deployment/packaging/docker/rpm-docker/RPMS/noarch/metron-elasticsearch-0.4.0-201705031846.noarch.rpm .//metron-deployment/packaging/docker/rpm-docker/RPMS/noarch/metron-enrichment-0.4.0-201705031846.noarch.rpm .//metron-deployment/packaging/docker/rpm-docker/RPMS/noarch/metron-indexing-0.4.0-201705031846.noarch.rpm .//metron-deployment/packaging/docker/rpm-docker/RPMS/noarch/metron-parsers-0.4.0-201705031846.noarch.rpm .//metron-deployment/packaging/docker/rpm-docker/RPMS/noarch/metron-pcap-0.4.0-201705031846.noarch.rpm .//metron-deployment/packaging/docker/rpm-docker/RPMS/noarch/metron-profiler-0.4.0-201705031846.noarch.rpm .//metron-deployment/packaging/docker/rpm-docker/RPMS/noarch/metron-solr-0.4.0-201705031846.noarch.rpm .//metron-deployment/packaging/docker/rpm-docker/SRPMS/metron-0.4.0-201705031846.src.rpm .//metron-deployment/packaging/docker/rpm-docker/target/RPMS/noarch/metron-common-0.4.0-201705031846.noarch.rpm .//metron-deployment/packaging/docker/rpm-docker/target/RPMS/noarch/metron-config-0.4.0-201705031846.noarch.rpm .//metron-deployment/packaging/docker/rpm-docker/target/RPMS/noarch/metron-data-management-0.4.0-201705031846.noarch.rpm .//metron-deployment/packaging/docker/rpm-docker/target/RPMS/noarch/metron-elasticsearch-0.4.0-201705031846.noarch.rpm .//metron-deployment/packaging/docker/rpm-docker/target/RPMS/noarch/metron-enrichment-0.4.0-201705031846.noarch.rpm .//metron-deployment/packaging/docker/rpm-docker/target/RPMS/noarch/metron-indexing-0.4.0-201705031846.noarch.rpm .//metron-deployment/packaging/docker/rpm-docker/target/RPMS/noarch/metron-parsers-0.4.0-201705031846.noarch.rpm .//metron-deployment/packaging/docker/rpm-docker/target/RPMS/noarch/metron-pcap-0.4.0-201705031846.noarch.rpm .//metron-deployment/packaging/docker/rpm-docker/target/RPMS/noarch/metron-profiler-0.4.0-201705031846.noarch.rpm .//metron-deployment/packaging/docker/rpm-docker/target/RPMS/noarch/metron-solr-0.4.0-201705031846.noarch.rpm If you do, then just skip the command that is failing you and continue on in the instructions. We might need to update the Wiki instructions. On Wed, May 3, 2017 at 11:33 AM, Laurens Vets <[email protected]> wrote: > Hi List, > > I'm following this guide: https://cwiki.apache.org/confl > uence/display/METRON/Metron+with+HDP+2.5+bare-metal+install and Maven > seems to fail after this: > "cd metron-deployment/packaging/docker/rpm-docker" > "mvn clean install -DskipTests -PHDP-2.5.0.0" > > Removing intermediate container 8644c929ac36 > Successfully built 7147787972fc > [INFO] > [INFO] --- exec-maven-plugin:1.5.0:exec (rpm-build) @ metron-rpm --- > /bin/bash: ./build.sh: Permission denied > [ERROR] Command execution failed. > org.apache.commons.exec.ExecuteException: Process exited with an error: > 126 (Exit value: 126) > at org.apache.commons.exec.DefaultExecutor.executeInternal(Defa > ultExecutor.java:404) > at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecu > tor.java:166) > at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo. > java:764) > at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo. > java:711) > at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289) > at org.apache.maven.plugin.DefaultBuildPluginManager.executeMoj > o(DefaultBuildPluginManager.java:134) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj > oExecutor.java:207) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj > oExecutor.java:153) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj > oExecutor.java:145) > at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.b > uildProject(LifecycleModuleBuilder.java:116) > at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.b > uildProject(LifecycleModuleBuilder.java:80) > at org.apache.maven.lifecycle.internal.builder.singlethreaded.S > ingleThreadedBuilder.build(SingleThreadedBuilder.java:51) > at org.apache.maven.lifecycle.internal.LifecycleStarter.execute > (LifecycleStarter.java:128) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce > ssorImpl.java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe > thodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnha > nced(Launcher.java:289) > at org.codehaus.plexus.classworlds.launcher.Launcher.launch( > Launcher.java:229) > at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithEx > itCode(Launcher.java:415) > at org.codehaus.plexus.classworlds.launcher.Launcher.main( > Launcher.java:356) > [INFO] ------------------------------------------------------------ > ------------ > [INFO] BUILD FAILURE > [INFO] ------------------------------------------------------------ > ------------ > [INFO] Total time: 05:13 min > [INFO] Finished at: 2017-05-03T07:48:12-07:00 > [INFO] Final Memory: 12M/155M > [INFO] ------------------------------------------------------------ > ------------ > [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec > (rpm-build) on project metron-rpm: Command > execution failed. Process exited with an error: 126 (Exit value: 126) -> > [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/conflu > ence/display/MAVEN/MojoExecutionException > [root@metron1 rpm-docker]# > > I don't know why build.sh would give a permission denied: > > [root@metron1 rpm-docker]# ls -altr > total 36 > drwxr-xr-x. 2 root root 25 May 2 14:35 SPECS > -rw-r--r--. 1 root root 449 May 2 14:35 README.md > -rw-r--r--. 1 root root 14915 May 2 14:35 pom.xml > -rw-r--r--. 1 root root 40 May 2 14:35 .gitignore > -rw-r--r--. 1 root root 1268 May 2 14:35 Dockerfile > -rwxr-xr-x. 1 root root 1965 May 2 14:35 build.sh > drwxr-xr-x. 4 root root 46 May 2 14:35 .. > drwxr-xr-x. 4 root root 118 May 3 07:43 . > drwxr-xr-x. 2 root root 4096 May 3 07:43 SOURCES > [root@metron1 rpm-docker]# > > Any ideas? >
