software_jy]$ cd hadoop/confР[hadoop@master hadoop]$ ls -alhРР[hadoop@master conf]$ vi hadoop-env.sh???#配置环境变量Рexport JAVA_HOME=/usr/java/jdkРexport HADOOP_HEAPSIZE=256Рexport HADOOP_PID_DIR=/home/$USER/pidsРРРР[hadoop@master conf]$ vi core-site.xmlР<?xml version="1.0"?>Р<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>Р<!-- Put site-specific property overrides in this file. -->Р<configuration>Р <property>Р <name>fs.default.name</name>Р <value>hdfs://master:9000</value>Р </property>Р <property>Р <name>hadoop.tmp.dir</name>Р <value>/home/${user.name}/tmp</value>Р </property>Р</configuration>РРР[hadoop@master conf]$ vi hdfs-site.xml??#配置hdfsР需要配置namenode的数据目录、datanode的数据目录、集群个数(dfs.replication)