Modifies the configurations of a Hadoop data source.
Debugging
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 Resourcesis 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.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| gpdb:ModifyHadoopDataSource | update | *DBInstance acs:gpdb::{#accountId}:dbinstance/{#DBInstanceId} |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| RegionId | string | No | The region ID. Note
You can call the DescribeRegions operation to query the most recent region list.
| cn-hangzhou |
| DBInstanceId | string | Yes | Instance ID. | gp-xxxxxxx |
| DataSourceId | string | No | The data source ID. | 123 |
| DataSourceDescription | string | No | Service description, with a maximum length of 256 characters. | pxf for hdfs data source |
| DataSourceType | string | No | The type of the data source. Valid values:
| mysql |
| HadoopCreateType | string | No | The type of the external service. Valid values:
| emr |
| HadoopHostsAddress | string | No | The IP address and hostname of the Hadoop cluster (data source) in the /etc/hosts file. | 127.0.0.1 localhost |
| HadoopCoreConf | string | No | The content of the Hadoop core-site.xml file. | xxxxxx |
| HDFSConf | string | No | The content of the Hadoop hdfs-site.xml file. This parameter must be specified when DataSourceType is set to HDFS. | xxxxxx |
| HiveConf | string | No | The content of the Hadoop hive-site.xml file. This parameter must be specified when DataSourceType is set to Hive. | xxxxxx |
| YarnConf | string | No | The content of the Hadoop yarn-site.xml file. This parameter must be specified when DataSourceType is set to HDFS. | xxxxxx |
| MapReduceConf | string | No | The content of the Hadoop mapred-site.xml file. This parameter must be specified when DataSourceType is set to HDFS. | <?xml version="1.0" ?> <!-- Created at 2023-08-15 13:53:28.962 --> <configuration> <property> <name>mapreduce.map.speculative</name> <value>true</value> </property> <property> <name>mapreduce.jobhistory.keytab</name> <value></value> </property> </configuration> |
| EmrInstanceId | string | No | When HadoopCreateType is Emr, the value of this field is the EMR instance ID. | c-1234567 |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "2C125605-266F-41CA-8AC5-3A643D4F42C5"
}Error codes
For a list of error codes, visit the Service error codes.
