1.conf/core-site.xml:2.conf/hadoop-env.sh:export JAVA_HOME=/home/hadoop/jdk1.x.x_xx3. conf/hdfs-site.xml:4.conf/mapred-site.xml:5. conf/masters:master6.conf/secondarynamenode(此為新建的檔案)node17. conf/slaves:node2node3node48.bin/start-dfs.sh:"$bin"/hadoop-daemon.sh --config $HADOOP_CONF_DIR start namenode $nameStartOpt"$bin"/hadoop-daemons.sh --config $HADOOP_CONF_DIR start datanode $dataStartOpt"$bin"/hadoop-daemons.sh --config $HADOOP_CONF_DIR --hosts secondarynamenode start secondarynamenode9.bin/stop-dfs.sh:"$bin"/hadoop-daemon.sh --config $HADOOP_CONF_DIR stop namenode $nameStartOpt"$bin"/hadoop-daemons.sh --config $HADOOP_CONF_DIR stop datanode $dataStartOpt"$bin"/hadoop-daemons.sh --config $HADOOP_CONF_DIR --hosts secondarynamenode stop secondarynamenode
1.conf/core-site.xml:2.conf/hadoop-env.sh:export JAVA_HOME=/home/hadoop/jdk1.x.x_xx3. conf/hdfs-site.xml:4.conf/mapred-site.xml:5. conf/masters:master6.conf/secondarynamenode(此為新建的檔案)node17. conf/slaves:node2node3node48.bin/start-dfs.sh:"$bin"/hadoop-daemon.sh --config $HADOOP_CONF_DIR start namenode $nameStartOpt"$bin"/hadoop-daemons.sh --config $HADOOP_CONF_DIR start datanode $dataStartOpt"$bin"/hadoop-daemons.sh --config $HADOOP_CONF_DIR --hosts secondarynamenode start secondarynamenode9.bin/stop-dfs.sh:"$bin"/hadoop-daemon.sh --config $HADOOP_CONF_DIR stop namenode $nameStartOpt"$bin"/hadoop-daemons.sh --config $HADOOP_CONF_DIR stop datanode $dataStartOpt"$bin"/hadoop-daemons.sh --config $HADOOP_CONF_DIR --hosts secondarynamenode stop secondarynamenode