默认用户获取:
1.system property:"user.name"
2.system env:"SPARK_USER"
3.UserGroupInformation.getCurrentUser().getShortUserName()
Spark security开关:
spark.authenticate:false
In YARN and local mode, generate a new secret and store it in the current user's credentials.UGI:“sparkCookie”
Others:Spark CONF >>>spark.authenticate.secret
网友评论