Member since
08-08-2017
1652
Posts
30
Kudos Received
11
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 1964 | 06-15-2020 05:23 AM | |
| 16017 | 01-30-2020 08:04 PM | |
| 2108 | 07-07-2019 09:06 PM | |
| 8244 | 01-27-2018 10:17 PM | |
| 4664 | 12-31-2017 10:12 PM |
01-04-2018
05:04 PM
see the follwing example - https://github.com/HariSekhon/pytools/blob/master/ambari_trigger_service_checks.py https://community.hortonworks.com/questions/11111/is-there-a-way-to-execute-ambari-service-checks-in.html
... View more
01-04-2018
04:54 PM
@Aditya , yes I already see that , but we want a tool that will do it more simple , because in the article need to make some configuration for each service , and maybe there is some ready tool that do the job without any addtional work
... View more
01-04-2018
04:36 PM
need advice about the following: as all know we can do service check on each of the services in ambari cluster what we need is a tool or script or API that will perform service check on all ambari services and will print the resulsts as ok or fail
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Hadoop
01-03-2018
08:26 PM
how to verify if name node is in safe mode ? goal - in case of name node in safe mode , then bash script will perform the following steps on one of the masters machines # su - hdfs
$ hdfs dfsadmin -safemode get
$ hdfs dfsadmin -safemode leave second how to perform the steps as described in the bash script is it ok to do the following : su - hdfs -c "hdfs dfsadmin -safemode get"
su - hdfs -c "hdfs dfsadmin -safemode leave"
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Hadoop
01-03-2018
01:55 PM
dear @Jay , yes we see the machine that is active or stand by but the problem is that we not get the status as fail or OK
... View more
01-03-2018
01:07 PM
ok , in that case what are the other alternative to check ( active/stand name node or App Timeline Server ) etc , because they not appears from the API , not logical to check them only from the Ambari GUI must be some way for that
... View more
01-03-2018
12:42 PM
example curl -u admin:admin -H "X-Requested-By: ambari" -X GET "http://localhost:8080/api/v1/clusters/hdp/host_components?HostRoles/component_name=NAMENODE&metrics/dfs/FSNamesystem/HAState=standby"
{
"href" : "http://localhost:8080/api/v1/clusters/hdp/host_components?HostRoles/component_name=NAMENODE&metrics/dfs/FSNamesystem/HAState=standby",
"items" : [
{
"href" : "http://localhost:8080/api/v1/clusters/hdp/hosts/master01.uridns.com/host_components/NAMENODE",
"HostRoles" : {
"cluster_name" : "hdp",
"component_name" : "NAMENODE",
"host_name" : "master01.uhg.com"
},
"host" : {
"href" : "http://localhost:8080/api/v1/clusters/hdp/hosts/master01.uhg.com"
},
"metrics" : {
"dfs" : {
"FSNamesystem" : {
"HAState" : "standby"
}
}
}
}
]
... View more
01-03-2018
12:32 PM
@Aditya first thank you so much for the example , the API are works and indicate the machine name but not indicate the status stop/start from output
... View more
01-03-2018
09:02 AM
@Aditya thank you , but this output not include the status of for example- Standby NameNode or ZKFailoverController etc .... , also kramakrishnan wrote some syntax that can give the results but I will happy to get the full syntax with curl ...
... View more
01-03-2018
05:13 AM
thank you kramakrishnan , regarding step1 can you please show me the full command API syntax
... View more