~$ yum install ntp -y
~$ service ntpd start
~$ service iptables stop
~$ /etc/init.d/iptables stop
~$ sudo dd if=/dev/zero of=/swapfile bs=1024 count=1024k
~$ sudo mkswap /swapfile
~$ sudo swapon /swapfile
~$ echo "/swapfile none swap sw 0 0" >> /etc/fstab
~$ yum install git -y
~$ yum install rpm-build -y
~$ yum install gcc-c++ -y
~$ wget http://nodejs.org/dist/v0.10.31/node-v0.10.31-linux-x64.tar.gz
~$ tar zxvf node-v0.10.31-linux-x64.tar.gz
~$ mv node-v0.10.31-linux-x64 /usr/share/node
~$ /usr/share/node/bin/npm install -g brunch@1.7.17
~$ wget --no-check-certificate http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg
~$ sh setuptools-0.6c11-py2.6.egg
~$ wget http://psg.mtu.edu/pub/apache/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz
~$ tar zxvf apache-maven-3.0.5-bin.tar.gz
~$ mv apache-maven-3.0.5 /usr/share/maven
~$ yum install java-1.7.0-openjdk-devel -y
~$ echo 'pathmunge /usr/share/node/bin' > /etc/profile.d/node.sh
~$ chmod +x /etc/profile.d/node.sh
~$ echo 'pathmunge /usr/share/maven/bin' > /etc/profile.d/maven.sh
~$ chmod +x /etc/profile.d/maven.sh
~$ vi ~/.bashrc
export PATH= /usr/share/maven/bin:$PATH
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.85.x86_64 (it must be your java installation path)
export _JAVA_OPTIONS="-Xmx2048m -XX:MaxPermSize=512m -Djava.awt.headless=true"
~$ exit
~$ reboot
~$ git clone https://git-wip-us.apache.org/repos/asf/ambari.git
~$ cd ambari
~$ git clean -df
~$ mvn versions:set -DnewVersion=2.1.0-SNAPSHOT
~$ pushd ambari-metrics
~$ mvn versions:set -DnewVersion=2.1.0-SNAPSHOT
~$ popd
~$ mvn -B clean install package rpm:rpm -DskipTests -Dpython.ver="python >= 2.6" -Preplaceurl -Drat.skip -Drat.ignoreErrors=true
Hiç yorum yok:
Yorum Gönder