Skip to content

Commit d5a092a

Browse files
committed
Merge branch 'feature/upgrade' of github.com:stackabletech/hdfs-operator into feature/upgrade
2 parents eb19010 + 13129b5 commit d5a092a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/modules/hdfs/pages/usage-guide/upgrading.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ HDFS currently requires a manual process to upgrade. This guide will take you th
66

77
== Preparing HDFS
88

9-
HDFS must be configured to initiate the upgrade process. To do this, run the following commands in a HDFS superuser environment
10-
(either a client configured with a superuser account, or from inside NameNode pod):
9+
HDFS must be configured to initiate the upgrade process. To do this, run the following commands in an HDFS superuser environment
10+
(either a client configured with a superuser account, or from inside a NameNode pod):
1111

1212
// This could be automated by the operator, but dfsadmin does not have good machine-readable output.
1313
// It *can* be queried over JMX, but we're not so lucky for finalization.
@@ -33,7 +33,7 @@ for proceeding with rolling upgrade
3333
Start Time: Fri Aug 02 15:49:12 GMT 2024 (=1722613752341)
3434
Finalize Time: <NOT FINALIZED>
3535
36-
$ # It should look like this once ready
36+
$ # It is safe to proceed when the output indicates so, like this:
3737
$ hdfs dfsadmin -rollingUpgrade query
3838
QUERY rolling upgrade ...
3939
Proceed with rolling upgrade:
@@ -44,21 +44,21 @@ Proceed with rolling upgrade:
4444

4545
== Starting the upgrade
4646

47-
Once ready, the HdfsCluster can be updated with the new product version:
47+
Once HDFS is ready to upgrade, the HdfsCluster can be updated with the new product version:
4848

4949
[source,shell]
5050
----
5151
$ kubectl patch hdfs/simple-hdfs --patch '{"spec": {"image": {"productVersion": "3.4.0"}}}' --type=merge
5252
hdfscluster.hdfs.stackable.tech/simple-hdfs patched
5353
----
5454

55-
Then wait until all pods are ready and running the new HDFS version.
55+
Then wait until all pods have restarted, are in the Ready state, and running the new HDFS version.
5656

5757
NOTE: Services will be upgraded in order: JournalNodes, then NameNodes, then DataNodes.
5858

5959
== Finalizing the upgrade
6060

61-
Once all HDFS pods are running the new version, the HDFS upgrade can be finalized (from the HDFS superuser environment):
61+
Once all HDFS pods are running the new version, the HDFS upgrade can be finalized (from the HDFS superuser environment as described in the preparation step):
6262

6363
[source,shell]
6464
----

rust/operator-binary/src/hdfs_controller.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ pub async fn reconcile_hdfs(hdfs: Arc<HdfsCluster>, ctx: Arc<Ctx>) -> HdfsOperat
494494
};
495495

496496
// During upgrades we do partial deployments, we don't want to garbage collect after those
497-
// since we *will* redeploy (or properly orphan) the remaining resources layer.
497+
// since we *will* redeploy (or properly orphan) the remaining resources later.
498498
if deploy_done {
499499
cluster_resources
500500
.delete_orphaned_resources(client)

0 commit comments

Comments
 (0)