eclipse在hadoop中的開發(fā)環(huán)境,在ide環(huán)境下可以瀏覽到hadoop上的目錄和文件,但是無法創(chuàng)建目錄和上傳文件,解決辦法是在hdfs-site.xml中添加紅色部分的參數(shù).
[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]$
注意先執(zhí)行stop-all.sh停止hadoop,然后再在每個(gè)節(jié)點(diǎn)上添加該參數(shù),最后執(zhí)行start-all.sh啟動(dòng)hadoop.


下載 
下載
下載
下載
下載
下載 
下載 
下載
下載
下載
下載
下載 

下載
下載 
下載
下載
下載
下載 
下載
下載
下載
下載
下載 
下載
喜歡
頂
難過
囧
圍觀
無聊







王者榮耀賬號(hào)惡
MARVEL Strike
2017年10月手游
比官居一品好玩