
# Scanning Clusters

You need to scan the source cluster to identify the available datasets and workloads that can be migrated.

**Steps**

1. Click on the cluster you want to scan on the **Clusters** page.
2. Click **Start Scanning** to open the **Scan Settings** where you can select the data and workloads for scanning.

![CMA-Triggering Scan](../images/cma-scan-trigger.png)

3. Select **Everything** or choose from the different scanning options.

The following items are available for scanning:

- **HDFS data scan:** Scans HDFS on the source cluster.
- **Hive table scan:** Scans Hive tables on the source cluster.

4. Click **Scan selected**.
You will be redirected to the scanning progress where you can monitor if the selected items are successfully scanned or encountered an error.

![CMA-Scan Progress](../images/cma-scan-progress.png)

  - Click ![CMA-Scan setting icon](../images/cma-scan-setting-icon.png) to open the **Scan Settings** again to add more items to the scan or trigger a rescan of the already scanned items.
  - Click ![CMA-History icon](../images/cma-scan-command-history-icon.png) icon to open the **Source command history** to have more insight about the scanning progress, stop an in progress scan and review the log.

  ![CMA-Scan History](../images/cma-scan-history.png)

> Note: The scan results are also available at the data directory of the source cluster, which is located in the `/<CMA_ROOT_DIR>/data/sources/ClusterName/Source_ID/cluster-scan/` folder on the CMA server node.

After the scanning is completed, you can add the datasets from the selected services to collections. **Collections** serve as an organizational method to sort out the data resulted from the scan for migration.

![CMA-Collections Overview](../images/cma-collections.png)

**Result**

The datasets on the source cluster are scanned for HDFS and Hive.

**After you finish**

Sort the scanned data into collections to have more control over what is migrated from the source cluster to the target cluster.

