Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

CM Json deployment Import Error

avatar
Explorer

I am hitting below error when i try to import the deployment.json. Is anything i missed. And how to overcome?

 

CM Version : 5.12

 

#curl --upload-file deploymnet.json -u admin:admin 'http://scmhost:7180/api/v17/cm/deployment?deleteCurrentDeployment=true'

{

  "message" : "Double-check the URL. Consider adding '\"Content-Type: application/json\"' to your HTTP headers if the URL expects JSON input."
2 ACCEPTED SOLUTIONS

avatar
Champion
Try

curl -H "Content-Type: application/json" --upload-file deploymnet.json -u admin:admin 'http://scmhost:7180/api/v17/cm/deployment?deleteCurrentDeployment=true'

View solution in original post

avatar
Explorer

There is some issues with deployment.json file. I removed the replication content from .jso file and then import suceed

View solution in original post

3 REPLIES 3

avatar
Champion
Try

curl -H "Content-Type: application/json" --upload-file deploymnet.json -u admin:admin 'http://scmhost:7180/api/v17/cm/deployment?deleteCurrentDeployment=true'

avatar
Explorer

I added the -H in curl now it gving diferent error.

 

#curl -H "Content-Type: application/json" --upload-file deploymnet.json -u admin:admin 'http://scmhost:7180/api/v17/cm/deployment?deleteCurrentDeployment=true'

{
  "message" : "Impala metadata replication is supported from CDH versions 5.2.0 to (less than) version 5.12.0"
}

avatar
Explorer

There is some issues with deployment.json file. I removed the replication content from .jso file and then import suceed