Hadoop Install (1) ——Hadoop 伪分布式安装

参考: https://hadoop.apache.org/docs/r2.9.2/hadoop-project-dist/hadoop-common/SingleCluster.html

需要修改/etc/hostname、/etc/hosts、安装JDK、下载Hadoop tar包

  1. 配置hadoop-env.sh
export JAVA_HOME=/opt/soft/jdk1.8.0_191
  1. 配置core-site.xml
    编辑etc/hadoop/core-site.xml


    
        fs.defaultFS
        hdfs://localhost:9000
    

    
        hadoop.tmp.dir
        /opt/soft/hadoop-2.9.1/hadoop-tmp
    


  1. 配置hdfs-site.xml
    编辑etc/hadoop/hdfs-site.xml

    
    
        dfs.replication
        1
    

4.配置免密登陆本机
5.格式化namenode

hadoop namenode -format

你可能感兴趣的:(Hadoop Install (1) ——Hadoop 伪分布式安装)