File tree Expand file tree Collapse file tree
docs/modules/hdfs/examples/getting_started Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 exit 1
1616fi
1717
18+ echo " Waiting for node(s) to be ready..."
19+ kubectl wait node --all --for=condition=Ready --timeout=120s
20+
1821cd " $( dirname " $0 " ) "
1922
2023case " $1 " in
4548;;
4649esac
4750
51+ # TODO: Remove once https://github.com/stackabletech/issues/issues/828 has been implemented (see that issue for details).
52+ until kubectl get crd hdfsclusters.hdfs.stackable.tech > /dev/null 2>&1 ; do echo " Waiting for CRDs to be installed" && sleep 1; done
53+
4854echo " Creating Zookeeper cluster"
4955# tag::install-zk[]
5056kubectl apply -f zk.yaml
@@ -55,8 +61,6 @@ echo "Creating ZNode"
5561kubectl apply -f znode.yaml
5662# end::install-zk[]
5763
58-
59-
6064for (( i= 1 ; i<= 15 ; i++ ))
6165do
6266 echo " Waiting for ZookeeperCluster to appear ..."
Original file line number Diff line number Diff line change 1515 exit 1
1616fi
1717
18+ echo " Waiting for node(s) to be ready..."
19+ kubectl wait node --all --for=condition=Ready --timeout=120s
20+
1821cd " $( dirname " $0 " ) "
1922
2023case " $1 " in
4548;;
4649esac
4750
51+ # TODO: Remove once https://github.com/stackabletech/issues/issues/828 has been implemented (see that issue for details).
52+ until kubectl get crd hdfsclusters.hdfs.stackable.tech > /dev/null 2>&1 ; do echo " Waiting for CRDs to be installed" && sleep 1; done
53+
4854echo " Creating Zookeeper cluster"
4955# tag::install-zk[]
5056kubectl apply -f zk.yaml
@@ -55,8 +61,6 @@ echo "Creating ZNode"
5561kubectl apply -f znode.yaml
5662# end::install-zk[]
5763
58-
59-
6064for (( i= 1 ; i<= 15 ; i++ ))
6165do
6266 echo " Waiting for ZookeeperCluster to appear ..."
You can’t perform that action at this time.
0 commit comments