AWS Glue
Before creating a catalog or running a load or export job, ensure that the warehouse can reach the service endpoint and that its credentials have the required metadata and data permissions. For private endpoints or service-side credential files, coordinate connectivity and provisioning with VeloDB Cloud support.
This document describes the parameter configuration when using AWS Glue Catalog to access Iceberg tables or Hive tables through CREATE CATALOG.
Supported Glue catalog types
AWS Glue Catalog currently supports three types of Catalogs:
| Catalog Type | Type Identifier (type) | Description |
|---|---|---|
| Hive | type=hms, hive.metastore.type=glue | Catalog for connecting to Hive Metastore |
| Iceberg | type=iceberg, iceberg.catalog.type=glue | Catalog for connecting to Iceberg table format |
| Iceberg | type=iceberg, iceberg.catalog.type=rest | Catalog for connecting to Iceberg table format via Glue REST Catalog |
This documentation provides detailed parameter descriptions for each type to facilitate user configuration.
Common parameters
| Parameter Name | Description | Required | Default Value |
|---|---|---|---|
glue.region | AWS Glue region, e.g., us-east-1 | Yes | None |
glue.endpoint | AWS Glue endpoint, e.g., https://glue.us-east-1.amazonaws.com | Yes | None |
glue.access_key | AWS Access Key ID; paired with glue.secret_key, or use an IAM role | No | Empty |
glue.secret_key | AWS Secret Access Key paired with glue.access_key | No | Empty |
glue.catalog_id | Glue Catalog ID (not supported yet) | No | Empty |
glue.role_arn | IAM Role ARN for accessing Glue | No | Empty |
glue.external_id | IAM External ID for accessing Glue | No | Empty |
Configure authentication
Accessing Glue requires authentication information, supporting the following two methods:
-
Access Key Authentication
Authenticate access to Glue through Access Key provided by
glue.access_keyandglue.secret_key. -
IAM Role Authentication
Authenticate access to Glue through IAM Role provided by
glue.role_arn.The warehouse needs an AWS source identity that can call STS
AssumeRole. Ask VeloDB Cloud support to configure the service-side identity; attaching an IAM role to your own EC2 instance does not grant the warehouse access.If access through External ID is required, you need to configure
glue.external_idas well.
Notes:
- At least one of the two methods must be configured. If both methods are configured, Access Key authentication takes priority.
Example:
```sql
CREATE CATALOG hive_glue_catalog PROPERTIES (
'type' = 'hms',
'hive.metastore.type' = 'glue',
'glue.region' = 'us-east-1',
'glue.endpoint' = 'https://glue.us-east-1.amazonaws.com',
-- Using Access Key authentication
'glue.access_key' = '<YOUR_ACCESS_KEY>',
'glue.secret_key' = '<YOUR_SECRET_KEY>'
-- Or using IAM Role authentication
-- 'glue.role_arn' = '<YOUR_ROLE_ARN>',
-- 'glue.external_id' = '<YOUR_EXTERNAL_ID>'
);
```
The policies below cover metadata access. Grant separate S3 permissions for the data files, and coordinate warehouse IAM source credentials with VeloDB Cloud support.
Hive Glue catalog
Hive Glue Catalog is used to access Hive tables through AWS Glue's Hive Metastore compatible interface. Configuration as follows:
| Parameter Name | Description | Required | Default Value |
|---|---|---|---|
type | Fixed as hms | Yes | None |
hive.metastore.type | Fixed as glue | Yes | None |
glue.region | AWS Glue region, e.g., us-east-1 | Yes | None |
glue.endpoint | AWS Glue endpoint, e.g., https://glue.us-east-1.amazonaws.com | Yes | None |
glue.access_key | AWS Access Key ID | No | Empty |
glue.secret_key | AWS Secret Access Key | No | Empty |
glue.catalog_id | Glue Catalog ID (not supported yet) | No | Empty |
glue.role_arn | IAM Role ARN for accessing Glue | No | Empty |
glue.external_id | IAM External ID for accessing Glue | No | Empty |
Example
View example
CREATE CATALOG hive_glue_catalog PROPERTIES (
'type' = 'hms',
'hive.metastore.type' = 'glue',
'glue.region' = 'us-east-1',
'glue.endpoint' = 'https://glue.us-east-1.amazonaws.com',
'glue.access_key' = 'YOUR_ACCESS_KEY',
'glue.secret_key' = 'YOUR_SECRET_KEY'
);
Iceberg Glue catalog
Iceberg Glue Catalog accesses Glue through Glue Client. Configuration as follows:
| Parameter Name | Description | Required | Default Value |
|---|---|---|---|
type | Fixed as iceberg | Yes | None |
iceberg.catalog.type | Fixed as glue | Yes | None |
warehouse | Iceberg data warehouse path, required when creating tables without an explicit location. Specify your own bucket path. | No | Internal placeholder; do not use it for table creation |
glue.region | AWS Glue region, e.g., us-east-1 | Yes | None |
glue.endpoint | AWS Glue endpoint, e.g., https://glue.us-east-1.amazonaws.com | Yes | None |
glue.access_key | AWS Access Key ID | No | Empty |
glue.secret_key | AWS Secret Access Key | No | Empty |
glue.catalog_id | Glue Catalog ID (not supported yet) | No | Empty |
glue.role_arn | IAM Role ARN for accessing Glue | No | Empty |
glue.external_id | IAM External ID for accessing Glue | No | Empty |
Example
View example
CREATE CATALOG iceberg_glue_catalog PROPERTIES (
'type' = 'iceberg',
'iceberg.catalog.type' = 'glue',
'glue.region' = 'us-east-1',
'glue.endpoint' = 'https://glue.us-east-1.amazonaws.com',
'glue.access_key' = '<YOUR_ACCESS_KEY>',
'glue.secret_key' = '<YOUR_SECRET_KEY>'
);
Iceberg Glue REST catalog
Iceberg Glue REST Catalog accesses Glue through Glue REST Catalog interface. Currently only supports Iceberg tables stored in AWS S3 Table Bucket. Configuration as follows:
| Parameter Name | Description | Required | Default Value |
|---|---|---|---|
type | Fixed as iceberg | Yes | None |
iceberg.catalog.type | Fixed as rest | Yes | None |
iceberg.rest.uri | Glue REST service endpoint, e.g., https://glue.ap-east-1.amazonaws.com/iceberg | Yes | None |
warehouse | Iceberg data warehouse path, e.g., <account_id>:s3tablescatalog/<bucket_name> | Yes | None |
iceberg.rest.sigv4-enabled | Enable V4 signature format, fixed as true | Yes | None |
iceberg.rest.signing-name | Signature type, fixed as glue | Yes | Empty |
iceberg.rest.access-key-id | Access Key for accessing Glue (also used for accessing S3 Bucket) | Yes | Empty |
iceberg.rest.secret-access-key | Secret Key for accessing Glue (also used for accessing S3 Bucket) | Yes | Empty |
iceberg.rest.signing-region | AWS Glue region, e.g., us-east-1 | Yes | Empty |
Example
View example
CREATE CATALOG glue_s3 PROPERTIES (
'type' = 'iceberg',
'iceberg.catalog.type' = 'rest',
'iceberg.rest.uri' = 'https://glue.<region>.amazonaws.com/iceberg',
'warehouse' = '<account_id>:s3tablescatalog/<s3_table_bucket_name>',
'iceberg.rest.sigv4-enabled' = 'true',
'iceberg.rest.signing-name' = 'glue',
'iceberg.rest.access-key-id' = '<ak>',
'iceberg.rest.secret-access-key' = '<sk>',
'iceberg.rest.signing-region' = '<region>'
);
Permission policies
Depending on usage scenarios, they can be divided into read-only and read-write policies.
1. Read-only permissions
Only allows reading database and table information from Glue Catalog.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "GlueCatalogReadOnly",
"Effect": "Allow",
"Action": [
"glue:GetCatalog",
"glue:GetDatabase",
"glue:GetDatabases",
"glue:GetTable",
"glue:GetTables",
"glue:GetPartitions"
],
"Resource": [
"arn:aws:glue:<region>:<account-id>:catalog",
"arn:aws:glue:<region>:<account-id>:database/*",
"arn:aws:glue:<region>:<account-id>:table/*/*"
]
}
]
}
2. Read-write permissions
Based on read-only permissions, allows creating/modifying/deleting databases and tables.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "GlueCatalogReadWrite",
"Effect": "Allow",
"Action": [
"glue:GetCatalog",
"glue:GetDatabase",
"glue:GetDatabases",
"glue:GetTable",
"glue:GetTables",
"glue:GetPartitions",
"glue:CreateDatabase",
"glue:UpdateDatabase",
"glue:DeleteDatabase",
"glue:CreateTable",
"glue:UpdateTable",
"glue:DeleteTable"
],
"Resource": [
"arn:aws:glue:<region>:<account-id>:catalog",
"arn:aws:glue:<region>:<account-id>:database/*",
"arn:aws:glue:<region>:<account-id>:table/*/*"
]
}
]
}
Notes
-
Placeholder Replacement
<region>→ Your AWS region (e.g.,us-east-1).<account-id>→ Your AWS account ID (12-digit number).
-
Principle of Least Privilege
- If only querying, do not grant write permissions.
- Can replace
*with specific database/table ARNs to further restrict permissions.
-
S3 Permissions
- The above policies only involve Glue Catalog.
- If you need to read data files, additional S3 permissions are required (such as
s3:GetObject,s3:ListBucket, etc.).
Common errors
For access-denied errors, check the identity and its permissions for both metadata and data. For timeouts, verify the service endpoint and network path from the warehouse. For errors involving a keytab, CA certificate, Hadoop XML file, or JDBC driver, contact VeloDB Cloud support with the error text and the operation that failed.