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

III. Hadoop user authentication-- kerberos

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

Share

Shulou(Shulou.com)06/03 Report--

1. The question of HDFS permissions:

By default, HDFS's permission authentication is on and off by setting dfs.permissions to true or false in hdfs-site.xml. Therefore, when the client user who enters the hdfs does not have permission, it is impossible to operate on the hdfs. At this time, you can bypass authentication in the following ways.

1. Set the hadoop user to root in the java code

System.setProperty ("HADOOP_USER_NAME", "root")

2. Pass parameters through the command line java-D

Java-DHADOOP_USER_NAME=root

3. Use third-party authentication to realize hdfs authentication.

Kerberos is generally used for authentication services.

For more information on the principle of kerberos, please see https://www.cnblogs.com/wukenaihe/p/3732141.html.

The writing is gray and detailed, clear, awesome!

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

Internet Technology

Wechat

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

12
Report