hadoop2.6伪分布式安装

1.安装JDK配置JDK环境变量

2.在环境变量中配置hadoop bin和sbin目录,同JDK

3.配置文件 core-site.xml

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<configuration>
     <property>
    <name>fs.defaultFS</name>
    <value>hdfs://localhost/
     </property>
</configuration>

hdfs-site.xml

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

  <configuration>
    <property>
      <name>dfs.replication</name>
      <value>1</value>
    </property>

  </configuration>

mapred-site.xml

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<configuration>
  <property>
    <name>mapreduce.framework.name</name>
    <value>yarn</value>
  </property>
</configuration>

 

yarn-site.xml

<?xml version="1.0"?>

<configuration>
  <property>
    <name>yarn.resourcemanager.hostname</name>
    <value>localhost</value>
  </property>
  <property>
    <name>yarn.nodemanager.aux-services</name>
    <value>mapreduce_shuffle</value>
  </property>
</configuration>

posted @ 2016-03-06 14:46  码农当自强  阅读(156)  评论(0编辑  收藏  举报