Indexing error in Druid

Hi,

Facing this error in Druid while Indexing. Can someone please let me know why is this happening.

2016-09-22T23:05:19,192 ERROR [demand-2016-09-22T18:00:00.000Z-persist-n-merge] io.druid.segment.realtime.plumber.RealtimePlumber - Failed to persist merged index[demand]: {class=io.druid.segment.realtime.plumber.RealtimePlumber, exceptionType=class java.io.IOException, exceptionMessage=Unexpected HTTP response: code=403 != 200, op=MKDIRS, message=Forbidden, interval=2016-09-22T18:00:00.000Z/2016-09-22T19:00:00.000Z}

java.io.IOException: Unexpected HTTP response: code=403 != 200, op=MKDIRS, message=Forbidden

Caused by: java.io.IOException: Content-Type “text/html” is incompatible with “application/json” (parsed=“text/html”)

at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.jsonParse(WebHdfsFileSystem.java:320) ~[hadoop-hdfs-2.6.0.2.2.4.2-2.jar:?]

Regards,

Rajitha

There was permission issue while writing to Hdfs path here. Pointing to the correct paths fixed this.