Reply
Highlighted
Explorer
Posts: 7
Registered: ‎02-07-2017
Accepted Solution

CM Json deployment Import Error

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."
Posts: 642
Topics: 3
Kudos: 119
Solutions: 67
Registered: ‎08-16-2016

Re: CM Json deployment Import Error

Try

curl -H "Content-Type: application/json" --upload-file deploymnet.json -u admin:admin 'http://scmhost:7180/api/v17/cm/deployment?deleteCurrentDeployment=true'
Explorer
Posts: 7
Registered: ‎02-07-2017

Re: CM Json deployment Import Error

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

Explorer
Posts: 7
Registered: ‎02-07-2017

Re: CM Json deployment Import Error

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

Announcements