keith002 opened a new issue, #8972:
URL: https://github.com/apache/seatunnel/issues/8972

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   Encountering issues while synchronizing from MySQL data source to S3 using 
the following configuration
   
   I also added it as requested   To use this connector you need put 
hadoop-aws-3.1.4.jar and aws-java-sdk-bundle-1.11.271.jar in 
${SEATUNNEL_HOME}/lib dir.
   
   But when executing the method, it will prompt that the corresponding package 
cannot be found
   
   ### SeaTunnel Version
   
   seatunnel 2.3.3
   
   ### SeaTunnel Config
   
   ```conf
   `env {
     # You can set flink configuration here
     execution.parallelism = 2
     job.mode = "BATCH"
   }
   
   source {
     Jdbc {
       "result_table_name": "table",
       "url": "url",
       "driver": "com.mysql.cj.jdbc.Driver",
       "connection_check_timeout_sec": 100,
       "user": "root",
       "password": "123456",
       "query": "SELECT * FROM test_table"
     }
   }
   
   transform {
   }
   
   sink {
      S3File {
       bucket = "s3a://cs"
          tmp_path = "path"
          path="/test"
          fs.s3a.endpoint="http://endpoint.cn";
          
fs.s3a.aws.credentials.provider="org.apache.hadoop.fs.s3a.SimpleAWSCredentialsProvider"
          access_key = "xxxxxxxx"
          secret_key = "xxxxxxxx"
          file_format_type = "orc"
      }
   }`
   ```
   
   ### Running Command
   
   ```shell
   The main method used  
org.apache.seatunnel.example.engine.SeaTunnelEngineExample
   ```
   
   ### Error Exception
   
   ```log
   Caused by: java.lang.ClassCastException: 
org.apache.hadoop.fs.s3a.S3AStorageStatistics cannot be cast to 
org.apache.hadoop.fs.s3a.S3AStorageStatistics
        at 
org.apache.hadoop.fs.s3a.S3AFileSystem.createStorageStatistics(S3AFileSystem.java:358)
 ~[hadoop-aws-3.1.4.jar:?]
        at 
org.apache.hadoop.fs.s3a.S3AFileSystem.<init>(S3AFileSystem.java:191) 
~[hadoop-aws-3.1.4.jar:?]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method) ~[?:1.8.0_181]
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
 ~[?:1.8.0_181]
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 ~[?:1.8.0_181]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 
~[?:1.8.0_181]
        at 
org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:133) 
~[hadoop-common-3.1.4.jar:?]
        at 
org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3302) 
~[hadoop-common-3.1.4.jar:?]
        at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:124) 
~[hadoop-common-3.1.4.jar:?]
        at 
org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3352) 
~[hadoop-common-3.1.4.jar:?]
        at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3320) 
~[hadoop-common-3.1.4.jar:?]
        at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:479) 
~[hadoop-common-3.1.4.jar:?]
        at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:227) 
~[hadoop-common-3.1.4.jar:?]
        at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:463) 
~[hadoop-common-3.1.4.jar:?]
        at org.apache.hadoop.fs.Path.getFileSystem(Path.java:361) 
~[hadoop-common-3.1.4.jar:?]
        at 
org.apache.seatunnel.shade.connector.file.org.apache.orc.OrcFile.createWriter(OrcFile.java:857)
 ~[connector-file-s3-2.3.3.jar:2.3.3]
        at 
org.apache.seatunnel.connectors.seatunnel.file.sink.writer.OrcWriteStrategy.getOrCreateWriter(OrcWriteStrategy.java:126)
 ~[connector-file-s3-2.3.3.jar:2.3.3]
        at 
org.apache.seatunnel.connectors.seatunnel.file.sink.writer.OrcWriteStrategy.write(OrcWriteStrategy.java:74)
 ~[connector-file-s3-2.3.3.jar:2.3.3]
        at 
org.apache.seatunnel.connectors.seatunnel.file.sink.BaseFileSinkWriter.write(BaseFileSinkWriter.java:126)
 ~[connector-file-s3-2.3.3.jar:2.3.3]
        at 
org.apache.seatunnel.connectors.seatunnel.file.sink.BaseFileSinkWriter.write(BaseFileSinkWriter.java:43)
 ~[connector-file-s3-2.3.3.jar:2.3.3]
        at 
org.apache.seatunnel.engine.server.task.flow.SinkFlowLifeCycle.received(SinkFlowLifeCycle.java:227)
 ~[classes/:?]
        ... 16 more
   ```
   
   ### Zeta or Flink or Spark Version
   
   Zeta 2.3.3
   
   ### Java or Scala Version
   
   java 1.8.0.181
   
   ### Screenshots
   
   <img width="782" alt="Image" 
src="https://github.com/user-attachments/assets/497459ac-bef1-432f-af6c-271110fb001b";
 />
   
   ### Are you willing to submit PR?
   
   - [ ] 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: commits-unsubscr...@seatunnel.apache.org.apache.org

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

Reply via email to