hadoop安装笔记
环境是ubuntu
java啥的有yum
apt-get install default-jdk
update-alternatives --display Java
hadoop解压缩就行
tar -zxvf xxxx.tar.gz
hadoop需要ssh密钥
ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
java环境变量可以省下了,但是hadoop用到的地方还是要自己设置
sudo nano ~/.bashrc
需要设置的是JAVA_HOME,HADOOP_HOME,PATH,HADOOP_MAPRED_HOME,HADOOP_COMMON_HOME,HADOOP_HDFS_HOME,YARN_HOME,
HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native,
HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib",
JAVA_LIBRARY_PATH=$HADOOP_COMMON_LIB_NATIVE_DIR:$JAVA_LIBRARY_PATH 引入hadoop的包。
source ~/.bashrc
安装完成