kubeflow / spark-operator

Kubernetes operator for managing the lifecycle of Apache Spark applications on Kubernetes.
Apache License 2.0
2.8k stars 1.38k forks source link

Execute Spark writing to HDFS reports no permission #2325

Open wangchao732 opened 1 week ago

wangchao732 commented 1 week ago

What happened?

When building the container, use ARG spark_uid=0 (root) and set the directory permissions to 777 Caused by: org.apache.hadoop.security.AccessControlException: Permission denied: user=spark, access=WRITE, inode="/spark/farm_history/_temporary/0":root:supergroup:drwxr-xr-x , 1731581493503

当我修改hdfs目录权限,它又报错 image

Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.AccessControlException): Permission denied: user=root, access=WRITE, inode="/spark/farm_history/_SUCCESS":spark:spark:-rw-r--r--

Reproduction Code

/

Expected behavior

No response

Actual behavior

No response

Environment & Versions

Additional context

No response

Impacted by this bug?

Give it a 👍 We prioritize the issues with most 👍