Updated on 2026-06-27 GMT+08:00

Blocking Requests from Older MetaStore Clients

Scenarios

Spark, Flink, and Hive can submit tasks such as hcat directly through the client. Enabling this feature does not affect internal MRS components, but the system will block MetaStore access requests from older client versions.

Notes and Constraints

  • The following components in an MRS cluster need to connect to MetaStore: Spark, Flink, Loader, Ranger, Hive, HetuEngine, and Doris.
  • This feature is not supported in clusters connected to CDM, DataArts, or DWS. Enabling it will cause related services to fail.
  • Enabling this feature may prevent older client versions from connecting to MetaStore. Confirm client compatibility before you proceed.
  • This section applies only to MRS 3.6.0-LTS.1 and later.

Procedure

  1. Log in to MRS Manager, choose Cluster > Services > Hive, click Configurations and then All Configurations, search for metastore-ext.client.compatible in the search box, and configure the following parameters:

    • metastore-ext.client.compatible.enable: indicates whether to block requests from older MetaStore client versions.
      • true: blocks requests from older MetaStore client versions. Enabling this feature may cause jobs from older client versions to fail. Proceed with caution.
      • false (default value): allows requests from older MetaStore client versions.
    • metastore-ext.client.compatible.version: specifies the MetaStore client versions allowed to connect when the blocking feature is enabled. Separate multiple versions with commas (,).

  2. Click Save to save the settings.
  3. Click the Instances tab, select all MetaStore instances, choose More > Restart Instance, enter the user password, and click OK to restart all MetaStore instances.
  4. Verify that the system blocks requests from older MetaStore clients after you enable this feature.

    1. Log in to the node where the older Hive client is installed.
    2. Switch to the client installation directory.
      cd Client installation directory
    3. Configure environment variables.
      source bigdata_env
    4. Authenticate the user. If Kerberos authentication is disabled for the cluster (the cluster is in normal mode), skip this step.
      kinit Component service user
    5. Connect to MetaStore.
      hcat -e "show tables"

      The connection to MetaStore fails, and the system displays the following message.

      Figure 1 MetaStore connection failed