当前位置: 代码迷 >> 综合 >> hadoop2.6安装
  详细解决方案

hadoop2.6安装

热度:22   发布时间:2023-11-21 13:57:46.0
# 解压
[root@mihaoyu151 install]# tar -zxvf hadoop-2.6.0-cdh5.14.2.tar.gz -C ../soft# 重命名
[root@mihaoyu151 soft]# mv hadoop-2.6.0-cdh5.14.2/ hadoop260# 追加
[root@mihaoyu151 hadoop260]# vi /etc/profile
#hadoop
export HADOOP_HOME=/opt/soft/hadoop260
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export YARN_HOME=$HADOOP_HOME
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"
export PATH=$PATH:$HADOOP_HOME/sbin:$HADOOP_HOME/bin# 编译环境
[root@mihaoyu151 hadoop260]# source /etc/profile# 测试安装是否成功
[root@mihaoyu151 hadoop]# hadoop
Usage: hadoop [--config confdir] COMMANDwhere COMMAND is one of:fs                   run a generic filesystem user clientversion              print the versionjar <jar>            run a jar filechecknative [-a|-h]  check native hadoop and compression libraries availabilitydistcp <srcurl> <desturl> copy file or directories recursivelyarchive -archiveName NAME -p <parent path> <src>* <dest> create a hadoop archiveclasspath            prints the class path needed to get thecredential           interact with credential providersHadoop jar and the required librariesdaemonlog            get/set the log level for each daemons3guard              manage data on S3trace                view and modify Hadoop tracing settingsorCLASSNAME            run the class named CLASSNAMEMost commands print help when invoked w/o parameters.

安装成功