HDFS Lab (2) hadoop Environment configuration
Jdk of sun is required, so uninstall openjdk first
[root@hadoop-1 ~] # rpm-qa | grep openjdk | xargs rpm-e-- nodeps
Okay
Release notes
Http://hadoop.apache.org/releases.html
There is a new version 3.1 on April 8th.
Wget http://mirrors.hust.edu.cn/apache/hadoop/common/hadoop-3.1.0/hadoop-3.1.0.tar.gz
Useradd hadoop
Cd / home/hadoop
Su-hadoop
Tar-zxvf hadoop-3.1.0.tar.gz
Generate key
Ssh-keygen-t rsa
Try to log in to this computer, pemission denied.
Let me fix a mistake.
Vi / etc/ssh/sshd_config
Open rsa and pubkey.
Vi / etc/selinux/config
SELINUX=disabled
And then restart.
Modify directory permissions
Chmod 700 / home/hadoop/.ssh
Chmod 644 / home/hadoop/.ssh/authorized_keys
Restart the ssh service
Systemctl restart sshd
Then ssh Native
Ssh localhost
You can log in without a password