BenJFan opened a new issue, #1733:
URL: https://github.com/apache/incubator-seatunnel/issues/1733

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   Can't run SeaTunnel program on spark cluster, which spark deployment method 
is standalone, and use cluster mode to submit. The reason maybe is 
`plugins.tar.gz` have different path between client mode and cluster mode.
   
   ### SeaTunnel Version
   
   dev
   
   ### SeaTunnel Config
   
   ```conf
   env {
   
     spark.app.name = "SeaTunnel"
     spark.executor.instances = 2
     spark.executor.cores = 1
     spark.executor.memory = "1g"
   }
   
   source {
     # This is a example input plugin **only for test and demonstrate the 
feature input plugin**
     Fake {
       result_table_name = "my_dataset"
     }
   
   }
   
   transform {
    
   }
   
   sink {
     # choose stdout output plugin to output data to console
     Console {}
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/start-seatunnel-spark.sh --config ~/spark.batch.conf -m 
spark://localhost:7077 -e cluster
   ```
   
   
   ### Error Exception
   
   ```log
   2022-04-24 16:38:57 INFO  BaseTaskExecuteCommand:136 - preparing cluster 
mode work dir files...
   2022-04-24 16:38:57 WARN  BaseTaskExecuteCommand:140 -        list file: 
/Users/fanjia/Tool/spark-2.4.0-bin-hadoop2.6/work/driver-20220424163856-0002/./stdout
 
   2022-04-24 16:38:57 WARN  BaseTaskExecuteCommand:140 -        list file: 
/Users/fanjia/Tool/spark-2.4.0-bin-hadoop2.6/work/driver-20220424163856-0002/./stderr
 
   2022-04-24 16:38:57 WARN  BaseTaskExecuteCommand:140 -        list file: 
/Users/fanjia/Tool/spark-2.4.0-bin-hadoop2.6/work/driver-20220424163856-0002/./seatunnel-core-spark.jar
 
   2022-04-24 16:38:57 INFO  CompressionUtils:146 - Unzipping 
/Users/fanjia/Tool/spark-2.4.0-bin-hadoop2.6/work/driver-20220424163856-0002/plugins.tar.gz
 to dir 
/Users/fanjia/Tool/spark-2.4.0-bin-hadoop2.6/work/driver-20220424163856-0002/..
   2022-04-24 16:38:57 ERROR BaseTaskExecuteCommand:149 - failed to decompress 
plugins.tar.gz
   java.io.FileNotFoundException: plugins.tar.gz (No such file or directory)
        at java.base/java.io.FileInputStream.open0(Native Method)
        at java.base/java.io.FileInputStream.open(FileInputStream.java:216)
        at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
        at 
org.apache.seatunnel.utils.CompressionUtils.unGzip(CompressionUtils.java:150)
        at 
org.apache.seatunnel.command.BaseTaskExecuteCommand.deployModeCheck(BaseTaskExecuteCommand.java:146)
        at 
org.apache.seatunnel.command.BaseTaskExecuteCommand.baseCheckConfig(BaseTaskExecuteCommand.java:59)
        at 
org.apache.seatunnel.command.spark.SparkTaskExecuteCommand.execute(SparkTaskExecuteCommand.java:50)
        at 
org.apache.seatunnel.command.spark.SparkTaskExecuteCommand.execute(SparkTaskExecuteCommand.java:36)
        at org.apache.seatunnel.Seatunnel.run(Seatunnel.java:48)
        at org.apache.seatunnel.SeatunnelSpark.main(SeatunnelSpark.java:27)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at 
org.apache.spark.deploy.worker.DriverWrapper$.main(DriverWrapper.scala:65)
        at 
org.apache.spark.deploy.worker.DriverWrapper.main(DriverWrapper.scala)
   2022-04-24 16:38:57 INFO  SparkContext:54 - Invoking stop() from shutdown 
hook
   ```
   
   
   ### Flink or Spark Version
   
   spark 2.4.0
   
   ### 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