III. Hadoop user authentication-- kerberos
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!