Skip to content

Commit

Permalink
restart Zeppelin after creating interpreters too
Browse files Browse the repository at this point in the history
  • Loading branch information
abajwa-hw authored Aug 19, 2021
1 parent cf139d2 commit 5da3df4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ranger-atlas/setup-dc-703.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,12 @@ if [ "${import_zeppelin_queries}" = true ]; then
echo "listing all interpreters settings - jdbc and sh should now be included..."
#echo "curl -v --cookie $id http://$(hostname -f):8885/api/interpreter/setting | python -m json.tool | grep id"
curl --cookie $id http://$(hostname -f):8885/api/interpreter/setting | python -m json.tool | grep id


echo "restarting Zeppelin..."
curl -X POST -u admin:${cm_password} http://localhost:7180/api/${cm_api_ver}/clusters/${cluster_name}/services/zeppelin/commands/restart
sleep 60
while ! echo exit | nc localhost 8885; do echo "waiting for Zeppelin to come up..."; sleep 10; done

setfacl -m user:zeppelin:r /etc/shadow ## enable PAM auth for zeppelin

fi
Expand Down

0 comments on commit 5da3df4

Please sign in to comment.