Member since
11-07-2016
637
Posts
253
Kudos Received
144
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2720 | 12-06-2018 12:25 PM | |
| 2862 | 11-27-2018 06:00 PM | |
| 2194 | 11-22-2018 03:42 PM | |
| 3567 | 11-20-2018 02:00 PM | |
| 6273 | 11-19-2018 03:24 PM |
01-31-2018
10:37 AM
@Michael Bronson, You can use the below curl call to get the info curl -u {ambari-username}:{ambari-password} -H "X-Requested-By: ambari" -X GET http://{ambari-host}:{ambari-port}/api/v1/clusters/{clustername}/hosts/{host-name}/host_components?fields=HostRoles/state
Sample response:
{
"href": "http://10.10.1.1:8080/api/v1/clusters/cl1/hosts/master03/host_components?fields=HostRoles/state",
"items": [
{
"href": "http://10.10.1.1:8080/api/v1/clusters/cl1/hosts/master03/host_components/ACCUMULO_CLIENT",
"HostRoles": {
"cluster_name": "cl1",
"component_name": "ACCUMULO_CLIENT",
"host_name": "master03",
"state": "INSTALLED"
},
"host": {
"href": "http://10.10.1.1:8080/api/v1/clusters/cl1/hosts/master03"
}
},
{
"href": "http://10.10.1.1:8080/api/v1/clusters/cl1/hosts/master03/host_components/APP_TIMELINE_SERVER",
"HostRoles": {
"cluster_name": "cl1",
"component_name": "APP_TIMELINE_SERVER",
"host_name": "master03",
"state": "STARTED"
},
"host": {
"href": "http://10.10.1.1:8080/api/v1/clusters/cl1/hosts/master03"
}
}
]
}
Thanks, Aditya
... View more
01-29-2018
11:16 AM
@Carlton Patterson, Can you try setting it to ROW FORMAT DELIMITED instead of COLUMN FORMAT DELIMITED and try running the query. Thanks, Aditya
... View more
01-29-2018
09:33 AM
@Michael Bronson, Replace {host-name} with the host name where App timeline server is installed. From your output in the question looks like App time line server is installed on "master01.sys67.com". So you can try this url curl -u $USER:$PASSWORD -X GET -H "X-Requested-By: ambari" http://localhost:8080/api/v1/clusters/HDP/hosts/master01.sys67.com/host_components/APP_TIMELINE_SERVER?fields=HostRoles/state Thanks, Aditya
... View more
01-29-2018
08:42 AM
1 Kudo
@Michael Bronson, I'm not sure why the above API is returning different status. It may be a bug. You can use this API to get the correct status curl -u {ambari-username}:{ambari-password} -H "X-Requested-By: ambari" -X GET http://{ambari-host}:{ambari-port}/api/v1/clusters/{clustername}/hosts/{host-name}/host_components/APP_TIMELINE_SERVER?fields=HostRoles/state Replace the place holders. {host-name} should be replaced with the hostname of the APP TIMELINE SERVER. Thanks, Aditya
... View more
01-23-2018
04:03 AM
@Dinesh Das, To get the Older versions, Click on Hortonworks Sandbox Archive and download the older version which you want to download Thanks, Aditya
... View more
01-22-2018
03:00 PM
1 Kudo
@yassine sihi, There is a json file (role_command_order.json) which specifies the dependencies of starting/stopping the services. If there is no dependency then the start/stop of services between hosts will run in parallel. You can find the files by running the command in ambari server node find /var/lib/ambari-server/resources -iname role_command_order.json Files inside common-services(/var/lib/ambari-server/resources/common-services) specify the dependency at a service level whereas files inside (/var/lib/ambari-server/resources/stacks) specify overall dependencies at stack level. Consider this sample line in one of the file "LIVY_SERVER-START" : ["NAMENODE-START", "DATANODE-START", "APP_TIMELINE_SERVER-START"] This specifies that livy server start is dependent on namenode, datanode and app timeline server start. Hope this helps 🙂 Thanks, Aditya
... View more
01-20-2018
05:19 AM
1 Kudo
@Keith Swanson, You should pass your inputs inside parameters curl -u <username>:<password> -X POST -H 'X-Requested-By:ambari' -d'{"RequestInfo":{"context":"Execute my action", "action":"my_action", "parameters" : {"my_input" : "value"}}, "Requests/resource_filters":[{"service_name":"", "component_name":"", "hosts":"<comma_separated_host_names>"}]' http://<ambari_host>:<port>/api/v1/clusters/<cluster_name>/requests
... View more
01-17-2018
02:33 PM
1 Kudo
@tomoya yoshida, Can you try connecting to mysql as below mysql -uhive -p{password} password is the password which you hive in ambari GUI while adding hive service. Thanks, Aditya
... View more
01-17-2018
12:35 PM
2 Kudos
@Sonia Garudi, From HDP 2.6.4, due to licensing issues mysql was removed. All the GPL licensed components will be removed from now. If you are using mysql for hive then you should install it by yourself. Thanks, Aditya
... View more
01-17-2018
05:07 AM
@Anshuman Mehta, I guess you need not change it for all the components. Changing lzo would be fine. Change it in all the nodes in the above mentioned folder
... View more