Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

HDFS Lab (2) hadoop Environment configuration

Shulou Source: shulou.com Published: 2022-06-03 05:05:17 11月25日 Update

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

Tags: Native login password permissions directory error attempt service build environment lab configuration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Huawei vpn Shulou Technology Shulou Information