summaryrefslogtreecommitdiff
path: root/TWA-PIC/phoenix-hbase/bin/startsql.sh
diff options
context:
space:
mode:
Diffstat (limited to 'TWA-PIC/phoenix-hbase/bin/startsql.sh')
-rw-r--r--TWA-PIC/phoenix-hbase/bin/startsql.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/TWA-PIC/phoenix-hbase/bin/startsql.sh b/TWA-PIC/phoenix-hbase/bin/startsql.sh
new file mode 100644
index 0000000..25ec47c
--- /dev/null
+++ b/TWA-PIC/phoenix-hbase/bin/startsql.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+source /etc/profile
+
+BASE_DIR=$(cd $(dirname $0); pwd)
+
+cd $BASE_DIR
+
+exec python sqlline.py 192.168.30.193,192.168.30.194,192.168.30.195 <<EOF
+
+!quit
+
+EOF