提示往HDFS写文件是不容许的。 在conf/hdfs-site.xml中加入: <property> <name>dfs.permissions</name> <value>false</value> </property>