ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pratik Gadiya <pratik_gad...@persistent.com>
Subject FW: Adding Hosts to Existing Cluster | Ambari 1.7.0
Date Tue, 16 Jun 2015 19:01:47 GMT

Hello All,

I was able to add a host to the existing hortonworks cluster by following the steps mentioned
in the link https://cwiki.apache.org/confluence/display/AMBARI/Add+a+host+and+deploy+components+using+APIs
However, I need some pointers to resolve one of my problem which is mentioned as below,

When I try to execute following command on a already exisitin hadoop cluster

curl --user admin:admin -i -X PUT -d '{"HostRoles": {"state": "STARTED"}}' http://AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTER_NAME/hosts/NEW_HOST_ADDED/host_components/<SERVICE_NAME<http://AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTER_NAME/hosts/NEW_HOST_ADDED/host_components/%3cSERVICE_NAME>>

On the ambari UI at the top left corner there is a notification saying that 1 operation is
in progress and when I click on that it, it displays "Request name not specified" as the message
body however, the deployment progress bar is working.

Can we change this to something like a message body which we pass while executing the above
statement itself, so that we can get that message when we click on 1 ops in ambari UI (instead
of seeing Request name not specified )

Thanks,
Pratik
From: Jeff Sposetti [mailto:jeff@hortonworks.com]
Sent: Sunday, May 17, 2015 9:17 PM
To: user@ambari.apache.org
Subject: Re: Adding Hosts to Existing Cluster | Ambari 1.7.0

Hi,

Posted a comment to https://issues.apache.org/jira/browse/AMBARI-8458 that includes a brief
(simple) example.

Note: this is for Ambari 2.0.0. Apologies if I didn't highlight that earlier. If you sticking
with Ambari 1.7 and not upgrading to 2.0, then you will have to use the other API methods
described. But once you get to Ambari 2.0, this API becomes an option.

Hope this helps.

Jeff

From: Pratik Gadiya <pratik_gadiya@persistent.com<mailto:pratik_gadiya@persistent.com>>
Reply-To: "user@ambari.apache.org<mailto:user@ambari.apache.org>" <user@ambari.apache.org<mailto:user@ambari.apache.org>>
Date: Sunday, May 17, 2015 at 10:57 AM
To: "user@ambari.apache.org<mailto:user@ambari.apache.org>" <user@ambari.apache.org<mailto:user@ambari.apache.org>>
Subject: RE: Adding Hosts to Existing Cluster | Ambari 1.7.0


I think I will stick to the approach mentioned in https://issues.apache.org/jira/browse/AMBARI-8458
. This approach seems to be pretty easy to use.


Can someone help me out on the same ?

Please see the below mail conversions with Jeff for detail.

Help much appreciated !!

~Pratik


From: Yusaku Sako [mailto:yusaku@hortonworks.com]
Sent: Sunday, May 17, 2015 6:32 PM
To: user@ambari.apache.org<mailto:user@ambari.apache.org>
Subject: Re: Adding Hosts to Existing Cluster | Ambari 1.7.0

I think others can help you with the blueprint-style add host call.
In the meantime, you should also look at https://cwiki.apache.org/confluence/display/AMBARI/Bulk+install+components+on+selected+hosts

Thanks,
Yusaku

From: Pratik Gadiya <pratik_gadiya@persistent.com<mailto:pratik_gadiya@persistent.com>>
Reply-To: "user@ambari.apache.org<mailto:user@ambari.apache.org>" <user@ambari.apache.org<mailto:user@ambari.apache.org>>
Date: Sunday, May 17, 2015 4:22 AM
To: "user@ambari.apache.org<mailto:user@ambari.apache.org>" <user@ambari.apache.org<mailto:user@ambari.apache.org>>
Subject: RE: Adding Hosts to Existing Cluster | Ambari 1.7.0

Jeff,

I had a look on the link which you had provided, however I am not sure why it didn't worked
for me.

Below is the command which I tried,
Command:
curl --user admin:admin -H "X-Requested-By: ambari" -i -X POST -d '{"blueprint_name": "mymasterblueprint",
"host_group": "compute"}' https://XX.XX.XX.XX:8443/api/v1/clusters/CLUSTER/hosts/vmkdev0027.persistent.com

Response:
HTTP/1.1 400 Bad Request
Set-Cookie: AMBARISESSIONID=15w0nek4yww411pi8iqy70c8u5;Path=/
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 160
Server: Jetty(7.6.7.v20120910)

{
  "status" : 400,
  "message" : "The properties [blueprint, host_group] specified in the request or predicate
are not supported for the resource type Host."
}

Please let me know if I have missed something.

Note :
vmkdev0027.persistent.com -  Is the host which I need to add,
CLUSTER - Specified in the URL is my cluster name


Thanks & Regards,
Pratik

From: Jeff Sposetti [mailto:jeff@hortonworks.com]
Sent: Sunday, May 17, 2015 1:15 PM
To: user@ambari.apache.org<mailto:user@ambari.apache.org>
Subject: Re: Adding Hosts to Existing Cluster | Ambari 1.7.0


Have you looked at using Blueprints API for "add host"?



https://issues.apache.org/jira/browse/AMBARI-8458





________________________________
From: Pratik Gadiya <pratik_gadiya@persistent.com<mailto:pratik_gadiya@persistent.com>>
Sent: Sunday, May 17, 2015 1:57 AM
To: user@ambari.apache.org<mailto:user@ambari.apache.org>
Subject: Adding Hosts to Existing Cluster | Ambari 1.7.0

Hi All,

I want to add hosts to the existing hadoop cluster which is deployed via ambari rest api's.

For the same, I am referring to link https://cwiki.apache.org/confluence/display/AMBARI/Add+a+host+and+deploy+components+using+APIs

In the above link, we can observe that we have to make POST REST calls to install the services
on the newly added hosts.
Here the number of such REST calls would be equivalent to number of services which we want
to install (like shown as below )

[cid:image001.png@01D090DF.DAF8A760]

I am wondering, if there is any way by which I can install this many number of services such
as DATANODE, GANGLIA_MONITOR, NODEMANAGER etc.. in a single REST call to the newly added hosts.

Explaining with a small example of that REST call body is much appreciated.

Thanks,
Pratik


DISCLAIMER ========== This e-mail may contain privileged and confidential information which
is the property of Persistent Systems Ltd. It is intended only for the use of the individual
or entity to which it is addressed. If you are not the intended recipient, you are not authorized
to read, retain, copy, print, distribute or use this message. If you have received this communication
in error, please notify the sender and delete all copies of this message. Persistent Systems
Ltd. does not accept any liability for virus infected mails.

DISCLAIMER ========== This e-mail may contain privileged and confidential information which
is the property of Persistent Systems Ltd. It is intended only for the use of the individual
or entity to which it is addressed. If you are not the intended recipient, you are not authorized
to read, retain, copy, print, distribute or use this message. If you have received this communication
in error, please notify the sender and delete all copies of this message. Persistent Systems
Ltd. does not accept any liability for virus infected mails.

DISCLAIMER ========== This e-mail may contain privileged and confidential information which
is the property of Persistent Systems Ltd. It is intended only for the use of the individual
or entity to which it is addressed. If you are not the intended recipient, you are not authorized
to read, retain, copy, print, distribute or use this message. If you have received this communication
in error, please notify the sender and delete all copies of this message. Persistent Systems
Ltd. does not accept any liability for virus infected mails.

DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent
Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed.
If you are not the intended recipient, you are not authorized to read, retain, copy, print,
distribute or use this message. If you have received this communication in error, please notify
the sender and delete all copies of this message. Persistent Systems Ltd. does not accept
any liability for virus infected mails.


Mime
View raw message