eclipse教程 eclipse里无法上传文件到hadoop解决方法

时间:2015-05-06867举报小编:admin

    eclipse在hadoop中的开发环境,在ide环境下可以浏览到hadoop上的目录和文件,但是无法创建目录和上传文件,下面未来小编带来解决办法。就是是在hdfs-site.xml中添加红色部分的参数.

    [hadoop1@node1 conf]$ more 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.replication</name>
           <value>1</value>
       </property>
       <property>
           <name>dfs.permissions</name>
           <value>false</value>
       </property>
    </configuration>
    [hadoop1@node1 conf]$

    注意先执行stop-all.sh停止hadoop,然后再在每个节点上添加该参数,最后执行start-all.sh启动hadoop.