I am using the Go implementation of WebHDFS interface: https://github.com/vladimirvivien/gowfs. In order to test it, I need to set up an HDFS on my development computer (Mac OS X 10.8, Hadoop-2.2.0). The author Vladimir Vivien reminded two properties to enable WebHDFS:
hadoop.http.staticuser.userproperty is set in your
However, those are not enough. If you see error messages like the following reported by the
Failed to replace a bad datanode on the existing pipeline due to no more good datanodes being available to try.
You need to add the following properties in
<property> <name>dfs.replication</name> <value>1</value> </property> <property> <name>dfs.client.block.write.replace-datanode-on-failure.enable</name> <value>false</value> </property>