Skip to content

Instantly share code, notes, and snippets.

@mr-jstraub
mr-jstraub / zeppelin-setup-hdp-2.3.4.sh
Last active March 19, 2016 13:41
zeppelin setup HDP 2.3
#!/bin/sh
# Pre-Reqs.: Make sure git and mvn are installed
SPARK_VER=1.5.2
HADOOP_VER=2.7.1
JAVA_HOME=/usr/java/jdk1.8.0_71
HDP_VER=`hdp-select status hadoop-client | sed 's/hadoop-client - \(.*\)/\1/'`
# Get Zeppelin from Git
git clone https://github.com/apache/incubator-zeppelin
@mr-jstraub
mr-jstraub / ambari_api_bulk_service_checks.md
Last active April 26, 2022 10:59
Ambari API - Run all Service Checks

#Ambari API - Run all Service Checks In order to check the status and stability of your cluster it makes sense to run the service checks that are included in Ambari. Usually each Ambari Service provides its own service check, but their might be services that wont include any service check at all. To run a service check you have to select the service (e.g. HDFS) in Ambari and click "Run Service Check" in the "Actions" dropdown menu.

Service Checks can be started via the Ambari API and it is also possible to start all available service checks with a single API command. To bulk run these checks it is necessary to use the same API/method that is used to trigger a rolling restart of Datanodes (request_schedules). The "request_schedules" API starts all defined commands in the specified order, its even possible to specify a pause between the commands.

Available Service Checks:

Service Name service_name Command
HDFS HDFS HDFS_SERVICE_CHECK