All Products
Search
Document Center

AnalyticDB:DescribeHadoopDataSource

Last Updated:Nov 05, 2025

Obtains the configurations of a Hadoop data source.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
gpdb:DescribeHadoopDataSourceget
*DBInstance
acs:gpdb:*:{#accountId}:dbinstance/{#DBInstanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DBInstanceIdstringYes

The instance ID.

gp-xxx
DataSourceIdstringNo

The data source ID.

123
RegionIdstringNo

The region ID of the instance.

Note You can call the DescribeRegions operation to query the most recent region list.
cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object
DataSourceIdstring

The data source ID.

123
RequestIdstring

The request ID.

B4CAF581-2AC7-41AD-8940-D56DF7AADF5B
DataSourceNamestring

The name of the service.

hdfs_pxf
DataSourceDescriptionstring

The description of the service. The description can be up to 256 characters in length.

pxf for hdfs data source
DataSourceStatusstring

The status of the service. Valid values:

  • Init
  • Running
  • Exception
Running
DataSourceDirstring

The service directory in which Hadoop-related configuration files are stored.

HadoopDir
StatusMessagestring

The information about the service status. For example, if the service is in the exception state, the cause of the exception is displayed. If the service is in the running state, this parameter is left empty.

""
CreateTimestring

The time when the service was created.

2019-09-08T16:00:00Z
DataSourceTypestring

The type of the data source.

hive
HadoopCreateTypestring

The type of the external service. Valid values:

  • emr
  • selfCreate
HDFS
HadoopHostsAddressstring

The IP address and hostname of the Hadoop cluster (data source) in the /etc/hosts file.

127.0.0.1 localhost
HadoopCoreConfstring

The content of the Hadoop core-site.xml file.

xxxxxx
HDFSConfstring

The content of the Hadoop hdfs-site.xml file.

xxxxxx
HiveConfstring

The content of the Hadoop hive-site.xml file.

xxxxxx
YarnConfstring

The content of the Hadoop yarn-site.xml file.

xxxxxx
MapReduceConfstring

The content of the Hadoop mapred-site.xml file.

xxxxxx
EmrInstanceIdstring

The E-MapReduce (EMR) Hadoop cluster ID.

c-1234567
ModifyTimestring

The time when the data source was last modified.

2024-08-23T02:11:47Z
ExternalDataServiceIdstring

The ID of the external data service.

2988

Examples

Sample success responses

JSONformat

{
  "DataSourceId": 123,
  "RequestId": "B4CAF581-2AC7-41AD-8940-D56DF7AADF5B",
  "DataSourceName": "hdfs_pxf",
  "DataSourceDescription": "pxf for hdfs data source",
  "DataSourceStatus": "Running",
  "DataSourceDir": "HadoopDir",
  "StatusMessage": "",
  "CreateTime": "2019-09-08T16:00:00Z",
  "DataSourceType": "hive",
  "HadoopCreateType": "HDFS",
  "HadoopHostsAddress": "127.0.0.1 localhost",
  "HadoopCoreConf": "xxxxxx",
  "HDFSConf": "xxxxxx",
  "HiveConf": "xxxxxx",
  "YarnConf": "xxxxxx",
  "MapReduceConf": "xxxxxx",
  "EmrInstanceId": "c-1234567",
  "ModifyTime": "2024-08-23T02:11:47Z",
  "ExternalDataServiceId": 2988
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-08-20The response structure of the API has changedView Change Details