windows7 eclipse 链接 virtualbox (ubuntus14.04lts)

http://february30thcf.iteye.com/blog/1768795

虚拟机的ip地址为192.168.56.101

修改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://192.168.56.101:9000</value>   localhost改为ip地址
    </property>
    <property>
        <name>hadoop.tmp.dir</name>
        <value>/home/hadoop/data/tmp</value>
    </property>
</configuration>

hdfs-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>dfs.data.dir</name> 
        <value>/home/hadoop/data/appdata/hadoopdata</value>
    </property>
    <property>
        <name>dfs.name.dir</name>
        <value>/home/hadoop/data/appdata/hadoopname</value>
    </property>
    <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"?>

<!-- Put site-specific property overrides in this file. -->

<configuration>
    <property>
        <name>mapred.job.tracker</name>
        <value>192.168.56.101:9001</value>     
    </property>
</configuration>
<property>
    <name>dfs.permissions</name>
    <value>false</value>   //取消hdfs的权限检查
</property>

masters

192.168.56.101      localhost改为ip地址

slaves

192.168.56.101       localhost改为ip地址

 

 

配置结果截图

 

posted @ 2015-11-24 15:58  剑风云  阅读(181)  评论(0编辑  收藏  举报