Skip to content

Commit 841a295

Browse files
committed
Create /user/root on HDFS
1 parent 30723b0 commit 841a295

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

deploy.sh

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ echo "Please make sure you're running this script on a hadoop CLI machine, and y
2323
echo ""
2424

2525

26+
echo "Create /user/root and /kylin on HDFS..."
27+
runuser -l hdfs -c "hadoop fs -mkdir /user/root && hadoop fs -chown root:hdfs /user/root && hadoop fs -mkdir /kylin"
28+
2629
echo "Kylin home folder path is $KYLIN_HOME"
2730
cd $KYLIN_HOME
2831

wait-for-kylin.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ debug() {
1111
}
1212

1313
get-server-state() {
14-
curl -s -o /dev/null -w "%{http_code}" $AMBARISERVER_PORT_7070_TCP_ADDR:7070/kylin
14+
curl -s -o /dev/null -w "%{http_code}" $AMBARISERVER_PORT_7070_TCP_ADDR:7070/kylin/index.html
1515
}
1616

1717
debug waits for kylin to start on: $KYLIN_HOST
@@ -20,4 +20,4 @@ while ! get-server-state | grep 200 &>/dev/null ; do
2020
sleep $SLEEP
2121
done
2222
[ $DEBUG -gt 0 ] && echo
23-
debug kylin web started: $KYLIN_HOST:7070
23+
debug kylin web started: $KYLIN_HOST:7070/kylin

0 commit comments

Comments
 (0)