单机版hadoop
作者:互联网
1、建立用户
useradd -u 1000 hadoop
passwd hadoop ##密码设置为hadoop
2、安装配置
1)切换到hadoop用户
2)准备jdk包和hadoop包,如图
3)解压安装,并分别为java和hadoop做软连接
tar -zxvf jdk-8u181-linux-x64.tar.gz
ln -s jdk1.8.0_181/ java
tar -zxvf hadoop-3.0.3-src.tar.gz
ln -s hadoop-3.0.3 hadoop
4)java配置环境变量
[hadoop@hadoop hadoop]$ pwd
/home/hadoop/hadoop/etc/hadoop
[hadoop@hadoop hadoop]$ vim hadoop-env.sh
export JAVA_HOME=/home/hadoop/java
[hadoop@hadoop hadoop]$ cd
[hadoop@hadoop ~]$ vim .bash_profile
PATH=$PATH:$HOME/.local/bin:$HOME/bin:$HOME/java/bin
[hadoop@hadoop ~]$ source .bash_profile ##生效
标签:bin,java,tar,##,hadoop,HOME,单机版 来源: https://blog.csdn.net/weixin_43697701/article/details/103133259