<commit_before>## **KAP Across-Hadoop-Cluster Migration**

Please notice that this guide is only available for **KAP Enterprise Plus**. If you want to migrate **KAP Enterprise** across Hadoop clusters, please skip it.

**The migration job contains two tasks:**

+ Dump metadata from Source Hadoop Cluster (SHC) and put it to HDFS.
+ Distcp KAP instance data from SHC to Destination Hadoop Cluster (DHC).

It leverages script `cluster-migration.sh` to complete these two tasks.

**Requirements:**

The two clusters are connected and command: **hadoop distcp** is available. 

**Usages:**

*Step1*:

KAP instance has been deployed to both of SHC and DHC with the same `kylin.metadata.url` and `kylin.env.hdfs-working-dir`. Make sure KAP in SHC is stopped.

*Step2*:<commit_msg>modification for migration tools<commit_after>## **KAP Across-Hadoop-Cluster Migration**

Please notice that this guide is only available for **KAP Enterprise Plus**. 

**The migration job contains two tasks:**

+ Dump metadata from Source Hadoop Cluster (SHC) and put it to HDFS.
+ Distcp KAP instance data from SHC to Destination Hadoop Cluster (DHC).

It leverages script `cluster-migration.sh` to complete these two tasks.

**Requirements:**

The two clusters are connected and command: **hadoop distcp** is available. 

**Usages:**

*Step1*:

KAP instance has been deployed to both of SHC and DHC with the same `kylin.metadata.url` and `kylin.env.hdfs-working-dir`. Make sure KAP in SHC is stopped.

*Step2*:
{'fraction_non_alphanumeric': 0.09543010752688172, 'fraction_numerical': 0.002688172043010753, 'mean_word_length': 4.661596958174905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7469618', 'n_tokens_mistral': 451, 'n_tokens_neox': 433, 'n_words': 201}