Compile and install Ambari

Source: Internet
Author: User
1.2 tools that need to be installed 1.2.1 Install JDK

Enter command

[Root@bigdata-02 ~]# Java–version

Java Version "1.7.0_51"

Java (TM) SE Runtime Environment (build 1.7.0_51-b13)

Java HotSpot (TM) 64-bit Server VM (build 24.51-b03, Mixed mode)

If the above data appears, the successful JDK has been installed. If it is not installed, use Yum to install the JDK.

[root@bigdata-02 ~]# Yum Install JDK

1.2.2 Install Apache maven 3.0.5 website download Apache maven, recommended version 3.0.5

[Root@bigdata-02 ~]# wget http://apache.fayea.com/apache-mirror/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz

Extract

[Root@bigdata-02 ~]# TAR-ZXVF apache-maven-3.0.5-bin.tar.gz

Setting environment variables

[Root@bigdata-02 ~]# Vi/etc/profile

Export Maven_home= "/usr/local/apache-maven-3.0.5"

Export path= $path: $MAVEN _home/bin

[root@bigdata-02 ~] #source/etc/profile

4) Check if the installation is successful

[Root@bigdata-02 ~]# Mvn-v

Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 21:51:28+0800)

Maven Home:/usr/local/apache-maven-3.0.5

Java version:1.7.0_51, Vendor:oracle Corporation

Java Home:/usr/local/jdk1.7.0_51/jre

Default Locale:en_us, Platform Encoding:utf-8

OS name: "Linux", Version: "2.6.32-358.el6.x86_64", Arch: "AMD64", Family: "Unix"

1.2.3 Install Python 2.6 detect Python version

[Root@bigdata-02 ~]# Python

Python 2.6.6 (r266:84292, Oct 12 2012, 14:23:48)

[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2

Type ' help ', ' copyright ', ' credits ' or ' license ' for the more information.

Indicates that the current version is 2.6.6

If it is not a 2.6.6 version, you can download the appropriate version to perform the installation download installation

[Root@bigdata-02 ~]# wget http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg#md5= bfa92100bd772d5a213eedd356d64086

[root@bigdata-02 ~]# SH Setuptools-0.6c11-py2.6.egg

Finally, enter the first step command to detect the version number. 1.2.4 Installation Rpmbuild

1) Detect whether the Rpm-build has been installed

[Root@bigdata-02 ~]# Rpm-qa | grep rpm-build

2) Installation

[root@bigdata-02 ~]# yum install rpm-build 1.2.5 installation g++ detection

[Root@bigdata-02 ~]# Rpm-qa | grep gcc-c++

Installation

[root@bigdata-02 ~]# yum install gcc-c++ 1.2.6 installation nodejs download

[Root@bigdata-02 ~]# wget http://nodejs.org/dist/v0.10.33/node-v0.10.33-linux-x64.tar.gz

Extract

[Root@bigdata-02 ~]# TAR–ZXVF node-v0.10.33-linux-x64.tar.gz

Setting environment variables

[Root@bigdata-02 ~]# Vi/etc/profile

Export Node_home= "/node/node-v0.10.33-linux-x64/"

Export path= $path: $NODE _home/bin

[root@bigdata-02 ~] #source/etc/profile

Detect proper installation

[Root@bigdata-02 ~]# Node-v

v0.10.33

[Root@bigdata-02 ~]# Npm-v

1.4.28 1.2.7 Installation Brunch

1) Installation

[root@bigdata-02 ~]# NPM install-g Brunch

Detection

[Root@bigdata-02 ~]# Brunch

usage:brunch [command] [options]

Commands:

new [skeleton] [path] Create new Brunch project in Path [.]. Short-cut:n

build [options] build a brunch project. Short-cut:b

Watch [options] Watch Brunch directory and rebuild if something changed. Short-cut:w

Options:

-h,--help output usage information

-V,--version output the version number

1.2.8 install git detection

[Root@bigdata-02 ~]# Git–version

Installation

[Root@bigdat

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.