Prepare for using the hive-scanner tool

Updated at:

Before you use the hive-scanner tool provided by Cloud Migration Hub (CMH), prepare the runtime environment and learn about the limits on installing and using the tool.

Terms

tool server

The server on which the hive-scanner tool is installed.

Grant user permissions

The hive-scanner tool requires an account with read permissions on the metastore database of your Hive cluster. Grant permissions to the account as shown in the following example:

grant select   on ${dbname}.*  to ${username}@'%';
flush privileges;

Configure a runtime environment

Tool server selection

Install and run the hive-scanner tool on a server that can communicate with the metastore database of your Hive cluster.

Tool server specifications and OS requirements

The tool server requires at least 2 CPU cores and 4 GB of memory. The operating system (OS) has no special requirements.

Environment dependencies

The tool server requires a Java 8 runtime environment. Run the java -version command to check the Java version on the tool server.

Download the installation package of the hive-scanner tool

Download the hive-scanner installation package, upload it to a jump server, and decompress it.

OS

Installation package

Linux (x86)/Windows (x86)

To obtain the installation package, log on to the CMH console. In the left-side navigation pane, choose Assessment Capacity > Resource Collection. On the page that appears, click the Offline Collection tab. Then, click Download Tool in the Hive section.

To decompress the installation package, run the tar zxvf hive-scanner-x.x.tar.gz command.

Configure a working directory

You must configure an empty directory as the working directory of the hive-scanner tool. Example:

|-hive-scanner/
            |-application.yml
            |-hms-data-scan-0.0.1-SNAPSHOT.jar
            |-start.sh