You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ambari.apache.org by EdwardKing <zh...@neusoft.com> on 2014/06/26 03:09:47 UTC
Can't install ambari
I want to install ambari1.4.3 under Redhat Linux 6.4,so I download ambari-1.4.3.tar.gz and I use apache-maven-3.2.1 to execute following command:
[root@localhost ambari-1.4.3]# tar xfvz ambari-1.4.3.tar.gz
[root@localhost ambari-1.4.3]# cd ambari-1.4.3
[root@localhost ambari-1.4.3]# mvn versions:set -DnewVersion=1.4.3
[root@localhost ambari-1.4.3]# mvn -B clean install package rpm:rpm -DnewVersion=1.4.3 -DskipTests -Dpython.ver="python >= 2.6"
but it raise following errors:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (compile) on project ambari-web: An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run program "npm" (in directory "/opt/yarn/ambari-1.4.3/ambari-web"): error=2, No such file or directory
[ERROR] around Ant part ...<exec dir="/opt/yarn/ambari-1.4.3/ambari-web" executable="npm" failonerror="false">... @ 4:86 in /opt/yarn/ambari-1.4.3/ambari-web/target/antrun/build-ambari-web-compile.xml
[ERROR] -> [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 :ambari-web
[root@localhost ambari-1.4.3]#
Why raise above error? I try ambari-1.6.0 again,it still raise above error. How can I install ambari successfully? I am a newer to ambari,please help me. Thanks
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
Re: Can't install ambari
Posted by EdwardKing <zh...@neusoft.com>.
Thanks for Lin answer, I run following command:
[yarn@localhost ambari-1.6.0]$ node
>
[yarn@localhost ambari-1.6.0]$ npm
Usage: npm <command>
[yarn@localhost ambari-1.6.0]$ brunch
Usage: brunch [options] [command]
But when I run $mvn clean test, it raise following error:
[yarn@localhost ambari-1.6.0]$ mvn clean test
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.ambari:ambari-server:jar:1.6.0
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-antrun-plugin @ line 860, column 15
[WARNING] The expression ${pom.groupId} is deprecated. Please use ${project.groupId} instead.
[WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.ambari:ambari-agent:pom:1.6.0
[WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Ambari Main
[INFO] Apache Ambari Project POM
[INFO] Ambari Web
[INFO] Ambari Views
[INFO] Ambari Server
[INFO] Ambari Agent
[INFO] Ambari Client
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Ambari Main 1.6.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ ambari ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:regex-property (parse-package-version) @ ambari ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Ambari Main ....................................... FAILURE [ 0.695 s]
[INFO] Apache Ambari Project POM ......................... SKIPPED
[INFO] Ambari Web ........................................ SKIPPED
[INFO] Ambari Views ...................................... SKIPPED
[INFO] Ambari Server ..................................... SKIPPED
[INFO] Ambari Agent ...................................... SKIPPED
[INFO] Ambari Client ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.586 s
[INFO] Finished at: 2014-06-26T18:03:33-08:00
[INFO] Final Memory: 7M/16M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:build-helper-maven-plugin:1.8:regex-property (parse-package-version) on project ambari: No match to regex '^([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*' found in '1.6.0'. -> [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/MojoFailureException
[yarn@localhost ambari-1.6.0]$
I have tried Maven 3.2.1 and Maven 3.0.5, and I tried ambari 1.4.3 and ambari 1.6.0, but I still can't install ambari successfully. My profile is follows,where is wrong?How to do it? I am puzzled with ambari install for several days. Thanks.
[yarn@localhost ambari-1.6.0]$ cat /etc/profile
# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
# It's NOT a good idea to change this file unless you know what you
# are doing. It's much better to create a custom.sh shell script in
# /etc/profile.d/ to make custom changes to your environment, as this
# will prevent the need for merging in future updates.
pathmunge () {
case ":${PATH}:" in
*:"$1":*)
;;
*)
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
esac
}
if [ -x /usr/bin/id ]; then
if [ -z "$EUID" ]; then
# ksh workaround
EUID=`id -u`
UID=`id -ru`
fi
USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
fi
# Path manipulation
if [ "$EUID" = "0" ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
else
pathmunge /usr/local/sbin after
pathmunge /usr/sbin after
pathmunge /sbin after
fi
HOSTNAME=`/bin/hostname 2>/dev/null`
HISTSIZE=1000
if [ "$HISTCONTROL" = "ignorespace" ] ; then
export HISTCONTROL=ignoreboth
else
export HISTCONTROL=ignoredups
fi
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL
# By default, we want umask to get set. This sets it for login shell
# Current threshold for system reserved uid/gids is 200
# You could check uidgid reservation validity in
# /usr/share/doc/setup-*/uidgid file
if [ $UID -gt 199 ] && [ "`id -gn`" = "`id -un`" ]; then
umask 002
else
umask 022
fi
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
if [ "${-#*i}" != "$-" ]; then
. "$i"
else
. "$i" >/dev/null 2>&1
fi
fi
done
ANT_HOME=/opt/yarn/apache-maven-3.2.1
NODE_HOME=/opt/yarn/node-v0.10.29-linux-x86
HADOOP_VERSION=2.2.0
HADOOP_HOME="/opt/yarn/hadoop-${HADOOP_VERSION}"
NN_DATA_DIR=/var/data/hadoop/hdfs/nn
SNN_DATA_DIR=/var/data/hadoop/hdfs/snn
DN_DATA_DIR=/var/data/hadoop/hdfs/dn
YARN_LOG_DIR=/var/log/hadoop/yarn
HADOOP_LOG_DIR=/var/log/hadoop/hdfs
HADOOP_MAPRED_LOG_DIR=/var/log/hadoop/mapred
YARN_PID_DIR=/var/run/hadoop/yarn
HADOOP_PID_DIR=/var/run/hadoop/hdfs
HADOOP_MAPRED_PID_DIR=/var/run/hadoop/mapred
HTTP_STATIC_USER=hdfs
YARN_PROXY_PORT=8081
JAVA_HOME=/home/jdk1.7.0_60
PATH=$JAVA_HOME/bin:$HADOOP_HOME/bin:$ANT_HOME/bin:$NODE_HOME/bin:$PATH
export HADOOP_VERSION
export HADOOP_HOME
export NODE_HOME
export JAVA_HOME
export ANT_HOME
export PATH
unset i
unset pathmunge
----- Original Message -----
From: Yixiao Lin
To: user@ambari.apache.org
Sent: Thursday, June 26, 2014 10:18 PM
Subject: Re: Can't install ambari
I have installed ambari 1.6.0 on mine RHEL 6, but they should be similar.
Try follow my steps:
you should be able to run command:
$ node
$ npm
$ brunch
&nb sp;
Navigate to your Ambari directory if you have not done so
If you have build Ambari before:
$ mvn clean test
$ mvn versions:set -DnewVersion=1.6.0
$ mvn -B clean install package rpm:rpm -DnewVersion=1.6.0 -DskipTests -Dpython.ver="python >= 2.6"
On Thursday, June 26, 2014 1:17 AM, EdwardKing <zh...@neusoft.com> wrote:
Thanks Ravi, I download node-v0.10.29-linux-x86.tar.gz and apache-maven-3.0.5-bin.tar.gz, then I run following again
[root@localhost ambari-1.4.3]# mvn -B clean install package rpm:rpm -DnewVersion=1.4.3 -DskipTests -Dpython.ver="python >= 2.6"
it raise another error,like follows:
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/opt/yarn). Please verify you invoked Maven from the correct 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/MissingProjectException
[yarn@localhost yarn]$
I guess that it may loss another program, how can I do it? Thanks.
----- Original Message -----
From: Ravi Mutyala
To: user@ambari.apache.org
Sent: Thursday, June 26, 2014 10:16 AM
Subject: Re: Can't install ambari
These are the prerequisites for a build. You are missing npm.
a.. JDK 1.6.0
b.. Apache Maven 3.0.5 <- Maven 3.1.0 results in errors when building ambari-agent
c.. Python 2.6
d.. Python setuptools - python 2.6: Download or python 2.7: Download and run:
2.6:
sh setuptools-0.6c11-py2.6.egg
2.7
sh setuptools-0.6c11-py2.7.egg
e.. rpmbuild (rpm-build package)
f.. g++ (gcc-c++ package)
g.. NodeJS - v0.10.2 or later is recommended. Latest version tested for compatibility is v0.10.24 (as of Jan 15, 2014). Download the binary tarball, extract, and put the bin directory in your PATH. Verify that you can run the command node and npm. Alternatively, you can use yum to install NodeJS if you are on Fedora 18:
#Fedora 18: sudo yum update audit; sudo yum --enablerepo=updates-testing install nodejs npm
h.. Brunch 1.7.13 (to install it, run the following command after NodeJS is installed):
npm install -g brunch@1.7.13
On Wed, Jun 25, 2014 at 8:09 PM, EdwardKing <zh...@neusoft.com> wrote:
I want to install ambari1.4.3 under Redhat Linux 6.4,so I download ambari-1.4.3.tar.gz and I use apache-maven-3.2.1 to execute following command:
[root@localhost ambari-1.4.3]# tar xfvz ambari-1.4.3.tar.gz
[root@localhost ambari-1.4.3]# cd ambari-1.4.3
[root@localhost ambari-1.4.3]# mvn versions:set -DnewVersion=1.4.3
[root@localhost ambari-1.4.3]# mvn -B clean install package rpm:rpm -DnewVersion=1.4.3 -DskipTests -Dpython.ver="python >= 2.6"
but it raise following errors:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (compile) on project ambari-web: An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run program "npm" (in directory "/opt/yarn/ambari-1.4.3/ambari-web"): error=2, No such file or directory
[ERROR] around Ant part ...<exec dir="/opt/yarn/ambari-1.4.3/ambari-web" executable="npm" failonerror="false">... @ 4:86 in /opt/yarn/ambari-1.4.3/ambari-web/target/antrun/build-ambari-web-compile.xml
[ERROR] -> [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 :ambari-web
[root@localhost ambari-1.4.3]#
Why raise above error? I try ambari-1.6.0 again,it still raise above error. How can I install ambari successfully? I am a newer to ambari,please help me. Thanks
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
Re: Can't install ambari
Posted by Yixiao Lin <yi...@yahoo-inc.com>.
I have installed ambari 1.6.0 on mine RHEL 6, but they should be similar.
Try follow my steps:
you should be able to run command:
$ node
$ npm
$ brunch
Navigate to your Ambari directory if you have not done so
If you have build Ambari before:
$ mvn clean test
$ mvn versions:set -DnewVersion=1.6.0
$ mvn -B clean install package rpm:rpm -DnewVersion=1.6.0 -DskipTests -Dpython.ver="python >= 2.6"
On Thursday, June 26, 2014 1:17 AM, EdwardKing <zh...@neusoft.com> wrote:
Thanks Ravi, I download
node-v0.10.29-linux-x86.tar.gz and apache-maven-3.0.5-bin.tar.gz, then I
run following again
[root@localhost ambari-1.4.3]# mvn -B clean install
package rpm:rpm -DnewVersion=1.4.3 -DskipTests -Dpython.ver="python >=
2.6"
it raise another error,like follows:
[ERROR] The goal you specified requires a project to execute but there is
no POM in this directory (/opt/yarn). Please verify you invoked Maven from the
correct 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/MissingProjectException
[yarn@localhost
yarn]$
I guess that it may loss another program, how can I do it?
Thanks.
----- Original Message -----
>From: Ravi Mutyala
>To: user@ambari.apache.org
>Sent: Thursday, June 26, 2014 10:16 AM
>Subject: Re: Can't install ambari
>
>
>These are the prerequisites for a build. You are missing npm.
>
>
> * JDK 1.6.0
> * Apache Maven 3.0.5 <- Maven 3.1.0 results in errors when building ambari-agent
> * Python 2.6
> * Python setuptools - python 2.6: Download or python 2.7: Download and run:
>2.6:
>sh setuptools-0.6c11-py2.6.egg
>2.7
>sh setuptools-0.6c11-py2.7.egg
> * rpmbuild (rpm-build package)
> * g++ (gcc-c++ package)
> * NodeJS - v0.10.2 or later is recommended. Latest version tested for compatibility is v0.10.24 (as of Jan 15, 2014). Download the binary tarball, extract, and put the bin directory in your PATH. Verify that you can run the command node and npm. Alternatively, you can use yum to install NodeJS if you are on Fedora 18:
>#Fedora 18: sudo yum update audit; sudo yum --enablerepo=updates-testing install nodejs npm
> * Brunch 1.7.13 (to install it, run the following command after NodeJS is installed):
>npm install -g brunch@1.7.13
>
>
>
>
>On Wed, Jun 25, 2014 at 8:09 PM, EdwardKing <zh...@neusoft.com> wrote:
>
>
>>I want to install ambari1.4.3 under Redhat Linux 6.4,so I download ambari-1.4.3.tar.gz and I use apache-maven-3.2.1 to execute following command:
>>[root@localhost ambari-1.4.3]# tar xfvz ambari-1.4.3.tar.gz
>>[root@localhost ambari-1.4.3]# cd ambari-1.4.3
>>[root@localhost ambari-1.4.3]# mvn versions:set -DnewVersion=1.4.3
>>[root@localhost ambari-1.4.3]# mvn -B clean install package rpm:rpm -DnewVersion=1.4.3 -DskipTests -Dpython.ver="python >= 2.6"
>>
>>but it raise following errors:
>>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (compile) on project ambari-web: An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run program "npm" (in directory "/opt/yarn/ambari-1.4.3/ambari-web"): error=2, No such file or directory
>>[ERROR] around Ant part ...<exec
dir="/opt/yarn/ambari-1.4.3/ambari-web" executable="npm"
failonerror="false">... @ 4:86 in
/opt/yarn/ambari-1.4.3/ambari-web/target/antrun/build-ambari-web-compile.xml
>>[ERROR]
-> [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
:ambari-web
>>[root@localhost ambari-1.4.3]#
>>
>>Why raise above error? I try ambari-1.6.0 again,it still raise above error. How can I install ambari successfully? I am a newer to ambari,please help me. Thanks
>>---------------------------------------------------------------------------------------------------
>>Confidentiality
Notice: The information contained in this e-mail and any accompanying
attachment(s)
>>is intended only for the use of the intended recipient and
may be confidential and/or privileged of
>>Neusoft Corporation, its
subsidiaries and/or its affiliates. If any reader of this communication is
>>not the intended recipient, unauthorized use, forwarding,
printing, storing, disclosure or copying
>>is strictly prohibited,
and may be unlawful.If you have received this communication in error,please
>>immediately notify the sender by return e-mail, and delete the original
message and all copies from
>>your system. Thank you.
>>---------------------------------------------------------------------------------------------------
>
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
Re: Can't install ambari
Posted by EdwardKing <zh...@neusoft.com>.
Thanks Ravi, I download node-v0.10.29-linux-x86.tar.gz and apache-maven-3.0.5-bin.tar.gz, then I run following again
[root@localhost ambari-1.4.3]# mvn -B clean install package rpm:rpm -DnewVersion=1.4.3 -DskipTests -Dpython.ver="python >= 2.6"
it raise another error,like follows:
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/opt/yarn). Please verify you invoked Maven from the correct 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/MissingProjectException
[yarn@localhost yarn]$
I guess that it may loss another program, how can I do it? Thanks.
----- Original Message -----
From: Ravi Mutyala
To: user@ambari.apache.org
Sent: Thursday, June 26, 2014 10:16 AM
Subject: Re: Can't install ambari
These are the prerequisites for a build. You are missing npm.
a.. JDK 1.6.0
b.. Apache Maven 3.0.5 <- Maven 3.1.0 results in errors when building ambari-agent
c.. Python 2.6
d.. Python setuptools - python 2.6: Download or python 2.7: Download and run:
2.6:
sh setuptools-0.6c11-py2.6.egg
2.7
sh setuptools-0.6c11-py2.7.egg
e.. rpmbuild (rpm-build package)
f.. g++ (gcc-c++ package)
g.. NodeJS - v0.10.2 or later is recommended. Latest version tested for compatibility is v0.10.24 (as of Jan 15, 2014). Download the binary tarball, extract, and put the bin directory in your PATH. Verify that you can run the command node and npm. Alternatively, you can use yum to install NodeJS if you are on Fedora 18:
#Fedora 18: sudo yum update audit; sudo yum --enablerepo=updates-testing install nodejs npm
h.. Brunch 1.7.13 (to install it, run the following command after NodeJS is installed):
npm install -g brunch@1.7.13
On Wed, Jun 25, 2014 at 8:09 PM, EdwardKing <zh...@neusoft.com> wrote:
I want to install ambari1.4.3 under Redhat Linux 6.4,so I download ambari-1.4.3.tar.gz and I use apache-maven-3.2.1 to execute following command:
[root@localhost ambari-1.4.3]# tar xfvz ambari-1.4.3.tar.gz
[root@localhost ambari-1.4.3]# cd ambari-1.4.3
[root@localhost ambari-1.4.3]# mvn versions:set -DnewVersion=1.4.3
[root@localhost ambari-1.4.3]# mvn -B clean install package rpm:rpm -DnewVersion=1.4.3 -DskipTests -Dpython.ver="python >= 2.6"
but it raise following errors:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (compile) on project ambari-web: An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run program "npm" (in directory "/opt/yarn/ambari-1.4.3/ambari-web"): error=2, No such file or directory
[ERROR] around Ant part ...<exec dir="/opt/yarn/ambari-1.4.3/ambari-web" executable="npm" failonerror="false">... @ 4:86 in /opt/yarn/ambari-1.4.3/ambari-web/target/antrun/build-ambari-web-compile.xml
[ERROR] -> [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 :ambari-web
[root@localhost ambari-1.4.3]#
Why raise above error? I try ambari-1.6.0 again,it still raise above error. How can I install ambari successfully? I am a newer to ambari,please help me. Thanks
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
Re: Can't install ambari
Posted by Ravi Mutyala <rm...@gmail.com>.
These are the prerequisites for a build. You are missing npm.
- JDK 1.6.0
<http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html>
- Apache Maven 3.0.5 <http://maven.apache.org/download.cgi> <- Maven
3.1.0 results in errors when building ambari-agent
- Python 2.6
-
Python setuptools - python 2.6: Download
<http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg#md5=bfa92100bd772d5a213eedd356d64086>
or python 2.7: Download
<https://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg#md5=fe1f997bc722265116870bc7919059ea>
and run:
2.6:
sh setuptools-0.6c11-py2.6.egg
2.7
sh setuptools-0.6c11-py2.7.egg
- rpmbuild (rpm-build package)
- g++ (gcc-c++ package)
-
NodeJS <http://nodejs.org/download/> - v0.10.2 or later is recommended.
Latest version tested for compatibility is v0.10.24 (as of Jan 15, 2014).
Download the binary tarball, extract, and put the bin directory in your
PATH. Verify that you can run the command *node* and *npm. *Alternatively,
you can use *yum* to install NodeJS if you are on Fedora 18:
#Fedora 18: sudo yum update audit; sudo yum --enablerepo=updates-testing
install nodejs npm
-
Brunch 1.7.13 (to install it, run the following command after NodeJS is
installed):
npm install -g brunch@1.7.13
On Wed, Jun 25, 2014 at 8:09 PM, EdwardKing <zh...@neusoft.com> wrote:
> I want to install ambari1.4.3 under Redhat Linux 6.4,so I download
> ambari-1.4.3.tar.gz and I use apache-maven-3.2.1 to execute following
> command:
> [root@localhost ambari-1.4.3]# tar xfvz ambari-1.4.3.tar.gz
> [root@localhost ambari-1.4.3]# cd ambari-1.4.3
> [root@localhost ambari-1.4.3]# mvn versions:set -DnewVersion=1.4.3
> [root@localhost ambari-1.4.3]# mvn -B clean install package rpm:rpm
> -DnewVersion=1.4.3 -DskipTests -Dpython.ver="python >= 2.6"
>
> but it raise following errors:
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-antrun-plugin:1.7:run (compile) on project
> ambari-web: An Ant BuildException has occured: Execute failed:
> java.io.IOException: Cannot run program "npm" (in directory
> "/opt/yarn/ambari-1.4.3/ambari-web"): error=2, No such file or directory
> [ERROR] around Ant part ...<exec dir="/opt/yarn/ambari-1.4.3/ambari-web"
> executable="npm" failonerror="false">... @ 4:86 in
> /opt/yarn/ambari-1.4.3/ambari-web/target/antrun/build-ambari-web-compile.xml
> [ERROR] -> [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 :ambari-web
> [root@localhost ambari-1.4.3]#
>
> Why raise above error? I try ambari-1.6.0 again,it still raise above
> error. How can I install ambari successfully? I am a newer to ambari,please
> help me. Thanks
>
>
> ---------------------------------------------------------------------------------------------------
> Confidentiality Notice: The information contained in this e-mail and any
> accompanying attachment(s)
> is intended only for the use of the intended recipient and may be
> confidential and/or privileged of
> Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader
> of this communication is
> not the intended recipient, unauthorized use, forwarding, printing,
> storing, disclosure or copying
> is strictly prohibited, and may be unlawful.If you have received this
> communication in error,please
> immediately notify the sender by return e-mail, and delete the original
> message and all copies from
> your system. Thank you.
>
> ---------------------------------------------------------------------------------------------------
>