Hadoop Web Authentication using Kerberos

后端 未结 1 1390
抹茶落季
抹茶落季 2021-01-03 07:00

I configured hadoop using kerberos, everything works fine, I can browse hdfs, submit jobs, etc. But failed http web authentication.

I use hadoop-0.20.2 in cdh3u2, wh

相关标签:
1条回答
  • 2021-01-03 07:12

    First: Thankyou for posting a complete and working example on how to configure Hadoop web consoles for SPNNEGO - I had trouble finding a good example.

    Your example works for me after modifying paths to config files (I created hadoop.http.authentication.signature.secret.file by getting some random bytes from /dev/random, which I'm assuming is the right thing to do, although I can't find any documentation supporting that theory).

    Google Chrome does support SPNNEGO from version 6.0.472 and forward. However, it seems that on Linux and OSX you have to pass it a list of servers for which it's OK to enable it as documented here. So, try adding *--auth-server-whitelist="*example.com,*foobar.com,baz" to the cmdline when starting Chrome.

    Another way of debugging this would be to use a simpler browser. I would recommend curl, if your curl has GSS-Negotiate support. Check by running curl --version

    $ curl --version
    curl 7.19.7 (i486-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15
    Protocols: tftp ftp telnet dict ldap ldaps http file https ftps 
    Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz 
    

    If GSS-Negotiate is in the Features list, you can use curl to try to access for example the namenode Web Console:

    $ curl -v -u foo --negotiate http://your.namenode.tld:50070
    

    Just press enter when asked for host password.

    This should give you a better idea on what's going on between the client and the server.

    0 讨论(0)
提交回复
热议问题