Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DLI Flink job creation with Terraform blocks terraform resource creation, update or deletion #4533

Open
mvhuawei opened this issue Mar 29, 2024 · 2 comments

Comments

@mvhuawei
Copy link

Terraform Version

v1.7.1

Terraform Configuration Files

provider "huaweicloud" {
   region = "eu-west-101"  
   access_key = ""
   secret_key = ""  
   auth_url = "https://iam.eu-west-101.myhuaweicloud.eu/v3"    
   cloud = "myhuaweicloud.eu"     
   endpoints = {
      bssv2 = "https://bss.myhuaweicloud.eu"
   }
}

resource "huaweicloud_dli_queue" "dli-queue-bigdata" {
  name     = "queue_bigdata"

  cu_count = 16 
  queue_type = "general" 

  resource_mode = 1
  vpc_cidr = "172.16.0.0/12"
}

resource "huaweicloud_dli_flinksql_job" "dli-flinksql-job" {
  name = "real_time_analytics_flink_sql"
  type = "flink_opensource_sql_job"
  sql  = "${file("flink_job.txt")}"

  cu_number = 4
  manager_cu_number = 1
  parallel_number = 4
  queue_name = huaweicloud_dli_queue.dli-queue-bigdata.name
  run_mode = "exclusive_cluster"
}

Debug Output

huaweicloud_dli_flinksql_job.dli-flinksql-job: Still creating... [20s elapsed]
╷
│ Error: error waiting for DLI flink job (23845) to be created: json: cannot unmarshal number 1711647009620 into Go struct field Job.job_detail.update_time of type int
│
│ with huaweicloud_dli_flinksql_job.dli-flinksql-job,
│ on main.tf line 606, in resource "huaweicloud_dli_flinksql_job" "dli-flinksql-job":
│ 606: resource "huaweicloud_dli_flinksql_job" "dli-flinksql-job" {
│
╵

Crash Output

Expected Behavior

Terraform resources creation completes without errors

Actual Behavior

Unknown errors blocks the resources creation, update or deletion

Steps to Reproduce

1.  Replace in main.tf access key and secret key with your credentials
2.  Add this file 'flink_job.txt' to main folder
3.  terraform init 
4.  terraform apply

flink_job.txt

Additional Context

References

@Lance52259
Copy link
Collaborator

pls confirm whether the machine is a 64-bit OS

@mvhuawei
Copy link
Author

mvhuawei commented Apr 2, 2024

pls confirm whether the machine is a 64-bit OS

Windows 64-bit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants