Updated on 2025-09-19 GMT+08:00

Preparations Before Using Hudi

Prerequisites

You have created an OBS agency and OBS data source. For details, see Managing OBS Data Sources.

Authorizing the Use of Data Sources

Run the GRANT command to grant a user the permission to use data sources.

1
GRANT USAGE ON FOREIGN SERVER server_name TO role_name;

Example:

Grant the user u1 the permission to access the data source hudi_server.

1
GRANT USAGE ON FOREIGN SERVER hudi_server TO u1;

Granting Permissions for Using Foreign Tables

Run the following command to grant a user the permission to use foreign tables:

1
ALTER USER role_name USEFT;

Example:

Grant the user u1 the permission to access foreign tables.

1
ALTER USER u1 USEFT;