Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Use the Hudi CLI

Focus mode
Use the Hudi CLI - Amazon EMR

You can use the Hudi CLI to administer Hudi datasets to view information about commits, the filesystem, statistics, and more. You can also use the CLI to manually perform compactions, schedule compactions, or cancel scheduled compactions. For more information, see Interacting via CLI in the Apache Hudi documentation.

To start the Hudi CLI and connect to a dataset
  1. Connect to the master node using SSH. For more information, see Connect to the master node using SSH in the Amazon EMR Management Guide.

  2. At the command line, type /usr/lib/hudi/cli/bin/hudi-cli.sh.

    The command prompt changes to hudi->.

  3. Use the following command to connect to a dataset. Replace s3://amzn-s3-demo-bucket/myhudidataset with the path to the dataset that you want to work with. The value we use is the same as the value established in earlier examples.

    connect --path s3://amzn-s3-demo-bucket/myhudidataset

    The command prompt changes to include the dataset that you're connected to, as shown in the following example.

    hudi:myhudidataset->

By default, the hudi-cli.sh script in Amazon EMR release 7.3.0 uses hudi-cli-bundle.jar. If you run into issues, you can switch back to the classic Hudi CLI with the following command:

/usr/lib/hudi/cli/bin/hudi-cli.sh --cliBundle false

This command runs the hudi-cli.sh script, sets the --cliBundle flag, and instructs the CLI to use the individual JAR files instead of the bundled JAR. By default, the --cliBundle is set to true, which means the CLI uses the bundled JAR instead.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.