Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

III. Hadoop user authentication-- kerberos

Shulou Source: shulou.com Published: 2022-06-03 04:24:00 11月25日 Update

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!

Tags: Authentication permissions users settings codes principles parameters commands customers clients situations methods third parties authentication services problems accessibility services Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Redmi Microsoft Shulou Tech Info Shulou Information