2013年3月27日 星期三

[ambari]Tools needed to build Ambari

Tools needed to build Ambari



  • JDK 1.6.0

  • Apache Maven

  • Python 2.6

  • Python setuptools - Download and run: sh setuptools-0.6c11-py2.6.egg

  • rpmbuild (rpm-build package)

  • g++ (gcc-c++ package)

  • NodeJS

  • Brunch 1.5.3 (to install it, run the following command after NodeJS is installed): npm install -g brunch@1.5.3




 
script如下,
peicheng/ambari_build_env · GitHub

https://github.com/peicheng/ambari_build_env


 #------------------------------



#! /bin/bash
#install JDK 1.6 zzz

#apache maven
wget http://mirror.cc.columbia.edu/pub/software/apache/maven/maven-3/3.0.4/binaries/apache-maven-3.0.4-bin.tar.gz
sudo tar xzf apache-maven-3.0.4-bin.tar.gz -C /usr/local
cd /usr/local
sudo ln -s apache-maven-3.0.4 maven
echo "export M2_HOME=/usr/local/maven" >> /etc/profile
echo "export PATH=${M2_HOME}/bin:${PATH}" >> /etc/profile
source /etc/profile

#setuptools
cd ~
wget http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg#md5=bfa92100bd772d5a213eedd356d64086
sh setuptools-0.6c11-py2.6.egg

#node.js brunch
yum install -y openssl-devel gcc-c++ gcc
cd /usr/local/src/
wget -N http://nodejs.org/dist/node-latest.tar.gz
tar xzvf node-latest.tar.gz
cd node-*
make
make install
npm install -g brunch@1.5.3

#------------------------------
git clone git://git.apache.org/ambari.git
cd ambari
#RHEL/CentOS 6:
mvn -X -B -e clean install package rpm:rpm -DskipTests -Dpython.ver="python >= 2.6"

Ambari Server RPM will be created under AMBARI_DIR/ambari-server/target/rpm/ambari-server/RPMS/noarch.
Ambari Agent RPM will be created under AMBARI_DIR/ambari-agent/target/rpm/ambari-agent/RPMS/x86_64.

NOTE: Run everything as root below.


Cf.
Ambari Development - Apache Ambari (Incubating) - Apache Software Foundation
https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development


沒有留言:

張貼留言