检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Getting Started General Procedure Step 1: Creating a DIS Stream Step 2: Preparing a DIS Application Development Environment Step 3: Sending Data to DIS Step 4: Obtaining Data from DIS Obtaining Authentication Information Interconnecting with OBS Creating an IAM Agency
An IAM user can pass the authentication and access DataArts Studio through an API or SDK only if Programmatic access is selected for Access Type during the creation of the IAM user. Token-based Authentication The validity period of a token is 24 hours.
Obtain your Access Key ID/Secret Access Key (AK/SK) pair from the Identity and Access Management (IAM) service. Download the dis-sdk-X.X.X.zip package at https://dis-publish.obs-website.cn-north-1.myhuaweicloud.com/ and decompress it.
It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.
groupId> <artifactId>cloud-dis-spark-streaming_2.11</artifactId> <version>1.2.1</version> <scope>compile</scope> </dependency> Checking Authentication Information AK/SK file Access Key ID/Secret Access Key (AK/SK) files are created by the Identity and Access Management (IAM
groupId> <artifactId>cloud-dis-flink-connector_2.11</artifactId> <version>1.0.5</version> <scope>compile</scope> </dependency> Checking Authentication Information AK/SK file Access Key ID/Secret Access Key (AK/SK) files are created by the Identity and Access Management (IAM
It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. Table 3 Request body parameters Parameter Mandatory Type Description destination_type Yes String Type of the dump task.
The token obtained on IAM is valid for only 24 hours. If you want to use one token for authentication, you can cache it to avoid frequent calling.
Ensure that the application name is correct. 400 DIS.4335 Invalid IAM agency. The IAM agency used during dump task creation is invalid. Ensure that dis_admin_agency created by DIS or the user-defined IAM agency exists and permission is complete. 400 DIS.4336 Invalid HDFS path.
{Endpoint} is the IAM endpoint and can be obtained from Regions and Endpoints. For details about API authentication, see Authentication. The following is an example response. The value of id is the project ID.
It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. Table 3 Request body parameters Parameter Mandatory Type Description destination_type Yes String Type of the dump task.
It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.
Ensure the application name is correct. 400 DIS.4335 Invalid IAM agency. The IAM agency used during dump task creation is invalid. Ensure that dis_admin_agency created by DIS or the user-defined IAM agency exists and permission is complete. 400 DIS.4336 Invalid HDFS path.
It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.
It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.
Checking Authentication Information AK/SK file Access Key ID/Secret Access Key (AK/SK) files are created by the Identity and Access Management (IAM) service to authenticate calls to application programming interfaces (APIs) on the cloud.
It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. Table 3 Request body parameters Parameter Mandatory Type Description destination_type Yes String Type of the dump task.
On the API Credentials page, obtain the account name, account ID, IAM username, and IAM user ID, and obtain the project and its ID from the project list. Obtaining the endpoint An endpoint is the request address for calling an API.
It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.
Add the following configuration items to the dis.properties file in the dis-sdk-demo\src\main\resources directory: ak/sk: AK/SK created on the IAM region: region of the stream endpoint: access address of the DIS projectId: project ID of the stream 1 2 //Create a DIS SDK client instance