This topic describes how to grant permissions to a Resource Access Management (RAM) user. After the permissions are granted, the RAM user can submit jobs to the serverless Spark engine of Data Lake Analytics (DLA).
Prerequisites
- A RAM user is created. For more information, see Create a RAM user.
- A DLA sub-account is created.
- The RAM user is bound with the DLA child account. For more information, see Bind a RAM user with a DLA sub-account.
Procedure
Verify the permissions of the RAM user
When you submit a job as the RAM user, you must add
spark.dla.roleArn
to conf
. The value of spark.dla.roleArn is the ARN of the role created in Substep d of Step 2. Configuration example:{
"name": "SparkPi",
"file": "oss://sparkRoleTest/original-spark-examples_2.11-2.4.5.jar",
"className": "org.apache.spark.examples.SparkPi",
"args": [
"10"
],
"conf": {
"spark.dla.roleArn": "acs:ram::xxxxxx:role/dla-sub-user-role"
"spark.driver.resourceSpec": "small",
"spark.executor.instances": 2,
"spark.executor.resourceSpec": "small"
}
}
When the job is running, the RAM user is authorized to use the permission of the role queried in Substep d of Step 2.