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.