Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Enable OBSClient security provider policy chain #1250

Merged
merged 1 commit into from
Mar 27, 2023

Conversation

kiwik
Copy link
Contributor

@kiwik kiwik commented Mar 22, 2023

  1. Enable OBSClient security provider policy chain, it can work
    with ENV "OBS_ACCESS_KEY_ID" and "OBS_SECRET_ACCESS_KEY" or
    ECS agent to get AK/SK automatically, it's disable by default.
  2. Fix cloud.storage.uri return a whole OBS bucket URI for
    command "cloudtik workspace info"
  3. Fix ECS create server error for command "cloudtik start",
    remove unnecessary item in dict of create_server.

Related-with: #1011

@kiwik kiwik force-pushed the enable-obsclient-policy branch from b77f5a1 to a849f67 Compare March 23, 2023 02:29
managed_cloud_storage = {
HWC_MANAGED_CLOUD_STORAGE_OBS_BUCKET: bucket_name,
CLOUDTIK_MANAGED_CLOUD_STORAGE_URI: managed_cloud_storage_uri}
CLOUDTIK_MANAGED_CLOUD_STORAGE_URI: _storage_uri}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CloudTik (Spark) data access to cloud storage are basically through Hadoop File System. So we originally target the cloud storage URI as Hadoop file system uri to access the bucket. for example:
for AWS S3, its s3a://bucket_name, for GCS: gcs://bucket_name, and so on.

This information is shown as workspace info which is useful for user to access the data in their jobs using this uri.
It's not the URI that in the concept of cloud provider.

For Huawei Cloud, Hadoop file system URI to access may look like: obs://bucket_name or something.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So that's it, thank you

@kiwik kiwik force-pushed the enable-obsclient-policy branch 2 times, most recently from 8d84c74 to 815f262 Compare March 23, 2023 07:08
1. Enable OBSClient security provider policy chain, it can work
with ENV "OBS_ACCESS_KEY_ID" and "OBS_SECRET_ACCESS_KEY" or
ECS agent to get AK/SK automatically, it's disable by default.
2. Fix cloud.storage.uri return a whole OBS bucket URI for
command "cloudtik workspace info"
3. Fix ECS create server error for command "cloudtik start",
remove unnecessary item in dict of create_server.

Related-with: oap-project#1011
@kiwik kiwik force-pushed the enable-obsclient-policy branch from 815f262 to 8986665 Compare March 23, 2023 08:18
@jerrychenhf jerrychenhf merged commit 1da285f into oap-project:main Mar 27, 2023
@kiwik kiwik deleted the enable-obsclient-policy branch March 28, 2023 01:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants