You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@inlong.apache.org by "lordcheng10 (via GitHub)" <gi...@apache.org> on 2023/02/23 07:09:29 UTC

[GitHub] [inlong] lordcheng10 opened a new issue, #7412: [Bug][Sort] Fix java.lang.NoClassDefFoundError for com.amazonaws and com.fasterxml.jackson.core

lordcheng10 opened a new issue, #7412:
URL: https://github.com/apache/inlong/issues/7412

   ### What happened
   
   When iceberg is used as the target source, java.lang.NoClassDefFoundError will be reported after starting the task:
   
   ```
   2023-02-17 10:28:40.553 [flink-akka.actor.default-dispatcher-27] INFO  org.apache.flink.runtime.executiongraph.ExecutionGraph - DynamicSchemaHandleOperator (1/1) (69c8d5bfe7432ff0fb330799caf9fe63) switched from INITIALIZING to FAILED on cql-0mmcgg0c-666096-taskmanager-1-1 @ 9.166.0.206 (dataPort=46585).
   java.lang.NoClassDefFoundError: com/amazonaws/auth/BasicAWSCredentials
   	at org.apache.inlong.sort.iceberg.shaded.org.apache.inlong.sort.base.dirty.sink.s3.S3DirtySink.open(S3DirtySink.java:94) ~[pool-1-thread-4-1676600553196-test-sort-connector-iceberg-dlc-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
   	at org.apache.inlong.sort.iceberg.shaded.org.apache.inlong.sort.base.dirty.DirtySinkHelper.open(DirtySinkHelper.java:67) ~[pool-1-thread-4-1676600553196-test-sort-connector-iceberg-dlc-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
   	at org.apache.inlong.sort.iceberg.sink.multiple.DynamicSchemaHandleOperator.open(DynamicSchemaHandleOperator.java:165) ~[pool-1-thread-4-1676600553196-test-sort-connector-iceberg-dlc-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
   	at org.apache.flink.streaming.runtime.tasks.OperatorChain.initializeStateAndOpenOperators(OperatorChain.java:442) ~[flink-dist_2.11-1.13.6.jar:1.13.6]
   	at org.apache.flink.streaming.runtime.tasks.StreamTask.restoreGates(StreamTask.java:585) ~[flink-dist_2.11-1.13.6.jar:1.13.6]
   	at org.apache.flink.streaming.runtime.tasks.StreamTaskActionExecutor$1.call(StreamTaskActionExecutor.java:55) ~[flink-dist_2.11-1.13.6.jar:1.13.6]
   	at org.apache.flink.streaming.runtime.tasks.StreamTask.executeRestore(StreamTask.java:565) ~[flink-dist_2.11-1.13.6.jar:1.13.6]
   	at org.apache.flink.streaming.runtime.tasks.StreamTask.runWithCleanUpOnFail(StreamTask.java:650) ~[flink-dist_2.11-1.13.6.jar:1.13.6]
   	at org.apache.flink.streaming.runtime.tasks.StreamTask.restore(StreamTask.java:540) ~[flink-dist_2.11-1.13.6.jar:1.13.6]
   	at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:759) ~[flink-dist_2.11-1.13.6.jar:1.13.6]
   	at org.apache.flink.runtime.taskmanager.Task.run(Task.java:566) ~[flink-dist_2.11-1.13.6.jar:1.13.6]
   	at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_332]
   ```
   
   ```
   2023-02-17 11:31:44.560 [flink-akka.actor.default-dispatcher-4] INFO  org.apache.flink.runtime.executiongraph.ExecutionGraph - DynamicSchemaHandleOperator (1/1) (1f1599f95bcee82ca0448a6c8015640d) switched from INITIALIZING to FAILED on cql-2jav5kv1-666163-taskmanager-1-1 @ 9.166.0.221 (dataPort=44341).
   java.lang.RuntimeException: com.amazonaws.SdkClientException: Error while loading partitions file from com/amazonaws/partitions/endpoints.json
   	at org.apache.inlong.sort.iceberg.shaded.org.apache.inlong.sort.base.dirty.DirtySinkHelper.open(DirtySinkHelper.java:69) ~[pool-1-thread-8-1676604529599-test-sort-connector-iceberg-dlc-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
   	at org.apache.inlong.sort.iceberg.sink.multiple.DynamicSchemaHandleOperator.open(DynamicSchemaHandleOperator.java:163) ~[pool-1-thread-8-1676604529599-test-sort-connector-iceberg-dlc-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
   	at org.apache.flink.streaming.runtime.tasks.OperatorChain.initializeStateAndOpenOperators(OperatorChain.java:442) ~[flink-dist_2.11-1.13.6.jar:1.13.6]
   	at org.apache.flink.streaming.runtime.tasks.StreamTask.restoreGates(StreamTask.java:585) ~[flink-dist_2.11-1.13.6.jar:1.13.6]
   	at org.apache.flink.streaming.runtime.tasks.StreamTaskActionExecutor$1.call(StreamTaskActionExecutor.java:55) ~[flink-dist_2.11-1.13.6.jar:1.13.6]
   	at org.apache.flink.streaming.runtime.tasks.StreamTask.executeRestore(StreamTask.java:565) ~[flink-dist_2.11-1.13.6.jar:1.13.6]
   	at org.apache.flink.streaming.runtime.tasks.StreamTask.runWithCleanUpOnFail(StreamTask.java:650) ~[flink-dist_2.11-1.13.6.jar:1.13.6]
   	at org.apache.flink.streaming.runtime.tasks.StreamTask.restore(StreamTask.java:540) ~[flink-dist_2.11-1.13.6.jar:1.13.6]
   	at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:759) ~[flink-dist_2.11-1.13.6.jar:1.13.6]
   	at org.apache.flink.runtime.taskmanager.Task.run(Task.java:566) ~[flink-dist_2.11-1.13.6.jar:1.13.6]
   	at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_332]
   Caused by: com.amazonaws.SdkClientException: Error while loading partitions file from com/amazonaws/partitions/endpoints.json
   	at com.amazonaws.partitions.PartitionsLoader.loadPartitionFromStream(PartitionsLoader.java:95) ~[pool-1-thread-8-1676604529599-test-sort-connector-iceberg-dlc-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
   	at com.amazonaws.partitions.PartitionsLoader.build(PartitionsLoader.java:84) ~[pool-1-thread-8-1676604529599-test-sort-connector-iceberg-dlc-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
   	at com.amazonaws.regions.RegionMetadataFactory.create(RegionMetadataFactory.java:30) ~[pool-1-thread-8-1676604529599-test-sort-connector-iceberg-dlc-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
   	at com.amazonaws.regions.RegionUtils.initialize(RegionUtils.java:64) ~[pool-1-thread-8-1676604529599-test-sort-connector-iceberg-dlc-1.5.0-SNAPSHOT.jar:1.5.0-SNAPSHOT]
   ```
   
   ```
   2023-02-17 14:57:13.576 [flink-akka.actor.default-dispatcher-2] INFO  com.tencent.cloud.tstream.flink.OceanusEventListener - JobID 00000000000000000000000000000000 changed to status RESTARTING at timestamp 1676617033571 
   with error java.lang.NoClassDefFoundError: org/apache/inlong/sort/iceberg/shaded/com/fasterxml/jackson/databind/ObjectMapper
   ```
   
   ### What you expected to happen
   
   The task is running normally
   
   ### How to reproduce
   
   Start a mysql to iceberg task
   
   ### Environment
   
   _No response_
   
   ### InLong version
   
   master
   
   ### InLong Component
   
   InLong Sort
   
   ### Are you willing to submit PR?
   
   - [X] Yes, I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@inlong.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [inlong] dockerzhang closed issue #7412: [Bug][Sort] Fix dependency error: java.lang.NoClassDefFoundError

Posted by "dockerzhang (via GitHub)" <gi...@apache.org>.
dockerzhang closed issue #7412: [Bug][Sort] Fix dependency error: java.lang.NoClassDefFoundError
URL: https://github.com/apache/inlong/issues/7412


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org