Terraform Version
Terraform v1.3.7
TERRAFORM_PROVIDER_VERSION = 1.36.0
Affected Resource(s)
- flexibleengine_mrs_job_v2
Terraform Configuration Files
"resource": {
"flexibleengine_mrs_job_v2": {
"example-mrs-job": {
"cluster_id": "xxxxxxxxxxx",
"lifecycle": {
"prevent_destroy": true
},
"name": "example-mrs-job",
"parameters": "admin xxxxxxxx 1 s3a://obs-demo-analysis/input s3a://obs-demo-analysis/output",
"program_parameters": {
"--class": "com.orange.bigdata.spark.examples.DriverBehavior"
},
"program_path": "s3a://obs-demo-analysis/program/driver_behavior.jar",
"type": "SparkSubmit"
}
}
}
Panic Output
terraform apply
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# flexibleengine_mrs_job_v2.example-mrs-job will be created
+ resource "flexibleengine_mrs_job_v2" "example-mrs-job" {
+ cluster_id = "xxxxxxxxxxxx"
+ finish_time = (known after apply)
+ id = (known after apply)
+ name = "example-mrs-job"
+ parameters = "admin xxxxxxxxx 1 s3a://obs-demo-analysis/input s3a://obs-demo-analysis/output"
+ program_parameters = {
+ "--class" = "com.orange.bigdata.spark.examples.DriverBehavior"
}
+ program_path = "s3a://obs-demo-analysis/program/driver_behavior.jar"
+ region = (known after apply)
+ start_time = (known after apply)
+ status = (known after apply)
+ submit_time = (known after apply)
+ type = "SparkSubmit"
}
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
flexibleengine_mrs_job_v2.example-mrs-job: Creating...
╷
│ Error: Error execution MapReduce job: Bad request with: [POST https://mrs.eu-west-0.prod-cloud-ocb.orange-business.com/v2/bb4a068de4b24eea97b11d43e9b5910d/clusters/30b44829-2aa6-4f31-95cb-0895737de1e7/job-executions], error message: {"error_code":"0167","error_msg":"The v2 job API cannot be accessed."}
│
│ with flexibleengine_mrs_job_v2.example-mrs-job,
│ on mr-job.tf.json line 16, in resource.flexibleengine_mrs_job_v2.example-mrs-job:
│ 16: }
│
Expected Behavior
Create job resource for MRS cluster with Spark
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
- Create a MRS cluster 1.8.9 or 2.0.1 Analysis
- Create a job
terraform apply
Terraform Version
Terraform v1.3.7
TERRAFORM_PROVIDER_VERSION = 1.36.0
Affected Resource(s)
Terraform Configuration Files
Panic Output
terraform apply
Expected Behavior
Create job resource for MRS cluster with Spark
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply