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.

WebHDFS Error

WebHDFS Error

Contributor

Hi,

I'm using HDP 2.4. After enabling kerberos via ambari->admin->kerberos, All ambari services successfully started. But when i reach to FileView Tab, It shows "500 SIMPLE authentication is not enabled. Available:[TOKEN, KERBEROS]". I have attached webhdfs log webhdfs-logs.txt. Please tell me how to resolve this issue.

10997-webhdfs-error.png

4 REPLIES 4

Re: WebHDFS Error

Super Collaborator
@Varun R

Error shows that files view is not set to authenticate with kerberos.

You must set "WebHDFS Authorization" in files view to "auth=KERBEROS;proxyuser=<proxyUser>"

have you followed below doc to modify files view?

https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.0.1/bk_ambari-views/content/Kerberos_Settings.h...

Re: WebHDFS Error

Contributor

Thanks for the response. I can able to find in FileView config settings.

Re: WebHDFS Error

Super Collaborator

Login as admin user in Ambari. Go to Admin view from <admiUser>Manage Ambari > views>Files View

10998-screen-shot-2017-01-03-at-100432-am.png

Here in files view setting you should see the "WebHDFS Authorization" settings set it to "auth=KERBEROS;proxyuser=<proxyUser>"

Make sure that you have correct proxyuser set in Ambari jaas config. You can verify this at command line:

-->Login to ambari server via ssh

#egrep "principal|keyTab" /etc/ambari-server/conf/krb5JAASLogin.conf

#kinit -kt <keyTabFromAbove output> <principal>

If this is successful then your proxyuser in Files view must be set as that of principal(excluding REALM name)

eg: you have principal as "ambari-server-hdp25@RAGHAV.COM" then your proxy user is "ambari-server-hdp25"

Highlighted

Re: WebHDFS Error

Contributor

@rguruvannagari

Thanks!!!. I have configured above you mentioned with proxyuser and auth values on HDFS File View. But still this issue not resolved. it doesn't any impact on HDFS File View. While i'm restarting HDFS, it shows "Error 401 Authentication required;Problem accessing /webhdfs/v1/tmp". At this same time I can able to view files from commandline using hdfs dfs -ls /

Don't have an account?
Coming from Hortonworks? Activate your account here