Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 19 lines (14 sloc) 291 Bytes
#!/bin/bash
while [ -z "$(netstat -tulpn | grep 8080)" ]; do
ambari-server start
ambari-agent start
sleep 5
done
sleep 5
java -jar /tmp/ambari-shell.jar --ambari.host=n1.hdp << EOF
services start
EOF
while true; do
sleep 3
tail -f /var/log/ambari-server/ambari-server.log
done