You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Obradovic, Milos (Contractor)" <mi...@fanniemae.com> on 2015/09/11 21:22:16 UTC

Issue with building Ambari 2.1.0 from the source

Hello All,

I'm trying to build Ambari 2.1.0  from the source

wget http://www.apache.org/dist/ambari/ambari-2.1.0/apache-ambari-2.1.0-src.tar.gz
tar xfvz apache-ambari-2.1.0-src.tar.gz
cd apache-ambari-2.1.0-src
mvn versions:set -DnewVersion=2.1.0

pushd ambari-metrics
mvn versions:set -DnewVersion=2.1.0
popd

//Then when try to execute
mvn -B clean install package jdeb:jdeb -DnewVersion=2.1.0 -DskipTests -Dpython.ver="python >= 2.6"

//I'm getting  this error

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (compile-npm) on project ambari-web: Command execution failed. Cannot run program "npm" (in directory "/home/obrad/Desktop/apache-ambari-2.1.0-src/ambari-web"): error=2, No such file or directory -> [Help 1]
Do you have any idea what should I do to fix this issue?

Thanks,
Milos

Re: Issue with building Ambari 2.1.0 from the source

Posted by Jonathan Hurley <jh...@hortonworks.com>.
It looks like you don’t have npm installed to build the web client. You can follow the instructions here: https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development to help you get your development environment setup.


On Sep 11, 2015, at 3:22 PM, Obradovic, Milos (Contractor) <mi...@fanniemae.com>> wrote:

Hello All,

I'm trying to build Ambari 2.1.0  from the source

wget http://www.apache.org/dist/ambari/ambari-2.1.0/apache-ambari-2.1.0-src.tar.gz
tar xfvz apache-ambari-2.1.0-src.tar.gz
cd apache-ambari-2.1.0-src
mvn versions:set -DnewVersion=2.1.0

pushd ambari-metrics
mvn versions:set -DnewVersion=2.1.0
popd

//Then when try to execute
mvn -B clean install package jdeb:jdeb -DnewVersion=2.1.0 -DskipTests -Dpython.ver="python >= 2.6"

//I'm getting  this error

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (compile-npm) on project ambari-web: Command execution failed. Cannot run program "npm" (in directory "/home/obrad/Desktop/apache-ambari-2.1.0-src/ambari-web"): error=2, No such file or directory -> [Help 1]
Do you have any idea what should I do to fix this issue?

Thanks,
Milos