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

Fails to start the server #28

Closed
jaehyeon-kim opened this issue Oct 15, 2021 · 2 comments
Closed

Fails to start the server #28

jaehyeon-kim opened this issue Oct 15, 2021 · 2 comments

Comments

@jaehyeon-kim
Copy link

Hi

I just made a quick trial of running the server with the following configuration.

debezium.sink.type=iceberg
debezium.sink.iceberg.table-prefix=debeziumcdc_
debezium.sink.iceberg.catalog-name=mycatalog
debezium.sink.iceberg.table-namespace=debeziumevents
debezium.sink.iceberg.fs.defaultFS=s3a://<my-bucket>
debezium.sink.iceberg.warehouse=s3a://<my-bucket>/iceberg_warehouse
debezium.sink.iceberg.type=hadoop
debezium.sink.iceberg.catalog-name=mycatalog
debezium.sink.iceberg.com.amazonaws.services.s3.enableV4=true
debezium.sink.iceberg.com.amazonaws.services.s3a.enableV4=true
debezium.sink.iceberg.fs.s3a.aws.credentials.provider=com.amazonaws.auth.DefaultAWSCredentialsProviderChain
debezium.sink.iceberg.fs.s3a.access.key=<my-aws-access-key>
debezium.sink.iceberg.fs.s3a.secret.key=<my-secret-access-key>
debezium.sink.iceberg.fs.s3a.path.style.access=true
debezium.sink.iceberg.fs.s3a.endpoint=http://localhost:9000 # minio specific setting
debezium.sink.iceberg.fs.s3a.impl=org.apache.hadoop.fs.s3a.S3AFileSystem
debezium.sink.iceberg.upsert=true
debezium.sink.iceberg.upsert-keep-deletes=true
debezium.format.value.schemas.enable=true
debezium.format.key.schemas.enable=true

At first I encountered the following error.

image

Then I added hadoop-aws-2.7.0.jar to the lib folder. This time I saw another error as shown below.

image

I may try to add JAR files manually but concern if I made a mistake.

Cheers,
Jaehyeon

@jaehyeon-kim jaehyeon-kim changed the title Fails to start the serve Fails to start the server Oct 15, 2021
@ismailsimsek
Copy link
Member

it seems like it was missing few aws dependency
could you please use the latest release and try again?

@jaehyeon-kim
Copy link
Author

Hi

It works fine when I checked with debezium/example-postgres:1.7.0.Final as the data source.

Since it fails to create tables because of nested data as shown below, I added extra config, which is indicated by your upcoming blog post.

image

# enable event schemas
debezium.format.value.schemas.enable=true
debezium.format.value=json
# complex nested data types are not supported, do event flattening. unwrap message!
debezium.transforms=unwrap
debezium.transforms.unwrap.type=io.debezium.transforms.ExtractNewRecordState
debezium.transforms.unwrap.add.fields=op,table,source.ts_ms,db
debezium.transforms.unwrap.delete.handling.mode=rewrite
debezium.transforms.unwrap.drop.tombstones=true

Also I disabled the minio specific setting.

# debezium.sink.iceberg.fs.s3a.endpoint=http://localhost:9000 # minio specific setting

At least I can get started. Thank you so much!

Cheers,
Jaehyeon

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

No branches or pull requests

2 participants