Member since
01-06-2016
131
Posts
99
Kudos Received
3
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1853 | 03-08-2016 08:34 PM | |
4188 | 03-02-2016 07:04 PM | |
2266 | 01-29-2016 05:47 PM |
03-09-2016
02:11 PM
@Artem Ervits I am still wondering, whatever we will do through ambari, we can do them through REST api right? Why REST api is having limitiation for RECOMMISSION? Is there any theoretical reason?
... View more
03-08-2016
08:34 PM
curl -u admin:password -i -H 'X-Requested-By: ambari' -X PUT -d ' {"RequestInfo":{"context":"Stop NODEMANAGER"}, "Body": {"HostRoles": {"state": "INSTALLED"}}}' http://viceroy10:8080/api/v1/clusters/et_cluster/hosts/$hostname/host_components/NODEMANAGER
... View more
03-08-2016
06:12 PM
It got worked for me with the following command :. curl -u admin:password -i -H 'X-Requested-By: ambari' -X
PUT -d ' {"RequestInfo":{"context":"Stop
NODEMANAGER"}, "Body": {"HostRoles":
{"state": "INSTALLED"}}}' http://viceroy10:8080/api/v1/clusters/et_cluster/hosts/$hostname/host_components/NODEMANAGER I dont know what is the difference between both commands?
... View more
03-08-2016
03:29 PM
Here my command : curl -u admin:Password -H "X-Requested-By:ambari" -i -X PUT -d '{"RequestInfo":{"context":"Stop NODEMANAGER"}, "Body":{"HostRoles":{"state":"INSTALLED"}}}' http://viceroy10:8080/api/v1/clusters/et_cluster/hosts/serf120int.etops.tllsc.net/host_components/NODEMANAGER Thank you in advance.
... View more
Labels:
- Labels:
-
Apache Ambari
03-08-2016
03:11 PM
1 Kudo
@Ali Bajwa I tried same for NODEMANAGER, i am getting http 200 code. Its not getting excuted. Here is my command. Can you please tell me is there anything wrong? curl -u admin:OpsAm-iAp1Pass -H "X-Requested-By:ambari" -i -X PUT -d '{"RequestInfo":{"context":"Stop NODEMANAGER"}, "Body":{"HostRoles":{"state":"INSTALLED"}}}' http://viceroy10:8080/api/v1/clusters/et_cluster/hosts/serf120int.etops.tllsc.net/host_components/NODEMANAGER Thank you in advance.
... View more
03-07-2016
09:44 PM
2 Kudos
I tried this one.. curl -u admin:OpsAm-iAp1Pass -H "X-Requested-By:ambari" -i -X PUT -d '{"RequestInfo":{"context":"Turn on Maintenance mode"}, "Body":{"ServiceInfo":{"maintenance state":"ON"}}}' http://viceroy10:8080/api/v1/clusters/et_cluster/hosts/serf120int.etops.tllsc.net/host_components/DATANODE Result : HTTP/1.1 200 OK
User: admin
Set-Cookie: AMBARISESSIONID=1acil15v0h4ve2hk9a1ac5gux;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 0
Server: Jetty(8.1.17.v20150415) I checked in ambari dashboard, nothing happend..
... View more
Labels:
- Labels:
-
Apache Ambari
03-07-2016
06:29 PM
1 Kudo
curl -u admin:password -i -H 'X-Requested-By:ambari' -X PUT –d'{"RequestInfo":{"context":"Stop DATANODE"},"Body":"HostRoles":{"state":"INSTALLED"}}' http://viceroy10:8080/api/v1/clusters/et_cluster/serf120int.etops.tllsc.net /host_components/DATANODE Error : curl: (3) [globbing] nested braces not supported at pos 18 HTTP/1.1 404 Not Found User: admin et-Cookie: AMBARISESSIONID=1mc7f72vpbasxqwkzdiyphjv2;Path=/;HttpOnly Expires: Thu, 01 Jan 1970 00:00:00 GMT Content-Length: 0 Server: Jetty(8.1.17.v20150415) curl: (3) <url> malformed If i use the curl command without using request info, it is working fine. curl -u admin:password -i -H 'X-Requested-By: ambari' -X PUT -d '{"HostRoles": {"state": "INSTALLED"}}' http://viceroy10:8080/api/v1/clusters/et_cluster/hosts/serf120int.etops.tllsc.net/host_components/DATANODE What is the reason for failing above curl command?
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Hadoop
03-04-2016
02:29 PM
2 Kudos
@Artem Ervits I tried to recommission by using above curl command. I got the following error.. "status" : 500,
"message" : "An internal system exception occurred: Unsupported action RECOMMISSION for Service: YARN and Component: RESOURCEMANAGER"
... View more
03-03-2016
08:04 PM
1 Kudo
@Artem Ervits Mostly, it wouldn't work because i didn't see any dfs.include and yarn.include parameters in configurations. 🙂
... View more
03-03-2016
07:33 PM
1 Kudo
Thank you @Artem Ervits I would like to give a try with the above curl commands, will post the result.
... View more