Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 03-01-2016 03:46 PM
I am looking to decommission the node through REST API.
Created 03-01-2016 03:52 PM
Created 03-01-2016 03:52 PM
Created 03-01-2016 03:58 PM
Thank you @Artem Ervits.
Created 03-01-2016 04:10 PM
curl -u admin:$PASSWORD -i -H 'X-Requested-By: ambari'-X PUT -d
'{"RequestInfo": {"context" :"Start HDFS via REST"}, "Body": {"ServiceInfo": {"state": "STARTED"}}}'
http://`hostname -f`:8080/api/v1/clusters/$CLUSTER_NAME/services/HDFS
In the above curl command, what is the meaning for "hostname -f". I am new to usage of REST APIs, it may be a stupid question. I would like to get clear idea for the above command.
Created 03-01-2016 04:47 PM
@Ram D ah ok, yes in this example you will get FQDN of the server name for URL. I didn't know you can do that in curl command but basically if you run hostname -f as Linux command, you will get FQDN of your host. In context of the curl command, it will populate the URL programmatically with FQDN instead of using the node name explicitly.