Support Questions
Find answers, ask questions, and share your expertise

NullPointerException when trying to access a directory using HttpFS

NullPointerException when trying to access a directory using HttpFS

New Contributor

Hello,

 

I have a cluster running Hadoop 2.6.0-cdh5.4.1. I want to create a file inside a directory using webhdfs. I have 2 directories called directory1 and directory2, both in /.

They both have the same permissions(711), owner and group.

 

The following command succeeds:

   curl --negotiate -u : https://Datanode:Port/webhdfs/v1/directory1?op=LISTSTATUS

 

while the following

   curl --negotiate -u : https://Datanode:Port/webhdfs/v1/directory2?op=LISTSTATUS 

 

throws the error: {"message":null,"exception":"NullPointerException","javaClassName":"java.lang.NullPointerException"}.

 

Datanode and Port are the same for both commands. All webhdfs requests on directory2 fail with the same error(NullPointerException), while all webhdfs requests work on directory1.

 

Do you have any ideas what can cause this error?

 

Thank you.