刪除網卡配置文件
rm -rf /etc/udev/rules.d/70-persistent-net.rules
重啟服務器
3) 配置ssh免密碼登錄
ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
scp /root/.ssh/id_dsa.pub [email protected]:/root/.ssh/
scp /root/.ssh/id_dsa.pub [email protected]:/root/.ssh/
scp /root/.ssh/id_dsa.pub [email protected]:/root/.ssh/
三臺機器分別
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
測試
4) 在hadoop001上安裝mysql,並啟動,配置開機自啟,配置用戶名密碼。
設置root用戶的密碼為chenjian
必須在mysql數據庫下
use mysql;
update user set password=passworD("chenjian") where user='root';
讓所有hadoop001能訪問mysql使用密碼chenjian
grant all privileges on *.* to 'root'@'hadoop001' identified by 'chenjian' with grant option;
讓所有的機器能訪問mysql使用密碼chenjian
grant all privileges on *.* to 'root'@'%' identified by 'chenjian' with grant option;
flush privileges;
5) 下載安裝依賴包(hadoop001)
yum -y install chkconfig python bind-utils psmisc libxslt zlib sqlite cyrus-sasl-plain cyrus-sasl-gssapi fuse portmap fuse-libs redhat-lsb
至此,我們的CDH安裝的第一步,安裝環境算是配置成功了,下一步就是開始安裝,敬請期待!
閱讀更多 HelloTeacher陳 的文章