FAQ
Hi

I tried using cm deployment api.
Though it is almost right, but it can't rarely get hosts.
Why do CM not response hosts ?

Right response

% curl -u admin:admin http://192.168.1.100:7180/api/v5/cm/deployment -v | jq
'.'

{

   "peers": [],

   "allHostsConfig": {

     "items": []

   },

   "managerSettings": {

     "items": [

       {

         "value": "10/25/2012 15:30",

         "name": "CLUSTER_STATS_START"

       },

       {

         "value": "NOT_ON_PUBLIC_CLOUD",

         "name": "PUBLIC_CLOUD_STATUS"

       }

     ]

   },

   "versionInfo": {

     "snapshot": false,

     "gitHash": "8609801079d228f2440a493a3880ab68cad0524b",

     "buildTimestamp": "20140226-1855",

     "buildUser": "jenkins",

     "version": "4.8.2"

   },

   "users": [

     {

       "pwLogin": true,

       "pwSalt": 7027399426500171000,

       "pwHash":
"0a1ef66875f7e7a90fd27b1aab3843785ecbdaed918dbc768a4d564cd502dc90",

       "roles": [

         "ROLE_ADMIN"

       ],

       "name": "admin"

     }

   ],

   "hosts": [

     {

       "config": {

         "items": []

       },

       "rackId": "/default",

       "hostname": "cdh1",

       "ipAddress": "192.168.1.101",

       "hostId": "cdh1"

     }

   ],

   "clusters": [],

   "timestamp": "2014-04-14T05:47:44.544Z"

}


Wrong respons

% curl -u admin:admin http://192.168.1.100:7180/api/v5/cm/deployment -v |
jq '.'



{
   "peers": [],
   "allHostsConfig": {
     "items": []
   },
   "managerSettings": {
     "items": [
       {
         "value": "10/25/2012 15:30",
         "name": "CLUSTER_STATS_START"
       },
       {
         "value": "NOT_ON_PUBLIC_CLOUD",
         "name": "PUBLIC_CLOUD_STATUS"
       }
     ]
   },
   "versionInfo": {
     "snapshot": false,
     "gitHash": "8609801079d228f2440a493a3880ab68cad0524b",
     "buildTimestamp": "20140226-1855",
     "buildUser": "jenkins",
     "version": "4.8.2"
   },
   "users": [
     {
       "pwLogin": true,
       "pwSalt": 7027399426500171000,
       "pwHash":
"0a1ef66875f7e7a90fd27b1aab3843785ecbdaed918dbc768a4d564cd502dc90",
       "roles": [
         "ROLE_ADMIN"
       ],
       "name": "admin"
     }
   ],
   "hosts": [],
   "clusters": [],
   "timestamp": "2014-04-14T05:49:33.913Z"
}


To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 3 | next ›
Discussion Overview
groupscm-users @
categorieshadoop
postedApr 14, '14 at 6:31a
activeApr 15, '14 at 2:22a
posts3
users2
websitecloudera.com
irc#hadoop

2 users in discussion

Mahito OGURA: 2 posts Darren Lo: 1 post

People

Translate

site design / logo © 2022 Grokbase