This is an automated email from the ASF dual-hosted git repository.
xiangfu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 23a4c04 Adding script for local port-forwarding and open PrestoUI
console (#5017)
23a4c04 is described below
commit 23a4c0405c512e6b752dbee3121357f282716845
Author: SACHIN TRIPATHI <[email protected]>
AuthorDate: Mon Jan 27 11:49:31 2020 +0530
Adding script for local port-forwarding and open PrestoUI console (#5017)
* kubernetes/helm/presto-cli.sh
* Update presto-cli.sh
Co-authored-by: Xiang Fu <[email protected]>
---
kubernetes/helm/presto-cli.sh | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/kubernetes/helm/presto-cli.sh b/kubernetes/helm/presto-cli.sh
new file mode 100644
index 0000000..135c529
--- /dev/null
+++ b/kubernetes/helm/presto-cli.sh
@@ -0,0 +1,28 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+if [[ $(nc -z localhost 8080) != 0 ]]; then
+ kubectl port-forward service/presto-coordinator 8080:8080 -n
pinot-quickstart > /dev/null &
+fi
+sleep 2
+open http://localhost:8080/
+
+# Just for blocking
+tail -f /dev/null
+pkill -f "kubectl port-forward sservice/presto-coordinator 8080:8080 -n
pinot-quickstart"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]