Member since
02-16-2016
19
Posts
56
Kudos Received
5
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
3348 | 01-03-2018 09:52 PM | |
1158 | 11-07-2017 12:45 AM | |
1856 | 11-07-2017 12:43 AM | |
1284 | 09-22-2017 12:16 AM | |
1646 | 03-24-2017 10:59 PM |
01-03-2018
09:55 PM
2 Kudos
@Michael Bronson curl -u {ambari_username}:{ambari_password} -H "X-Requested-By:ambari" -i GET http://localhost:8080/api/v1/clusters/cl1/components?fields=ServiceComponentInfo/state
... View more
01-03-2018
09:52 PM
4 Kudos
@Michael Bronson This API will get you status of all components on all hosts in your cluster curl -u {ambari_username}:{ambari_password} -H "X-Requested-By:ambari" -i GET http://localhost:8080/api/v1/clusters/cl1/components?fields=host_components/HostRoles/state And if you need to find the status of individual component e.g for datanode; curl -u {ambari_username}:{ambari_password} -H "X-Requested-By:ambari" -i GET http://localhost:8080/api/v1/clusters/cl1/components/DATANODE?fields=host_components/HostRoles/state Hope this helps!
... View more
01-02-2018
09:48 PM
2 Kudos
@Michael Bronson You can get the service components status from the "ServiceComponentInfo/state" parameter. 1. To get all components state in single API: API : <AMBARI_HOST>/api/v1/clusters/cl1/components?fields=ServiceComponentInfo/state E.g In the response you can find something like this when MR History server is stopped: "ServiceComponentInfo": {"cluster_name": "cl1","component_name": "HISTORYSERVER","service_name": "MAPREDUCE2","state": "INSTALLED"} 2. To get more info for individual component, You can use this API resource <AMBARI_HOST>/api/v1/clusters/cl1/services/MAPREDUCE2/components/HISTORYSERVER Hopefully this helps!
... View more
11-07-2017
12:45 AM
1 Kudo
@vrathod, if you are looking for all supported OS for a stack for a given ambari release, you can try the getVersionDefinitions API with filters. E.g http://<AMBARI_HOST>:8080/api/v1/version_definitions?fields=VersionDefinition/stack_default,operating_systems/OperatingSystems/os_type,VersionDefinition/repository_version&VersionDefinition/show_available=true&VersionDefinition/stack_name=HDP Hope this helps!
... View more
11-07-2017
12:43 AM
6 Kudos
@vrathod, if you are looking for all supported stacks for a given ambari release, you can try the getVersionDefinitions API with filters. E.g http://<AMBARI_HOST>:8080/api/v1/version_definitions?fields=VersionDefinition/stack_default,operating_systems/OperatingSystems/os_type,VersionDefinition/repository_version&VersionDefinition/show_available=true&VersionDefinition/stack_name=HDP
... View more
09-22-2017
12:16 AM
5 Kudos
@dbalasundaran You can try this APIs and programmatically find the diff between the configuration lists <AMBARI_HOST>/api/v1/clusters/cl1/configurations/service_config_versions?service_name=HDFS&group_name=<GROUP_NAME>&service_config_version.in(<VERSION_NUMBER>) E.g <AMBARI_HOST>/api/v1/clusters/cl1/configurations/service_config_versions?service_name=HDFS&group_name=mycg1&service_config_version.in(6)
<AMBARI_HOST>/api/v1/clusters/cl1/configurations/service_config_versions?service_name=HDFS&group_name=mycg1&service_config_version.in(7)
... View more
04-02-2017
06:18 AM
4 Kudos
@nyadav To add to @krajguru's answer: You can use query parameter is_current=true to retrieve the latest configuration version in case you have multiple versions of configurations. E.g http://<Ambari-hostname>:8080/api/v1/clusters/<cluster-name>/configurations/service_config_versions?service_name=HDFS&is_current=true
... View more
03-30-2017
09:07 PM
1 Kudo
Looks like we did some mistake while doing rpm cleanup. Copied oozie client jar to /usr/hdp/<version>/oozie/lib/ and it worked fine. Thanks!
... View more
03-30-2017
07:51 PM
4 Kudos
Hi Team, I am facing this issue while adding Oozie to an existing cluster, Oozie server start is failing with NoClassDefFoundError: org/apache/oozie/cli/CLIParser. Posting the stacktrace below. Kindly let me know how can I resolve this.
setting OOZIE_CONFIG=${OOZIE_CONFIG:-/usr/hdp/current/oozie-server/conf}
setting CATALINA_BASE=${CATALINA_BASE:-/usr/hdp/current/oozie-server/oozie-server}
setting CATALINA_TMPDIR=${CATALINA_TMPDIR:-/var/tmp/oozie}
setting OOZIE_CATALINA_HOME=/usr/lib/bigtop-tomcat
setting JAVA_HOME=/usr/jdk64/jdk1.8.0_60
setting JRE_HOME=${JAVA_HOME}
setting CATALINA_OPTS="$CATALINA_OPTS -Xmx2048m"
setting OOZIE_LOG=/grid/0/log/oozie
setting CATALINA_PID=/var/run/oozie/oozie.pid
setting OOZIE_DATA=/grid/0/hadoop/oozie/data
setting OOZIE_HTTP_PORT=11000
setting OOZIE_ADMIN_PORT=11001
setting JAVA_LIBRARY_PATH=/usr/hdp/current/hadoop-client/lib/native/Linux-amd64-64
setting OOZIE_CLIENT_OPTS="${OOZIE_CLIENT_OPTS} -Doozie.connection.retry.count=5 "
setting OOZIE_CONFIG=${OOZIE_CONFIG:-/usr/hdp/current/oozie-server/conf}
setting CATALINA_BASE=${CATALINA_BASE:-/usr/hdp/current/oozie-server/oozie-server}
setting CATALINA_TMPDIR=${CATALINA_TMPDIR:-/var/tmp/oozie}
setting OOZIE_CATALINA_HOME=/usr/lib/bigtop-tomcat
setting JAVA_HOME=/usr/jdk64/jdk1.8.0_60
setting JRE_HOME=${JAVA_HOME}
setting CATALINA_OPTS="$CATALINA_OPTS -Xmx2048m"
setting OOZIE_LOG=/grid/0/log/oozie
setting CATALINA_PID=/var/run/oozie/oozie.pid
setting OOZIE_DATA=/grid/0/hadoop/oozie/data
setting OOZIE_HTTP_PORT=11000
setting OOZIE_ADMIN_PORT=11001
setting JAVA_LIBRARY_PATH=/usr/hdp/current/hadoop-client/lib/native/Linux-amd64-64
setting OOZIE_CLIENT_OPTS="${OOZIE_CLIENT_OPTS} -Doozie.connection.retry.count=5 "
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/oozie/cli/CLIParser
at org.apache.oozie.tools.OozieSharelibCLI.run(OozieSharelibCLI.java:92)
at org.apache.oozie.tools.OozieSharelibCLI.main(OozieSharelibCLI.java:67)
Caused by: java.lang.ClassNotFoundException: org.apache.oozie.cli.CLIParser
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 2 more Thanks, Kishor
... View more
Labels:
- Labels:
-
Apache Ambari
03-24-2017
11:09 PM
4 Kudos
@Romil Choksi You can prepare similar queries by identifying the fields defined using query parameter ?fields=* with most of the ambari APIs e.g <AMBARI_HOST>/api/v1/clusters/cl1/host_components?fields=*
... View more