Skip to content

Commit 9331550

Browse files
authored
docs(issue_template): Add instructions for HDFS Rolling Upgrade (#423)
1 parent dfd9cc9 commit 9331550

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/ISSUE_TEMPLATE/pre-release-upgrade-testing.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,35 @@ kubectl patch hbaseclusters/hbase --type='json' -p='[{"op": "replace", "path": "
124124
125125
# Run through the (still) nightly demo/stack instructions again.
126126
```
127+
128+
### HDFS Rolling Upgrade
129+
130+
For demos that use HDFS, also test a rolling upgrade.
131+
See <https://docs.stackable.tech/home/nightly/hdfs/usage-guide/upgrading/>.
132+
133+
#### Prepare the upgrade (run in an HDFS superuser container)
134+
135+
```shell
136+
hdfs dfsadmin -rollingUpgrade prepare
137+
hdfs dfsadmin -rollingUpgrade query # repeat until "Proceed with rolling upgrade"
138+
```
139+
140+
#### Patch the HdfsCluster to the new product version and wait for all pods to restart and reach Ready state
141+
142+
```shell
143+
kubectl patch hdfs/<CLUSTER_NAME> --type=merge \
144+
--patch '{"spec": {"image": {"productVersion": "<NEW_VERSION>"}}}'
145+
```
146+
147+
#### Finalize the upgrade (run in an HDFS superuser container)
148+
149+
```shell
150+
hdfs dfsadmin -rollingUpgrade finalize
151+
```
152+
153+
#### Update the deployed product version status
154+
155+
```shell
156+
kubectl patch hdfs/<CLUSTER_NAME> --subresource=status --type=merge \
157+
--patch '{"status": {"deployedProductVersion": "<NEW_VERSION>"}}'
158+
```

0 commit comments

Comments
 (0)