Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config file for ambari url properties #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions scripts/ambari-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@
# License: see accompanying LICENSE file
#

SERVER=ambari.planetexpress.net
PORT=8080
USERNAME=admin
PASSWORD=robot1729
CLUSTERNAME=bender
###############LOAD PROPERTIES#######################
PROPERTIESPATH=`pwd`
PROPERTIESFILE=ambari.props
source $PROPERTIESPATH/$PROPERTIESFILE
#####################################################
SERVER=$AMBARIHOST
PORT=$AMBARIPORT
USERNAME=$AMBARIADMINUSER
PASSWORD=$AMBARIADMINPASS
CLUSTERNAME=$CLUSTERNAME
####################################################

ALL1="ZOOKEEPER HDFS YARN MAPREDUCE2 HBASE HIVE SPARK KAFKA FLINK ZK-NIFI ZEPPELIN"
ALL2="ZEPPELIN ZK-NIFI FLINK KAFKA SPARK HIVE HBASE MAPREDUCE2 YARN HDFS ZOOKEEPER"

ENDPOINT="http://${SERVER}:${PORT}/api/v1/clusters/${CLUSTERNAME}/services/${SERVICE}"

Expand Down
16 changes: 11 additions & 5 deletions scripts/ambari-service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@
# License: see accompanying LICENSE file
#

SERVER=ambari.planetexpress.net
PORT=8080
USERNAME=admin
PASSWORD=robot1729
CLUSTERNAME=bender
###############LOAD PROPERTIES#######################
PROPERTIESPATH=`pwd`
PROPERTIESFILE=ambari.props
source $PROPERTIESPATH/$PROPERTIESFILE
#####################################################
SERVER=$AMBARIHOST
PORT=$AMBARIPORT
USERNAME=$AMBARIADMINUSER
PASSWORD=$AMBARIADMINPASS
CLUSTERNAME=$CLUSTERNAME
SERVICE=$1
####################################################

ENDPOINT="http://${SERVER}:${PORT}/api/v1/clusters/${CLUSTERNAME}/services/${SERVICE}"

Expand Down
7 changes: 7 additions & 0 deletions scripts/ambari.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CLUSTERNAME=gtsnonroot
AMBARIADMINUSER=admin
AMBARIADMINPASS=admin
AMBARIHOST=127.0.0.1
AMBARIPORT=8080
STARTORDEREDSERVICES="RANGER KNOX OOZIE SPARK HIVE YARN HDFS ZOOKEEPER"
STOPORDEREDSERVICES="RANGER KNOX ZOOKEEPER HDFS YARN HIVE OOZIE SPARK"