File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ stopServiceViaRest() {
120
120
fi
121
121
SERVICENAME=$1
122
122
echo " Stopping $SERVICENAME "
123
- curl -u $USERID :$PASSWD -i -H ' X-Requested-By: ambari' -X PUT -d ' {"RequestInfo": {"context" :"Stop Service for Hue installation"}, "Body": {"ServiceInfo": {"state": "INSTALLED"}}}' http://$ACTIVEAMBARIHOST :$PORT /api/v1/clusters/$CLUSTERNAME /services/$SERVICENAME
123
+ curl -u $USERID :$PASSWD -i -H ' X-Requested-By: ambari' -X PUT -d ' {"RequestInfo": {"context" :"Stop Service for Apache Ignite installation"}, "Body": {"ServiceInfo": {"state": "INSTALLED"}}}' http://$ACTIVEAMBARIHOST :$PORT /api/v1/clusters/$CLUSTERNAME /services/$SERVICENAME
124
124
sleep 2
125
125
}
126
126
@@ -132,11 +132,11 @@ startServiceViaRest() {
132
132
sleep 2
133
133
SERVICENAME=$1
134
134
echo " Starting $SERVICENAME "
135
- startResult=$( curl -u $USERID :$PASSWD -i -H ' X-Requested-By: ambari' -X PUT -d ' {"RequestInfo": {"context" :"Start Service for Hue installation"}, "Body": {"ServiceInfo": {"state": "STARTED"}}}' http://$ACTIVEAMBARIHOST :$PORT /api/v1/clusters/$CLUSTERNAME /services/$SERVICENAME )
135
+ startResult=$( curl -u $USERID :$PASSWD -i -H ' X-Requested-By: ambari' -X PUT -d ' {"RequestInfo": {"context" :"Start Service for Apache Ignite installation"}, "Body": {"ServiceInfo": {"state": "STARTED"}}}' http://$ACTIVEAMBARIHOST :$PORT /api/v1/clusters/$CLUSTERNAME /services/$SERVICENAME )
136
136
if [[ $startResult == * " 500 Server Error" * || $startResult == * " internal system exception occurred" * ]]; then
137
137
sleep 60
138
138
echo " Retry starting $SERVICENAME "
139
- startResult=$( curl -u $USERID :$PASSWD -i -H ' X-Requested-By: ambari' -X PUT -d ' {"RequestInfo": {"context" :"Start Service for Hue installation"}, "Body": {"ServiceInfo": {"state": "STARTED"}}}' http://$ACTIVEAMBARIHOST :$PORT /api/v1/clusters/$CLUSTERNAME /services/$SERVICENAME )
139
+ startResult=$( curl -u $USERID :$PASSWD -i -H ' X-Requested-By: ambari' -X PUT -d ' {"RequestInfo": {"context" :"Start Service for Apache Ignite installation"}, "Body": {"ServiceInfo": {"state": "STARTED"}}}' http://$ACTIVEAMBARIHOST :$PORT /api/v1/clusters/$CLUSTERNAME /services/$SERVICENAME )
140
140
fi
141
141
echo $startResult
142
142
}
You can’t perform that action at this time.
0 commit comments