Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

CM Json deployment Import Error

Solved Go to solution

CM Json deployment Import Error

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

Accepted Solutions

Re: CM Json deployment Import Error

Champion
Try

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

Re: CM Json deployment Import Error

Explorer

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

3 REPLIES 3

Re: CM Json deployment Import Error

Champion
Try

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

Re: CM Json deployment Import Error

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"
}

Highlighted

Re: CM Json deployment Import Error

Explorer

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

Don't have an account?
Coming from Hortonworks? Activate your account here