ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Eisenhauer <feisenhau...@gmail.com>
Subject Re: No Heartbeat after upgrade to Ambari 2.0
Date Fri, 17 Apr 2015 16:37:20 GMT
Sure. Please find the output attached.

The configuration worked without any problems in Ambari 1.7

[root@***** ~]# curl -u admin:***** -H "X-Requested-By: ambari" -X GET 
http://localhost:8080/api/v1/hosts
{
   "href" : "http://localhost:8080/api/v1/hosts",
   "items" : [
     {
       "href" : "http://localhost:8080/api/v1/hosts/HADOOP03.BIGDATA.LOCAL",
       "Hosts" : {
         "host_name" : "HADOOP03.BIGDATA.LOCAL"
       }
     },
     {
       "href" : "http://localhost:8080/api/v1/hosts/hadoop02.bigdata.local",
       "Hosts" : {
         "host_name" : "hadoop02.bigdata.local"
       }
     },
     {
       "href" : "http://localhost:8080/api/v1/hosts/hadoop01.bigdata.local",
       "Hosts" : {
         "host_name" : "hadoop01.bigdata.local"
       }
     },
     {
       "href" : "http://localhost:8080/api/v1/hosts/HADOOP01.BIGDATA.LOCAL",
       "Hosts" : {
         "cluster_name" : "BIGDATA_LAB",
         "host_name" : "HADOOP01.BIGDATA.LOCAL"
       }
     },
     {
       "href" : "http://localhost:8080/api/v1/hosts/HADOOP02.BIGDATA.LOCAL",
       "Hosts" : {
         "cluster_name" : "BIGDATA_LAB",
         "host_name" : "HADOOP02.BIGDATA.LOCAL"
       }
     },
     {
       "href" : "http://localhost:8080/api/v1/hosts/hadoop03.bigdata.local",
       "Hosts" : {
         "cluster_name" : "BIGDATA_LAB",
         "host_name" : "hadoop03.bigdata.local"
       }
     }
   ]
}

[root@********* ~]# curl -u admin:***** -H "X-Requested-By: ambari" -X 
GET http://localhost:8080/api/v1/clusters/BIGDATA_LAB/hosts
{
   "href" : "http://localhost:8080/api/v1/clusters/BIGDATA_LAB/hosts",
   "items" : [
     {
       "href" : 
"http://localhost:8080/api/v1/clusters/BIGDATA_LAB/hosts/HADOOP01.BIGDATA.LOCAL",
       "Hosts" : {
         "cluster_name" : "BIGDATA_LAB",
         "host_name" : "HADOOP01.BIGDATA.LOCAL"
       }
     },
     {
       "href" : 
"http://localhost:8080/api/v1/clusters/BIGDATA_LAB/hosts/HADOOP02.BIGDATA.LOCAL",
       "Hosts" : {
         "cluster_name" : "BIGDATA_LAB",
         "host_name" : "HADOOP02.BIGDATA.LOCAL"
       }
     },
     {
       "href" : 
"http://localhost:8080/api/v1/clusters/BIGDATA_LAB/hosts/hadoop03.bigdata.local",
       "Hosts" : {
         "cluster_name" : "BIGDATA_LAB",
         "host_name" : "hadoop03.bigdata.local"
       }
     }
   ]



Am 17.04.2015 um 17:50 schrieb Sumit Mohanty:
> curl -u admin:admin -H "X-Requested-By: ambari" -X GEThttp://localhost:8080/api/v1/hosts


Mime
View raw message