Harish Sharma
08/15/2025, 6:39 AMLeonard Xu
08/15/2025, 8:41 AMHarish Sharma
08/15/2025, 8:42 AMHarish Sharma
08/15/2025, 11:11 AM025-08-15 16:39:44,087 INFO org.apache.flink.runtime.jobmaster.JobMaster [] - Trying to recover from a global failure.
org.apache.flink.util.FlinkException: Global failure triggered by OperatorCoordinator for 'Source: Flink CDC Event Source: postgres -> SchemaOperator -> PrePartition' (operator 9899a42c64d67ef3172b7e3be3c1bbb9).
at org.apache.flink.runtime.operators.coordination.OperatorCoordinatorHolder$LazyInitializedCoordinatorContext.failJob(OperatorCoordinatorHolder.java:651) ~[flink-dist-1.20.1.jar:1.20.1]
at org.apache.flink.cdc.runtime.operators.schema.common.SchemaRegistry.failJob(SchemaRegistry.java:392) ~[?:?]
at org.apache.flink.cdc.runtime.operators.schema.regular.SchemaCoordinator.lambda$startSchemaChangesEvolve$1(SchemaCoordinator.java:249) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
at java.lang.Thread.run(Thread.java:834) ~[?:?]
Caused by: org.apache.flink.util.FlinkRuntimeException: Failed to apply schema change event.
... 6 more
Caused by: org.apache.flink.cdc.common.exceptions.SchemaEvolveException: software.amazon.awssdk.core.exception.SdkClientException: Unable to load credentials from any of the providers in the chain AwsCredentialsProviderChain(credentialsProviders=[SystemPropertyCredentialsProvider(), EnvironmentVariableCredentialsProvider(), WebIdentityTokenCredentialsProvider(), ProfileCredentialsProvider(profileName=dataeng, profileFile=ProfileFile(sections=[profiles, sso-session], profiles=[Profile(name=default, properties=[output, region, aws_access_key_id, aws_session_token, aws_secret_access_key]), Profile(name=plt-admin-774331681746, properties=[output, sso_region, sso_start_url, sso_role_name, region, sso_account_id]), Profile(name=dataeng, properties=[output, sso_region, sso_start_url, sso_role_name, region, sso_account_id])])), ContainerCredentialsProvider(), InstanceProfileCredentialsProvider()]) : [SystemPropertyCredentialsProvider(): Unable to load credentials from system settings. Access key must be specified either via environment variable (AWS_ACCESS_KEY_ID) or system property (aws.accessKeyId)., EnvironmentVariableCredentialsProvider(): Unable to load credentials from system settings. Access key must be specified either via environment variable (AWS_ACCESS_KEY_ID) or system property (aws.accessKeyId)., WebIdentityTokenCredentialsProvider(): Either the environment variable AWS_WEB_IDENTITY_TOKEN_FILE or the javaproperty aws.webIdentityTokenFile must be set., ProfileCredentialsProvider(profileName=dataeng, profileFile=ProfileFile(sections=[profiles, sso-session], profiles=[Profile(name=default, properties=[output, region, aws_access_key_id, aws_session_token, aws_secret_access_key]), Profile(name=plt-admin-774331681746, properties=[output, sso_region, sso_start_url, sso_role_name, region, sso_account_id]), Profile(name=dataeng, properties=[output, sso_region, sso_start_url, sso_role_name, region, sso_account_id])])): Text '2025-08-15T19:08:15UTC' could not be parsed at index 19, ContainerCredentialsProvider(): Cannot fetch credentials from container - neither AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI environment variables are set., InstanceProfileCredentialsProvider(): Failed to load credentials from IMDS.]
at org.apache.flink.cdc.connectors.iceberg.sink.IcebergMetadataApplier.applyCreateTable(IcebergMetadataApplier.java:164) ~[?:?]
at org.apache.flink.cdc.connectors.iceberg.sink.IcebergMetadataApplier.lambda$applySchemaChange$2(IcebergMetadataApplier.java:111) ~[?:?]
at org.apache.flink.cdc.common.event.visitor.SchemaChangeEventVisitor.visit(SchemaChangeEventVisitor.java:57) ~[?:?]
at org.apache.flink.cdc.connectors.iceberg.sink.IcebergMetadataApplier.applySchemaChange(IcebergMetadataApplier.java:100) ~[?:?]
at org.apache.flink.cdc.runtime.operators.schema.regular.SchemaCoordinator.applyAndUpdateEvolvedSchemaChange(SchemaCoordinator.java:437) ~[?:?]
at org.apache.flink.cdc.runtime.operators.schema.regular.SchemaCoordinator.applySchemaChange(SchemaCoordinator.java:406) ~[?:?]
at org.apache.flink.cdc.runtime.operators.schema.regular.SchemaCoordinator.lambda$startSchemaChangesEvolve$1(SchemaCoordinator.java:247) ~[?:?]
... 5 more
Caused by: software.amazon.awssdk.core.exception.SdkClientException: Unable to load credentials from any of the providers in the chain AwsCredentialsProviderChain(credentialsProviders=[SystemPropertyCredentialsProvider(), EnvironmentVariableCredentialsProvider(), WebIdentityTokenCredentialsProvider(), ProfileCredentialsProvider(profileName=dataeng, profileFile=ProfileFile(sections=[profiles, sso-session], profiles=[Profile(name=default, properties=[output, region, aws_access_key_id, aws_session_token, aws_secret_access_key]), Profile(name=plt-admin-774331681746, properties=[output, sso_region, sso_start_url, sso_role_name, region, sso_account_id]), Profile(name=dataeng, properties=[output, sso_region, sso_start_url, sso_role_name, region, sso_account_id])])), ContainerCredentialsProvider(), InstanceProfileCredentialsProvider()]) : [SystemPropertyCredentialsProvider(): Unable to load credentials from system settings. Access key must be specified either via environment variable (AWS_ACCESS_KEY_ID) or system property (aws.accessKeyId)., EnvironmentVariableCredentialsProvider(): Unable to load credentials from system settings. Access key must be specified either via environment variable (AWS_ACCESS_KEY_ID) or system property (aws.accessKeyId)., WebIdentityTokenCredentialsProvider(): Either the environment variable AWS_WEB_IDENTITY_TOKEN_FILE or the javaproperty aws.webIdentityTokenFile must be set., ProfileCredentialsProvider(profileName=dataeng, profileFile=ProfileFile(sections=[profiles, sso-session], profiles=[Profile(name=default, properties=[output, region, aws_access_key_id, aws_session_token, aws_secret_access_key]), Profile(name=plt-admin-774331681746, properties=[output, sso_region, sso_start_url, sso_role_name, region, sso_account_id]), Profile(name=dataeng, properties=[output, sso_region, sso_start_url, sso_role_name, region, sso_account_id])])): Text '2025-08-15T19:08:15UTC' could not be parsed at index 19, ContainerCredentialsProvider(): Cannot fetch credentials from container - neither AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI environment variables are set., InstanceProfileCredentialsProvider(): Failed to load credentials from IMDS.]
at software.amazon.awssdk.core.exception.SdkClientException$BuilderImpl.build(SdkClientException.java:111) ~[iceberg-aws-bundle-1.9.1.jar:?]
at software.amazon.awssdk.auth.credentials.AwsCredentialsProviderChain.resolveCredentials(AwsCredentialsProviderChain.java:130) ~[iceberg-aws-bundle-1.9.1.jar:?]
at software.amazon.awssdk.auth.credentials.internal.LazyAwsCredentialsProvider.resolveCredentials(LazyAwsCredentialsProvider.java:45) ~[iceberg-aws-bundle-1.9.1.jar:?]
at software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider.resolveCredentials(DefaultCredentialsProvider.java:129) ~[iceberg-aws-bundle-1.9.1.jar:?]
at software.amazon.awssdk.auth.credentials.AwsCredentialsProvider.resolveIdentity(AwsCredentialsProvider.java:54) ~[iceberg-aws-bundle-1.9.1.jar:?]
at software.amazon.awssdk.services.glue.auth.scheme.internal.GlueAuthSchemeInterceptor.lambda$trySelectAuthScheme$4(GlueAuthSchemeInterceptor.java:132) ~[iceberg-aws-bundle-1.9.1.jar:?]
at software.amazon.awssdk.core.internal.util.MetricUtils.reportDuration(MetricUtils.java:80) ~[iceberg-aws-bundle-1.9.1.jar:?]
at software.amazon.awssdk.services.glue.auth.scheme.internal.GlueAuthSchemeInterceptor.trySelectAuthScheme(GlueAuthSchemeInterceptor.java:132) ~[iceberg-aws-bundle-1.9.1.jar:?]
at software.amazon.awssdk.services.glue.auth.scheme.internal.GlueAuthSchemeInterceptor.selectAuthScheme(GlueAuthSchemeInterceptor.java:81) ~[iceberg-aws-bundle-1.9.1.jar:?]
at software.amazon.awssdk.services.glue.auth.scheme.internal.GlueAuthSchemeInterceptor.beforeExecution(GlueAuthSchemeInterceptor.java:61) ~[iceberg-aws-bundle-1.9.1.jar:?]
at software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain.lambda$beforeExecution$1(ExecutionInterceptorChain.java:59) ~[iceberg-aws-bundle-1.9.1.jar:?]
at java.util.ArrayList.forEach(ArrayList.java:1540) ~[?:?]
at software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain.beforeExecution(ExecutionInterceptorChain.java:59) ~[iceberg-aws-bundle-1.9.1.jar:?]
at software.amazon.awssdk.awscore.internal.AwsExecutionContextBuilder.runInitialInterceptors(AwsExecutionContextBuilder.java:248) ~[iceberg-aws-bundle-1.9.1.jar:?]
at software.amazon.awssdk.awscore.internal.AwsExecutionContextBuilder.invokeInterceptorsAndCreateExecutionContext(AwsExecutionContextBuilder.java:138) ~[iceberg-aws-bundle-1.9.1.jar:?]
at software.amazon.awssdk.awscore.client.handler.AwsSyncClientHandler.invokeInterceptorsAndCreateExecutionContext(AwsSyncClientHandler.java:67) ~[iceberg-aws-bundle-1.9.1.jar:?]
at software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler.lambda$execute$1(BaseSyncClientHandler.java:76) ~[iceberg-aws-bundle-1.9.1.jar:?]
at software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler.measureApiCallSuccess(BaseSyncClientHandler.java:182) ~[iceberg-aws-bundle-1.9.1.jar:?]
at software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler.execute(BaseSyncClientHandler.java:74) ~[iceberg-aws-bundle-1.9.1.jar:?]
at software.amazon.awssdk.core.client.handler.SdkSyncClientHandler.execute(SdkSyncClientHandler.java:45) ~[iceberg-aws-bundle-1.9.1.jar:?]
at software.amazon.awssdk.awscore.client.handler.AwsSyncClientHandler.execute(AwsSyncClientHandler.java:53) ~[iceberg-aws-bundle-1.9.1.jar:?]
at software.amazon.awssdk.services.glue.DefaultGlueClient.getTable(DefaultGlueClient.java:10007) ~[iceberg-aws-bundle-1.9.1.jar:?]
at org.apache.iceberg.aws.glue.GlueTableOperations.getGlueTable(GlueTableOperations.java:279) ~[iceberg-flink-runtime-1.20-1.9.1.jar:?]
at org.apache.iceberg.aws.glue.GlueTableOperations.doRefresh(GlueTableOperations.java:128) ~[iceberg-flink-runtime-1.20-1.9.1.jar:?]
at org.apache.iceberg.BaseMetastoreTableOperations.refresh(BaseMetastoreTableOperations.java:90) ~[iceberg-flink-runtime-1.20-1.9.1.jar:?]
at org.apache.iceberg.BaseMetastoreTableOperations.current(BaseMetastoreTableOperations.java:73) ~[iceberg-flink-runtime-1.20-1.9.1.jar:?]
at org.apache.iceberg.BaseMetastoreCatalog.loadTable(BaseMetastoreCatalog.java:49) ~[iceberg-flink-runtime-1.20-1.9.1.jar:?]
at org.apache.iceberg.catalog.Catalog.tableExists(Catalog.java:281) ~[iceberg-flink-runtime-1.20-1.9.1.jar:?]
at org.apache.flink.cdc.connectors.iceberg.sink.IcebergMetadataApplier.applyCreateTable(IcebergMetadataApplier.java:160) ~[?:?]
at org.apache.flink.cdc.connectors.iceberg.sink.IcebergMetadataApplier.lambda$applySchemaChange$2(IcebergMetadataApplier.java:111) ~[?:?]
at org.apache.flink.cdc.common.event.visitor.SchemaChangeEventVisitor.visit(SchemaChangeEventVisitor.java:57) ~[?:?]
at org.apache.flink.cdc.connectors.iceberg.sink.IcebergMetadataApplier.applySchemaChange(IcebergMetadataApplier.java:100) ~[?:?]
at org.apache.flink.cdc.runtime.operators.schema.regular.SchemaCoordinator.applyAndUpdateEvolvedSchemaChange(SchemaCoordinator.java:437) ~[?:?]
at org.apache.flink.cdc.runtime.operators.schema.regular.SchemaCoordinator.applySchemaChange(SchemaCoordinator.java:406) ~[?:?]
at org.apache.flink.cdc.runtime.operators.schema.regular.SchemaCoordinator.lambda$startSchemaChangesEvolve$1(SchemaCoordinator.java:247) ~[?:?]
... 5 moreHarish Sharma
08/15/2025, 11:11 AMsource:
type: postgres
hostname: localhost
port: 5432
username: postgres
password: postgres
tables: postgres.public.\.*
tables.exclude: postgres.public.shipments
slot.name: flink_cdc_slot # replication slot name (auto-created if absent)
scan.startup.mode: initial # snapshot then stream
sink:
type: iceberg
name: Iceberg Sink
catalog.properties.db: default
catalog.properties.table: test_s3table
catalog.properties.warehouse: s3://hk-datapoc-pro-s3table/myiceberg
catalog.properties.io-impl: org.apache.iceberg.aws.s3.S3FileIO
catalog.properties.catalog-impl: org.apache.iceberg.aws.glue.GlueCatalog
pipeline:
name: PG ➜ Iceberg (local)
parallelism: 2
env:
AWS_USE_INSTANCE_PROFILE: "true"
AWS_REGION: us-west-2Harish Sharma
08/18/2025, 6:07 AMHarish Sharma
08/19/2025, 7:46 AMsoumilshah1995
11/08/2025, 12:06 PMHarish Sharma
11/08/2025, 12:49 PMHarish Sharma
11/08/2025, 12:50 PM