I have a hadoop server which namenode, datanode , YARN component etc are spnego kerberized and when we hit their url's on web we get as below -
url - http://host:50070/jmx?qry=Hadoop:*
here 50070 is namenode port output :
HTTP ERROR 403
Problem accessing /index.html. Reason:
GSSException: Defective token detected (Mechanism level: GSSHeader did not
above response on web indicates that url is kerberized.
I tried to enable spnego kerberos for ambari with using command "ambari-server setup-security" and completed kerberos configuration.
but when hit the url of ambari services rest api then getting proper output -
url - http://host:8080/api/v1/clusters/cluster_name/services/HDFS
I could see the proper output for above url on web . why both url's output is not same , it should be same if enabled kerberos .
please help and thanks in advance!!!