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

   ### 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
   
   when develop cluster by config map using aliyun oss 
`fs.oss.credentials.provider: 
org.apache.hadoop.fs.aliyun.oss.AliyunCredentialsProvider ` 。
   error occur : class org.apache.hadoop.fs.aliyun.oss.AliyunOSSFileSystem not 
found 
   
![微信截图_20240619091601](https://github.com/apache/seatunnel/assets/5432592/2f8aaf1b-7557-4113-87b6-aff14bdbf11b)
   
   did I miss some thing?  connector-file-oss-2.3.5.jar is in connectors folder.
   
   ### SeaTunnel Version
   
   2.3.5
   
   ### SeaTunnel Config
   
   ```conf
   map config in hazelcast.yaml
   map:
       engine*:
          map-store:
            enabled: true
            initial-mode: EAGER
            factory-class-name: 
org.apache.seatunnel.engine.server.persistence.FileMapStoreFactory
            properties:
              type: hdfs
              namespace: /tmp/seatunnel/imap
              clusterName: seatunnel-cluster
              storage.type: oss
              block.size: block size(bytes)
              oss.bucket: oss://bucket name/
              fs.oss.accessKeyId: OSS access key id
              fs.oss.accessKeySecret: OSS access key secret
              fs.oss.endpoint: OSS endpoint
              fs.oss.credentials.provider: 
org.apache.hadoop.fs.aliyun.oss.AliyunCredentialsProvider
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/seatunnel-cluster.sh -d
   ```
   
   
   ### Error Exception
   
   ```log
   java.lang.RuntimeException: java.lang.ClassNotFoundException: Class 
org.apache.hadoop.fs.aliyun.oss.AliyunOSSFileSystem not found
        at 
org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2638) 
~[seatunnel-hadoop3-3.1.4-uber.jar:2.3.5]
        at 
org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:3269) 
~[seatunnel-hadoop3-3.1.4-uber.jar:2.3.5]
        at 
org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3301) 
~[seatunnel-hadoop3-3.1.4-uber.jar:2.3.5]
        at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:124) 
~[seatunnel-hadoop3-3.1.4-uber.jar:2.3.5]
        at 
org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3352) 
~[seatunnel-hadoop3-3.1.4-uber.jar:2.3.5]
        at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3320) 
~[seatunnel-hadoop3-3.1.4-uber.jar:2.3.5]
        at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:479) 
~[seatunnel-hadoop3-3.1.4-uber.jar:2.3.5]
        at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:227) 
~[seatunnel-hadoop3-3.1.4-uber.jar:2.3.5]
        at 
org.apache.seatunnel.engine.imap.storage.file.IMapFileStorage.initialize(IMapFileStorage.java:156)
 ~[seatunnel-starter.jar:2.3.5]
        at 
org.apache.seatunnel.engine.imap.storage.file.IMapFileStorageFactory.create(IMapFileStorageFactory.java:41)
 ~[seatunnel-starter.jar:2.3.5]
        at 
org.apache.seatunnel.engine.server.persistence.FileMapStore.init(FileMapStore.java:49)
 ~[seatunnel-starter.jar:2.3.5]
        at com.hazelcast.map.impl.MapStoreWrapper.init(MapStoreWrapper.java:87) 
~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.map.impl.mapstore.BasicMapStoreContext.callLifecycleSupportInit(BasicMapStoreContext.java:164)
 ~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.map.impl.mapstore.BasicMapStoreContext.create(BasicMapStoreContext.java:137)
 ~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.map.impl.mapstore.MapStoreContextFactory.createMapStoreContext(MapStoreContextFactory.java:48)
 ~[seatunnel-starter.jar:2.3.5]
        at com.hazelcast.map.impl.MapContainer.<init>(MapContainer.java:148) 
~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.map.impl.MapServiceContextImpl.createMapContainer(MapServiceContextImpl.java:206)
 ~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.map.impl.MapServiceContextImpl.lambda$createMapConstructor$0(MapServiceContextImpl.java:197)
 ~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.internal.util.ConcurrencyUtil.getOrPutSynchronized(ConcurrencyUtil.java:140)
 ~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.map.impl.MapServiceContextImpl.getMapContainer(MapServiceContextImpl.java:288)
 ~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.map.impl.PartitionContainer.createRecordStore(PartitionContainer.java:91)
 ~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.internal.util.ConcurrencyUtil.getOrPutSynchronized(ConcurrencyUtil.java:120)
 ~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.map.impl.PartitionContainer.getRecordStore(PartitionContainer.java:153)
 ~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.map.impl.MapServiceContextImpl.getRecordStore(MapServiceContextImpl.java:491)
 ~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.map.impl.operation.MapChunk.getRecordStore(MapChunk.java:385) 
~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.map.impl.operation.MapChunk.afterRunFinal(MapChunk.java:153) 
~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.spi.impl.operationexecutor.OperationRunner.runDirect(OperationRunner.java:173)
 ~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.internal.partition.operation.MigrationOperation.runMigrationOperation(MigrationOperation.java:139)
 ~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.internal.partition.operation.MigrationOperation.doRun(MigrationOperation.java:115)
 ~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.internal.partition.operation.MigrationOperation.run(MigrationOperation.java:95)
 ~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.spi.impl.operationservice.Operation.call(Operation.java:189) 
~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.call(OperationRunnerImpl.java:273)
 ~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:248)
 ~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:471)
 ~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.process(OperationThread.java:197)
 ~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.process(OperationThread.java:137)
 ~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.executeRun(OperationThread.java:123)
 ~[seatunnel-starter.jar:2.3.5]
        at 
com.hazelcast.internal.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:102)
 ~[seatunnel-starter.jar:2.3.5]
   Caused by: java.lang.ClassNotFoundException: Class 
org.apache.hadoop.fs.aliyun.oss.AliyunOSSFileSystem not found
        at 
org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2542) 
~[seatunnel-hadoop3-3.1.4-uber.jar:2.3.5]
        at 
org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2636) 
~[seatunnel-hadoop3-3.1.4-uber.jar:2.3.5]
        ... 37 more
   ```
   
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to