Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of simple Type of user Authentication configured by Hadoop1.2.1

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces the example analysis of the simple type of Hadoop1.2.1 configuration user authentication, the article is very detailed, has a certain reference value, interested friends must read it!

1. Configure the core-site.xml file, which needs to be configured as follows

Hadoop.http.filter.initializers org.apache.hadoop.security.AuthenticationFilterInitializer hadoop.http.authentication.type simple hadoop.http.authentication.token.validity 36000 hadoop.http.authentication.signature.secret.file / home/wukong/hadoop-http-auth-signature-secret hadoop.http.authentication.cookie.domain hadoop.http.authentication.simple.anonymous.allowed false

2. Add the file / home/wukong/hadoop-http-auth-signature-secret and edit the content. Write the English user name you want in it, such as: admin in the file.

3. Copy core-site.xml and hadoop-http-auth-signature-secret files to all nodes

4. Just start hadoop.

Access to http://192.168.1.11:50070/dfshealth.jsp, because there is no authentication information, so will report a 401 error.

When you access http://192.168.1.11:50070/dfshealth.jsp?user.name=admin, you can open it normally.

The above is all the contents of the article "sample Analysis of simple types of Hadoop1.2.1 configuration user Authentication". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report