Rate This Document
Findability
Accuracy
Completeness
Readability

Packaging the Elasticsearch Source Components

Package source components following the instructions below to prevent data, configuration, and log files outside the installation package from being lost.

The file to be migrated is a complete Elasticsearch folder, for example, elasticsearch-x.x.x, where x.x.x indicates the Elasticsearch version.

Procedure

  1. Compress the installation directory of the source components to be scanned into a package. The following uses a tar.gz package as an example.
    tar cvf elasticsearch-tmp.tar.gz /devkit_migrated/devkit_tmp/elasticsearch-x.x.x
    • Replace the example package name elasticsearch-tmp.tar.gz with the actual one.
    • Replace the example source component path /devkit_migrated/devkit_tmp/elasticsearch-x.x.x with the actual one.
  2. Obtain the source components using either of the following methods:
    • If you select the Upload source component package option, return to the Add Component Information tab, and click Upload next to Upload source component package to upload the source component package.
    • If you select the Obtain from node server option, run the following command to decompress the source component package.
      1. Log in to the tool through SSH and upload the package to the user-defined directory on Target Node.
      2. Go to the directory that stores the package.
        cd User-defined_directory
      3. Decompress the source component package.
        tar xvf elasticsearch-tmp.tar.gz
      4. After the decompression is complete, you can run the following command to delete the source component package.
        rm -f elasticsearch-tmp.tar.gz
      5. Set the path to the decompressed file as the source component path.