Skip to content

Commit d2ad2e0

Browse files
authored
Merge branch 'MicrosoftDocs:main' into main
2 parents d53b075 + 8d626b5 commit d2ad2e0

File tree

1 file changed

+33
-35
lines changed

1 file changed

+33
-35
lines changed

articles/hdinsight/migrate-ambari-recent-version-hdinsight.md

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: AmithshaS
55
ms.author: amithshas
66
ms.service: hdinsight
77
ms.topic: how-to
8-
ms.date: 05/09/2024
8+
ms.date: 05/22/2024
99
---
1010

1111
# Ambari user configs migration
@@ -28,36 +28,35 @@ After setting up HDInsight 5.x, it's necessary to update the user-defined config
2828
## Workflow
2929
3030
To execute the migration process,
31-
1. Run the script on the HDInsight 4.x cluster to obtain the current service configurations from Ambari. The output saved on the local system.
31+
1. Run the script on the HDInsight 4.x cluster to obtain the current service configurations from Ambari. The output saved on the local VM from where the script executed.
3232
1. Upload the output file to a public/common storage location, as it requires to download on the HDInsight 5.x cluster.
33-
1. Execute the script on the HDInsight 5.x cluster to retrieve the current service configurations from Ambari.
34-
1. Save the output on the local drive.
33+
1. Execute the script on the HDInsight 5.x cluster to retrieve the current service configurations from Ambari. Save the output on the local drive.
34+
1. Save the output.
3535
1. Download the HDInsight 4.x cluster configurations from the storage account to the HDInsight 5.x cluster.
3636
1. Run the script on the HDInsight 5.x cluster, where both the HDInsight 4.x and HDInsight 5.x configurations are present.
3737
3838
## Execution
3939
4040
On HDInsight 4 Cluster (Old Cluster)
41-
1. ssh to headnode.
42-
1. `mkdir hdinsights_ambari_utils`.
43-
1. `cd hdinsights_ambari_utils`.
44-
1. Download `ambari_export_cluster_configs.py`.
45-
1. Run `wget https://hdiconfigactions2.blob.core.windows.net/hdi-sre-workspace/hdinsights_upgrade_ambari_utils/ambari_export_cluster_configs.py`.
46-
41+
1. ssh to headnode and run the following commands.
42+
```
43+
mkdir hdinsights_ambari_utils
44+
cd hdinsights_ambari_utils
45+
```
46+
1. Run `wget https://hdiconfigactions2.blob.core.windows.net/hdi-sre-workspace/hdinsights_upgrade_ambari_utils/ambari_export_cluster_configs.py` to download the Python script.
47+
4748
:::image type="content" source="./media/migrate-ambari-recent-version-hdinsight/wget-command.png" alt-text="Screenshot showing wget command." border="true" lightbox="./media/migrate-ambari-recent-version-hdinsight/wget-command.png":::
48-
1. Execute the script.
49-
`python ambari_export_cluster_configs.py`.
50-
1. Make sure that the username and password supplied within single quotes.
49+
50+
1. Run `python ambari_export_cluster_configs.py`. Make sure that the username and password supplied within single quotes.
5151
5252
:::image type="content" source="./media/migrate-ambari-recent-version-hdinsight/run-python-script.png" alt-text="Screenshot showing run-python-script." border="true" lightbox="./media/migrate-ambari-recent-version-hdinsight/run-python-script.png":::
5353
54-
1. Check for the configs files.
55-
`ls –ltr`
54+
1. Do `ls –ltr` to check the configs files.
5655
5756
:::image type="content" source="./media/migrate-ambari-recent-version-hdinsight/script-output.png" alt-text="Screenshot showing script output." border="true" lightbox="./media/migrate-ambari-recent-version-hdinsight/script-output.png":::
5857
59-
1. On the above we can see an output file with cluster name Plutos.out.
60-
1. Upload the file to a storage container, hence it downloaded on the new cluster.
58+
1. You can see an output file with cluster name as `Plutos.out`.
59+
1. Upload the file to a storage container.
6160
6261
## On HDInsight 5.x Cluster (New Cluster)
6362
@@ -66,38 +65,37 @@ On HDInsight 4 Cluster (Old Cluster)
6665
mkdir hdinsights_ambari_utils
6766
cd hdinsights_ambari_util
6867
```
69-
1. Download `ambari_export_cluster_configs.py`.
70-
7168
:::image type="content" source="./media/migrate-ambari-recent-version-hdinsight/wget-output.png" alt-text="Screenshot showing wget output." border="true" lightbox="./media/migrate-ambari-recent-version-hdinsight/wget-output.png":::
7269
73-
1. Run `wget https://hdiconfigactions2.blob.core.windows.net/hdi-sre-workspace/hdinsights_upgrade_ambari_utils/ambari_export_cluster_configs.py`
70+
1. Run `wget https://hdiconfigactions2.blob.core.windows.net/hdi-sre-workspace/hdinsights_upgrade_ambari_utils/ambari_export_cluster_configs.py` to download the Python script.
71+
7472
:::image type="content" source="./media/migrate-ambari-recent-version-hdinsight/python-script-output.png" alt-text="Screenshot showing python script output." border="true" lightbox="./media/migrate-ambari-recent-version-hdinsight/python-script-output.png":::
7573
76-
1. Execute the script `python ambari_export_cluster_configs.py`.
77-
1. Make sure that the username and password is supplied within single quotes
78-
1. Check for the configs files `ls –ltr`.
74+
1. Execute the script `python ambari_export_cluster_configs.py`. Make sure that the username and password is supplied within single quotes
75+
1. Check for the configs files.
7976
8077
:::image type="content" source="./media/migrate-ambari-recent-version-hdinsight/ambari-python-script.png" alt-text="Screenshot showing Ambari python script." border="true" lightbox="./media/migrate-ambari-recent-version-hdinsight/ambari-python-script.png":::
8178
82-
1. On the above we can see an output file with cluster name `Sugar.out`.
83-
1. Download the old cluster out file. In this case, uploaded into the storage container.
79+
1. You can see an output file with cluster name `Sugar.out`.
80+
1. Download the old cluster `Sugar.out` file.
8481
8582
:::image type="content" source="./media/migrate-ambari-recent-version-hdinsight/wget-command-output.png" alt-text="Screenshot showing wget command output." border="true" lightbox="./media/migrate-ambari-recent-version-hdinsight/wget-command-output.png":::
8683
87-
1. Download `compare_ambari_cluster_configs.py script`.
88-
8984
:::image type="content" source="./media/migrate-ambari-recent-version-hdinsight/python-results.png" alt-text="Screenshot showing python results." border="true" lightbox="./media/migrate-ambari-recent-version-hdinsight/python-results.png":::
9085
91-
1. Run `wget https://hdiconfigactions2.blob.core.windows.net/hdi-sre-workspace/hdinsights_upgrade_ambari_utils/compare_ambari_cluster_configs.py`'
86+
1. Run `wget https://hdiconfigactions2.blob.core.windows.net/hdi-sre-workspace/hdinsights_upgrade_ambari_utils/compare_ambari_cluster_configs.py` to download the Python script.
9287
93-
1. Run the `compare_ambari_cluster_configs.py` script.
94-
1. Run `sshuser@hn0-sugar:~/hdinsights_ambari_utils$ python,
95-
compare_ambari_cluster_configs.py plutos out sugar.out`
88+
1. Run `compare_ambari_cluster_configs.py` script.
89+
1. Run
90+
```
91+
sshuser@hn0-sugar:~/hdinsights_ambari_utils$ python,
92+
compare_ambari_cluster_configs.py plutos out sugar.out
93+
```
9694
9795
:::image type="content" source="./media/migrate-ambari-recent-version-hdinsight/python-compare-command.png" alt-text="Screenshot showing python compare command." border="true" lightbox="./media/migrate-ambari-recent-version-hdinsight/python-compare-command.png":::
9896
99-
1. Difference printed in the console.
97+
1. You can see the difference in the output.
10098
:::image type="content" source="./media/migrate-ambari-recent-version-hdinsight/python-code-sample.png" alt-text="Screenshot showing python code sample." border="true" lightbox="./media/migrate-ambari-recent-version-hdinsight/python-code-sample.png":::
101-
1. Adding to this difference between the cluster configs saved in local.
102-
`ls –ltr`
103-
:::image type="content" source="./media/migrate-ambari-recent-version-hdinsight/list-of-output-files.png" alt-text="Screenshot showing list of output files." border="true" lightbox="./media/migrate-ambari-recent-version-hdinsight/list-of-output-files.png":::
99+
1. Run the command 'ls -ltr'.
100+
1. Additionally, both the clusters configs are stored here, which you can use them for future reference.
101+
:::image type="content" source="./media/migrate-ambari-recent-version-hdinsight/list-of-output-files.png" alt-text="Screenshot showing list of output files." border="true" lightbox="./media/migrate-ambari-recent-version-hdinsight/list-of-output-files.png":::

0 commit comments

Comments
 (0)