Skip to content

Commit c43aa40

Browse files
committed
wait for crds and nodes, add phoenix tables
1 parent e971888 commit c43aa40

2 files changed

Lines changed: 30 additions & 12 deletions

File tree

docs/modules/hbase/examples/getting_started/getting_started.sh

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ then
1515
exit 1
1616
fi
1717

18+
echo "Waiting for node(s) to be ready..."
19+
kubectl wait node --all --for=condition=Ready --timeout=120s
20+
1821
cd "$(dirname "$0")"
1922

2023
case "$1" in
@@ -48,6 +51,10 @@ exit 1
4851
;;
4952
esac
5053

54+
# As of SDP 26.3 CRDs are managed by the operator not helm, so there should be an initial delay
55+
# to allow the CRDs to be detected
56+
sleep 10
57+
5158
echo "Creating ZooKeeper cluster"
5259
# tag::install-zk[]
5360
kubectl apply -f zk.yaml
@@ -90,9 +97,9 @@ done
9097

9198
echo "Awaiting HDFS rollout finish"
9299
# tag::watch-hdfs-rollout[]
93-
kubectl rollout status --watch statefulset/simple-hdfs-datanode-default --timeout=300s
94-
kubectl rollout status --watch statefulset/simple-hdfs-namenode-default --timeout=300s
95-
kubectl rollout status --watch statefulset/simple-hdfs-journalnode-default --timeout=300s
100+
kubectl rollout status --watch statefulset/simple-hdfs-datanode-default --timeout=600s
101+
kubectl rollout status --watch statefulset/simple-hdfs-namenode-default --timeout=600s
102+
kubectl rollout status --watch statefulset/simple-hdfs-journalnode-default --timeout=600s
96103
# end::watch-hdfs-rollout[]
97104

98105
sleep 5
@@ -114,9 +121,9 @@ done
114121

115122
echo "Awaiting HBase rollout finish"
116123
# tag::watch-hbase-rollout[]
117-
kubectl rollout status --watch statefulset/simple-hbase-master-default --timeout=300s
118-
kubectl rollout status --watch statefulset/simple-hbase-regionserver-default --timeout=300s
119-
kubectl rollout status --watch statefulset/simple-hbase-restserver-default --timeout=300s
124+
kubectl rollout status --watch statefulset/simple-hbase-master-default --timeout=600s
125+
kubectl rollout status --watch statefulset/simple-hbase-regionserver-default --timeout=600s
126+
kubectl rollout status --watch statefulset/simple-hbase-restserver-default --timeout=600s
120127
# end::watch-hbase-rollout[]
121128

122129
version() {
@@ -191,6 +198,8 @@ tables_count=$(get_all | jq -r '.table' | jq '. | length')
191198
# here, and error out if they don't match
192199
expected_tables=$(echo "
193200
SYSTEM.CATALOG
201+
SYSTEM.CDC_STREAM
202+
SYSTEM.CDC_STREAM_STATUS
194203
SYSTEM.CHILD_LINK
195204
SYSTEM.FUNCTION
196205
SYSTEM.LOG

docs/modules/hbase/examples/getting_started/getting_started.sh.j2

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ then
1515
exit 1
1616
fi
1717

18+
echo "Waiting for node(s) to be ready..."
19+
kubectl wait node --all --for=condition=Ready --timeout=120s
20+
1821
cd "$(dirname "$0")"
1922

2023
case "$1" in
@@ -48,6 +51,10 @@ exit 1
4851
;;
4952
esac
5053

54+
# As of SDP 26.3 CRDs are managed by the operator not helm, so there should be an initial delay
55+
# to allow the CRDs to be detected
56+
sleep 10
57+
5158
echo "Creating ZooKeeper cluster"
5259
# tag::install-zk[]
5360
kubectl apply -f zk.yaml
@@ -90,9 +97,9 @@ done
9097

9198
echo "Awaiting HDFS rollout finish"
9299
# tag::watch-hdfs-rollout[]
93-
kubectl rollout status --watch statefulset/simple-hdfs-datanode-default --timeout=300s
94-
kubectl rollout status --watch statefulset/simple-hdfs-namenode-default --timeout=300s
95-
kubectl rollout status --watch statefulset/simple-hdfs-journalnode-default --timeout=300s
100+
kubectl rollout status --watch statefulset/simple-hdfs-datanode-default --timeout=600s
101+
kubectl rollout status --watch statefulset/simple-hdfs-namenode-default --timeout=600s
102+
kubectl rollout status --watch statefulset/simple-hdfs-journalnode-default --timeout=600s
96103
# end::watch-hdfs-rollout[]
97104

98105
sleep 5
@@ -114,9 +121,9 @@ done
114121

115122
echo "Awaiting HBase rollout finish"
116123
# tag::watch-hbase-rollout[]
117-
kubectl rollout status --watch statefulset/simple-hbase-master-default --timeout=300s
118-
kubectl rollout status --watch statefulset/simple-hbase-regionserver-default --timeout=300s
119-
kubectl rollout status --watch statefulset/simple-hbase-restserver-default --timeout=300s
124+
kubectl rollout status --watch statefulset/simple-hbase-master-default --timeout=600s
125+
kubectl rollout status --watch statefulset/simple-hbase-regionserver-default --timeout=600s
126+
kubectl rollout status --watch statefulset/simple-hbase-restserver-default --timeout=600s
120127
# end::watch-hbase-rollout[]
121128

122129
version() {
@@ -191,6 +198,8 @@ tables_count=$(get_all | jq -r '.table' | jq '. | length')
191198
# here, and error out if they don't match
192199
expected_tables=$(echo "
193200
SYSTEM.CATALOG
201+
SYSTEM.CDC_STREAM
202+
SYSTEM.CDC_STREAM_STATUS
194203
SYSTEM.CHILD_LINK
195204
SYSTEM.FUNCTION
196205
SYSTEM.LOG

0 commit comments

Comments
 (0)