Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Permission denied when trying to open /webhdfs/v1/?op=LISTSTATUS: GSSException: Defective token dete

Highlighted

Permission denied when trying to open /webhdfs/v1/?op=LISTSTATUS: GSSException: Defective token dete

Explorer

Hi,

i have implemented kerberos in cloudera CDH-5.3 successfully and now able to restart the cluster and all services successfully. But when i open hdfs service in the remote machine's web browser and

 goto -  NameNode Web UI (Active)-> and click  ->Utilities- Browse the file System, i get this error -

 

"Permission denied when trying to open /webhdfs/v1/?op=LISTSTATUS: GSSException: Defective token detected (Mechanism level: GSSHeader did not find the right tag)"

 

Why am i getting this error and not able to browse the files in my hdfs?? Is it due to any files permission that need to be changed??

I googled the above error but all that i get is  they are pointing towards kerberos implementation on webserver, but i have not implemented any kerberos on webserver so i think i don't need to do any changes in web browser's settings.

 

1 REPLY 1

Re: Permission denied when trying to open /webhdfs/v1/?op=LISTSTATUS: GSSException: Defective token

Master Guru
You are unfortunately impacted by a limitation described at: https://issues.apache.org/jira/browse/HDFS-5796

You will need to use a custom filter class to avoid this (i.e. to auth browsers separately from regular WebHDFS auth access, probably by checking UserAgent strings/etc.), by implementing a sub-class of https://github.com/cloudera/hadoop-common/blob/cdh5.4.4-release/hadoop-common-project/hadoop-auth/sr...

Note that you can instead also opt to use the Hue File Browser, which is also more feature-rich in comparison.