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

   ### 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
   
   in version 2.3.7, use api submit job, job run fail, error is 
java.io.FileNotFoundException: File 
ftp://10.2.13.125:21/home/uftp/mxx1018/ftp.txt does not exist, but in version 
2.3.4, the same script can run success
   
   ### SeaTunnel Version
   
   2.3.7
   
   ### SeaTunnel Config
   
   ```conf
   {
     "transform": [
       {
         "query": "select CAST(user_id AS INT) AS id,CAST(username AS STRING) 
AS name from source",
         "source_table_name": "source",
         "result_table_name": "transform1",
         "plugin_name": "Sql"
       }
     ],
     "sink": [
       {
         "password": "***",
         "batch_size": 1024,
         "driver": "com.mysql.cj.jdbc.Driver",
         "query": "insert ignore into  `sjzt`.`student_3`(`id`,`name`) 
values(?,?)",
         "source_table_name": "transform1",
         "plugin_name": "Jdbc",
         "user": "hxsjzt",
         "url": 
"jdbc:mysql://10.2.13.125:8801/sjzt?useSSL=false?rewriteBatchedStatements=true&useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true"
       }
     ],
     "source": [
       {
         "schema": {
             "fields":{
                 "user_id": "String",
                 "username": "String"
             }
         },
         "path": "/home/uftp/mxx1018/ftp.txt",
         "password": "***",
         "file_format_type": "text",
         "skip_header_row_number": "1",
         "port": 21,
         "delimiter": "\\|",
         "host": "10.2.13.125",
         "result_table_name": "source",
         "plugin_name": "FtpFile",
         "user": "uftp"
       }
     ],
     "env": {
       "job.mode": "BATCH",
       "execution.parallelism": 1
     }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   /hazelcast/rest/maps/submit-job
   ```
   
   
   ### Error Exception
   
   ```log
   08:56:16.101 [hz.main.generic-operation.thread-3] ERROR 
org.apache.seatunnel.engine.server.dag.physical.PhysicalVertex - Job 
SeaTunnel_Job (901029360345153537), Pipeline: [(1/1)], task: [pipeline-1 
[Source[0]-FtpFile]-SourceTask (1/1)], taskGroupLocation: 
[TaskGroupLocation{jobId=901029360345153537, pipelineId=1, taskGroupId=30000}] 
end with state FAILED and Exception: 
org.apache.seatunnel.common.exception.SeaTunnelRuntimeException: 
ErrorCode:[COMMON-01], ErrorDescription:[SeaTunnel read file 
'ftp://10.2.13.125:21/home/uftp/mxx1018/ftp.txt' failed.]
        at 
org.apache.seatunnel.common.exception.CommonError.fileOperationFailed(CommonError.java:68)
        at 
org.apache.seatunnel.connectors.seatunnel.file.source.BaseFileSourceReader.pollNext(BaseFileSourceReader.java:65)
        at 
org.apache.seatunnel.engine.server.task.flow.SourceFlowLifeCycle.collect(SourceFlowLifeCycle.java:156)
        at 
org.apache.seatunnel.engine.server.task.SourceSeaTunnelTask.collect(SourceSeaTunnelTask.java:127)
        at 
org.apache.seatunnel.engine.server.task.SeaTunnelTask.stateProcess(SeaTunnelTask.java:168)
        at 
org.apache.seatunnel.engine.server.task.SourceSeaTunnelTask.call(SourceSeaTunnelTask.java:132)
        at 
org.apache.seatunnel.engine.server.TaskExecutionService$BlockingWorker.run(TaskExecutionService.java:717)
        at 
org.apache.seatunnel.engine.server.TaskExecutionService$NamedTaskWrapper.run(TaskExecutionService.java:1039)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
   Caused by: java.io.FileNotFoundException: File 
ftp://10.2.13.125:21/home/uftp/mxx1018/ftp.txt does not exist.
        at 
org.apache.seatunnel.connectors.seatunnel.file.ftp.system.SeaTunnelFTPFileSystem.getFileStatus(SeaTunnelFTPFileSystem.java:486)
        at 
org.apache.seatunnel.connectors.seatunnel.file.ftp.system.SeaTunnelFTPFileSystem.open(SeaTunnelFTPFileSystem.java:225)
        at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:899)
        at 
org.apache.seatunnel.connectors.seatunnel.file.hadoop.HadoopFileSystemProxy.getInputStream(HadoopFileSystemProxy.java:166)
        at 
org.apache.seatunnel.connectors.seatunnel.file.source.reader.TextReadStrategy.read(TextReadStrategy.java:77)
        at 
org.apache.seatunnel.connectors.seatunnel.file.source.BaseFileSourceReader.pollNext(BaseFileSourceReader.java:63)
        ... 11 more
   ```
   
   
   ### Zeta or Flink or Spark Version
   
   zeta
   
   ### Java or Scala Version
   
   jdk-1.8
   
   ### Screenshots
   
   
![image](https://github.com/user-attachments/assets/08ebe193-3e59-4d46-8cd4-3dd4204b8597)
   
   
   ### 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: [email protected]

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

Reply via email to