Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#4580] feat(catalog): unify cloud storage configurations #4897

Merged
merged 3 commits into from
Sep 13, 2024

Conversation

FANNG1
Copy link
Contributor

@FANNG1 FANNG1 commented Sep 9, 2024

What changes were proposed in this pull request?

unify the storage configurations

Why are the changes needed?

Fix: #4580

Does this PR introduce any user-facing change?

no

How was this patch tested?

existing tests

Copy link
Contributor

@diqiu50 diqiu50 left a comment

Choose a reason for hiding this comment

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

Do the related documents need to be updated?

@FANNG1
Copy link
Contributor Author

FANNG1 commented Sep 10, 2024

Do the related documents need to be updated?

There seems no need to update the document, this is internal, the other catalog like fileset or engine could reuse the storage properties.

@FANNG1 FANNG1 changed the title [#4580] feat(catalog): unify the storage configurations [#4580] feat(catalog): unify cloud storage configurations Sep 11, 2024
public static final String GRAVITINO_OSS_ACCESS_KEY_ID = "oss-access-key-id";
// The static secret access key used to access OSS data.
public static final String GRAVITINO_OSS_ACCESS_KEY_SECRET = "oss-access-key-secret";

Copy link
Contributor

Choose a reason for hiding this comment

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

The oss-access-key-secret is mismatch with the docs. is it right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated the docs to use access key secret for OSS

public static final String ICEBERG_OSS_ACCESS_KEY_ID = "client.access-key-id";
public static final String GRAVITINO_OSS_ACCESS_KEY_SECRET = "oss-access-key-secret";
public static final String ICEBERG_OSS_ACCESS_KEY_SECRET = "client.access-key-secret";
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have the GCS related configurations?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, because GCS need to create credential according to a credential file, For Iceberg, it could only load credential file by setting ENV vars explicitly or load from GCS instance implicitly.

Copy link
Contributor

@diqiu50 diqiu50 left a comment

Choose a reason for hiding this comment

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

LGTM

@jerryshao jerryshao merged commit 23f7f4c into apache:main Sep 13, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improvement] unify the storage configurations
3 participants