Authentication for Hadoop HTTP web-consoles---hadoop 1.2.1__web

Source: Internet
Author: User
Tags anonymous http cookie
Configuration
The following properties should is in the core-site.xml of all the nodes in the cluster.


Hadoop.http.filter.initializers:add to the Org.apache.hadoop.security.AuthenticationFilterInitializer Initializer class.


Hadoop.http.authentication.type:Defines authentication used for the HTTP web-consoles. The Supported values Are:simple | Kerberos | #AUTHENTICATION_HANDLER_CLASSNAME #. The Dfeault value is simple.


Hadoop.http.authentication.token.validity:Indicates how long (in seconds) an authentication token was valid before it has To is renewed. The default value is 36000.


Hadoop.http.authentication.signature.secret.file:The signature secret file for signing the authentication tokens. If not set a random secret are generated at startup time. The same secret should is used for all nodes in the cluster, Jobtracker, NameNode, DataNode and Tasttracker. The default value is ${user.home}/hadoop-http-auth-signature-secret. Important:this file should is readable by the Unix user running the daemons.


Hadoop.http.authentication.cookie.domain:The domain to use for the HTTP cookie, that stores the authentication token. In order to authentiation to work correctly across all nodes in the cluster of the domain must be correctly set. There is no default value, the HTTP cookie would not be a domain working only with the hostname issuing the HTTP cookie.


Important:when using IP addresses, browsers ignore cookies with domain settings. For this setting to work properly all nodes in the cluster must is configured to generate URLs with hostname.domain names On it.


Hadoop.http.authentication.simple.anonymous.allowed:Indicates if anonymous requests is allowed when using ' simple ' Authentication. The default value is True


Hadoop.http.authentication.kerberos.principal:Indicates the Kerberos principal to is used for HTTP endpoint when using ' K Erberos ' authentication. The principal short name must is HTTP per Kerberos HTTP SPNEGO specification. The default value is http/localhost@ $LOCALHOST.


Hadoop.http.authentication.kerberos.keytab:Location of the keytab file with the credentials for the Kerberos principal US Ed for the HTTP endpoint. The default value is ${USER.HOME}/HADOOP.KEYTAB.I



Reprint: http://hadoop.apache.org/docs/stable1/HttpAuthentication.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.