400 Error code when creating new file in Hadoop

Sep 9, 2013 at 10:55 PM
Hi,

I'm trying to use the Hadoop SDK to create a new file in a Hadoop cluster, however, I'm getting a 400 code - bad request response when using the CreateFile method of a WebHdfsClient object.

The error is related to the use of a specific Content-Type header in the request (Content-Type:application/octet-stream). How do I achieve that?

Thanks.
Sep 11, 2013 at 1:10 AM
Hey, can you share code snippet? Also have you looked at the sample here: https://hadoopsdk.codeplex.com/wikipage?title=WebHDFS%20Client&referringTitle=Home ?