This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
showopts () { | |
while getopts ":pq:" optname | |
do | |
case "$optname" in | |
"p") | |
echo "Option $optname is specified" | |
;; | |
"q") |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /d "C:\Program Files (x86)\PuTTY" | |
plink root@toredge -m listjobs.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# airflow needs a home, ~/airflow is the default, | |
# but you can lay foundation somewhere else if you prefer | |
# (optional) | |
export AIRFLOW_HOME=~/airflow | |
# install from pypi using pip | |
pip install airflow | |
# initialize the database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -u admin:admin -i -H X-Requested-By: ambari http://localhost:8080/api/v1/alert_targets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/sbin/ambari-metrics-collector --config /etc/ambari-metrics-collector/conf/ start | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"RequestSchedule":{ | |
"batch":[ | |
{ | |
"requests":[ | |
{ | |
"order_id":1, | |
"type":"POST", | |
"uri":"/api/v1/clusters/hdp/requests", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/lib/ambari-server/resources/scripts/configs.sh get localhost hdp mapred-site | |
/var/lib/ambari-server/resources/scripts/configs.sh get localhost hdp hive-site | |
/var/lib/ambari-server/resources/scripts/configs.sh get localhost hdp hbase-site | |
/var/lib/ambari-server/resources/scripts/configs.sh get localhost hdp kafka-site | |
/var/lib/ambari-server/resources/scripts/configs.sh get localhost hdp webhcat-env | |
/var/lib/ambari-server/resources/scripts/configs.sh get localhost hdp capacity-scheduler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!/bin/bash | |
yum -y update | |
yum -y upgrade centos | |
mkdir -p /opt/ansible | |
cd /opt/ansible/ | |
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
yum -y install epel-release-6-8.noarch.rpm | |
yum repolist | |
yum -y update && yum -y install ansible |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#setup kerberos for ambari server | |
kadmin.local | |
addprinc -randkey ambari-server@HWX.COM | |
xst -k ambari.server.keytab ambari-server@HWX.COM | |
cp *.keytab /etc/security/keytabs/ambari.server.keytab | |
chown deployuser:hadoop ambari.server.keytab | |
ambari-server stop | |
ambari-server setup-security | |
3 |
OlderNewer