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