I. preparations:
1.
Basic tools
Yum
Rpm
SCP
Curl
Wget
Pdsh
The first few general systems have their own,
Pdsh
You need to install
:
Yum install pdsh
This command is not successfully executed
Download by yourself
Pdsh.tar.bz2
, Use
Tar
-Jxvf
Filename.tar. bz
Decompress the package. Enter
Filename
Folder, run
./Configure,
Then execute
Make
And
Make install
Command. Installation is complete.
Also: Use
Yum
Install
Pdsh
The installation fails.
Epel
.
Epel
Is a high-quality
The project of the software package. The installation process is as follows:
1.
Check whether the installation is successful:
Rpm-Q epel-release
2.
If no, use
Rpm
Command installation:
Rpm-IVH http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
(You can also
Download the installation package)
3.
Check the software package to which it is attached:
Rpm-QR epel-release
4.
Import
Key
:
Rpm -- import/etc/pki/rpm-GPG/RPM-GPG-KEY-EPEL-6
5.
Install
Yum-priority
:
Yum install Yum-Priorities
6. CD/etc/yum. Repos. d
Ls | grep epel
7.
Install
Pdsh
You can:
Yum install pdsh
Ambari
The document says"
The Python version shipped with SuSE 11, 2.6.0-8.12.2, has a critical bug that
May cause the ambari agent to fail with 24 hours. If you are installing on SuSE 11, please update
All your hosts to Python version 2.6.8-0.15.1.
"
Use
Yum update Python
Command update
Python
But the current version is
2.6.6 -***
.
2.
Separate Configuration
/Etc/hosts
And
/Etc/sysconfig/Network
To
Ambari
For example:
(
Local Machine
192.168.235.138)
127.0.0.1
Ambari
: 1
Ambari
192.168.235.139
Master
192.168.235.140
Slave
(Modify the host name, for example,
Aaa
:
2014 National registered Construction Engineer examination construction project cost management construction project valuation construction project cost Case Analysis Construction Engineering Technology and Measurement
Hostname aaa
VI/etc/hosts
Set in
Aaa
VI/etc/sysconfig/Network
Set in
Aaa
Restart)
3.
Set password-free login:
[[Email protected] ~] # Ssh-keygen
[[Email protected] ~] # Cat ~ /. Ssh/id_rsa.pub> ~ /. Ssh/authorized_keys
[[Email protected] ~] # SCP ~ /. Ssh/authorized_keys master:/root/. Ssh/
[[Email protected] ~] # SCP ~ /. Ssh/authorized_keys slave1:/root/. Ssh/
[[Email protected] ~] # SCP ~ /. Ssh/authorized_keys slave2:/root/. Ssh/
4.
Close
SELinux
:
Temporarily close the command:
Setenforce 0
Permanently close the command:
VI/etc/SELinux/config
Replace
SELinux
Set
SELinux = disabled
5.
Disable Firewall:
Permanently close:
Chkconfig iptables off
Close:
/Etc/init. d/iptables stop
(You can also
Setup
(Do not enable firewall)
6.
Disable settings
Packagekit
VI/etc/Yum/pluginconf. d/refresh-packagekit.conf
Set
Enabled
Set
0
7. Optional: configure the local repositorie
(No network connection, or a large cluster configured and want to maintain bandwidth)
The preparations obtained by Baidu are shown in the preceding figure. You can select the 7-step plan as needed.
Wget http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.6.1/ambari.repo
Yum install ambari-Server
Ambari-Server start
OK
Reference: https://cwiki.apache.org/confluence/display/AMBARI/Install+Ambari+1.6.1+from+Public+Repositories
Deploy ambari in centos 6