ProjectMeniscus/pywebhdfs — pull request #9 by tmwong2003 (2013-10-31 23:54:45+00:00)
Title: Changed append_file() to use content type application/octet-stream

I was getting the following 400 error when sending append requests to my Cloudera Hadoop HDFS installation.

HTTP Status 400 - Data upload requests must have content-type set to 'application/octet-stream'

I saw that create_file() specifies a content type of 'application/octet-stream', but not append_file(). append_file() worked once I started specifying 'application/octet-stream'.

System stats:

Cloudera Hadoop version 2.0.0-cdh4.4.0, installed on CentOS 6.4 using the Cloudera YUM repos.