Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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