- 1.先将原有的安装包文件移走
- mv /var/www/html/* /mnt/sdb/html/*
- 2.给移走的软件包文件夹 www 创建软连接 (ln -s 源文件 软连接文件)
- ln -s /mnt/sdb/html /var/www/html
- 3.启动ambari的元数据库mysql 数据库
- systemctl enable mysqld systemctl start mysqld systemctl status mysqld
- systemctl enable mysqld systemctl start mysqld systemctl status mysqld
- 4.重启ambari-server服务 ambari-server restart
- 5.修改 hadoop的日志存储位置 mv /var/log/hadoop /mnt/sdb/log/hadoop
- 修改hadoop日志文件目录为 /var/log/hadoop -》 /mnt/sdb/log/hadoop