hadoop-3.0.0-alpha4安裝部署過程
關閉防火墻
#systemctl stop firewalld.service #停止firewall
#systemctl disable firewalld.service #禁止firewall開機啟動
關閉selinux
#vi /etc/selinux/config
SELINUX=disabled
SELINUXTYPE=targeted
安裝jdk1.8:
#cd /usr
#tar zxvf jdk-8u131-linux-x64.tar.gz
解壓出來的目錄改名為java
vi /etc/profile
export JAVA_HOME=/usr/java
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/dt.jar:$HIVE_HOME/lib:$JAVA_HOME/lib/tools.jar
export PATH=${JAVA_HOME}/bin:$PATH
設置服務器主從無密碼登錄:
[[email protected] ~]$ ssh-keygen -t rsa #產生公鑰私鑰
Generating public/private rsa key pair.
Enter file in which to save the key (/home/study/.ssh/id_rsa):
Created directory ‘/home/study/.ssh‘.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/study/.ssh/id_rsa.
Your public key has been saved in /home/study/.ssh/id_rsa.pub.
The key fingerprint is:
0e:66:68:14:31:d3:3b:92:d0:ce:c3:40:03:15:b7:87 [email protected]
The key‘s randomart image is:
+--[ RSA 2048]----+
|.+=o*o |
| oo.*. |
| *E... |
| .Boo |
| oo+.S |
| . o o |
| . |
| |
| |
+-----------------+
[[email protected] ~]$ cd .ssh
[[email protected]