Hadoop web page authorization settings

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/mn_kw/article/details/90633540

In core-siet.xmladd the following three lines in the configuration file

<property>

                <name>hadoop.http.filter.initializers</name>

                <value>org.apache.hadoop.security.AuthenticationFilterInitializer</value>

</property>

<property>

                <name>hadoop.http.authentication.type</name>

                <value>simple</value>

</property>

<property>

               <name>hadoop.http.authentication.signature.secret.file</name>

               <value>/hadoop/hdfs/hadoop-http-auth-signature-secret</value>

</property>

hadoop.http.authentication.simple.anonymous.allowed: In simple licensing model, whether to allow anonymous user request. The default value is ture, which is allowed. This parameter to flase;

Create a /hadoop/hdfs/hadoop-http-auth-signature-secretfile, which you want to enter a password

Restart hadopp cluster

Page views

http: // localhost:? 50070 user.nam = your password

Guess you like

Origin blog.csdn.net/mn_kw/article/details/90633540