All Products
Search
Document Center

E-MapReduce:FAQ: AccessKey pair issues when accessing OSS or OSS-HDFS

Last Updated:Jul 17, 2026

Resolve common AccessKey pair issues when you access OSS or OSS-HDFS from an EMR cluster.

Enable password-free access to OSS or OSS-HDFS

JindoSDK uses the RAM role attached to the cluster's ECS instances to obtain a security token for accessing OSS or OSS-HDFS. The default role is AliyunECSInstanceForEMRRole.1

On the Hadoop-Common service configuration page, go to the core-site.xml tab. Verify that the value of the fs.oss.credentials.provider parameter is com.aliyun.jindodata.oss.auth.EcsStsCredentialsProvider. If not, set the parameter to this value and click Save. This enables password-free access to OSS or OSS-HDFS.

Check for password-free access

  • Method 1: Run the following command to retrieve the RAM role credentials.

    curl http://100.100.100.200/latest/meta-data/Ram/Security-credentials/AliyunECSInstanceForEMRRole

    If the command returns a result in the following format, password-free access is available.

     {
      "AccessKeyId" : "STS.NUreXXXXXX",
      "AccessKeySecret" : "BsmbnDoXXXXXXXX",
      "Expiration" : "2022-11-22T11:27:39Z",
      "SecurityToken" : "CAISlwJ1q6FXXXXXXX",
      "LastUpdated" : "2022-11-22T05:27:39Z",
      "Code" : "Success"
      }
  • Method 2: Configure and test password-free access.

    1. On the Hadoop-Common service configuration page, go to the core-site.xml tab. Verify that the value of the fs.oss.credentials.provider parameter is com.aliyun.jindodata.oss.auth.EcsStsCredentialsProvider. If not, set the parameter to this value and click Save.

    2. Use the HDFS shell to access OSS or OSS-HDFS. Successful access confirms that password-free access is available.

Periodic access failures from HiveServer2 or Presto

Certain JindoSDK versions have a known bug that causes password-free access to fail periodically. For details, see Known issues in JindoData.

Error: AccessKey pair in access path

  • Error message:

    The Filesystem URI contains login details. This authentication mechanism is no longer supported.
  • Cause:

    To prevent credential leakage, JindoSDK 4.0.0 and later do not allow AccessKey pairs (AccessKey ID and AccessKey Secret) in the access path.

  • Solutions:

    • Method 1: Remove the AccessKey pair from the access path.

    • Method 2: If you must include the AccessKey pair in the path, go to the Hadoop-Common service configuration page, click the core-site.xml tab, and then click Add Configuration Item. Add the following configuration:

      Parameter

      Value

      fs.oss.uri-with-secrets.enable

      true

      After you add the configuration, click Save.