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

   ### 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
   
   Error when running start-seatunnel-spark-connector-v2.sh
   
   ### SeaTunnel Version
   
   2.3.0-beta
   
   ### SeaTunnel Config
   
   ```conf
   env {
         spark.app.name = '"${jobName}"'
         spark.executor.instances = 2
         spark.executor.cores = 1
         spark.executor.memory = 1g
         spark.executor.memoryOverhead=2g
   }
   
   source {
       jdbc {
             driver = "com.mysql.jdbc.Driver"
             connection_check_timeout_sec = 100
             url = "'"${TidbOdsUrl}"'"
             user = "'"${TidbOdsUser}"'"
             password = "'"${TidbOdsPassword}"'"
             query = "select * from '${sourceBase}.${sourceTable}'"
             result_table_name = "'"${resultTable}"'"
       }
   }
   
   transform {
   
   }
   
   sink {
       jdbc {
             driver = "com.mysql.jdbc.Driver"
             url = "'"${DorisOdsUrl}"'"
             user = "'"${DorisOdsUser}"'"
             password = "'"${DorisOdsPassword}"'"
             query = "insert into '${sinkBase}.${sinkTable}' as select * from 
'${resultTable}'"
       }
   
   }
   ```
   
   
   ### Running Command
   
   ```shell
   sh -x /service/software/seatunnel/bin/start-seatunnel-spark-connector-v2.sh 
--queue root.users.bzbd_batch --master yarn --deploy-mode cluster --config 
"${filePath}/${jobName}".conf
   ```
   
   
   ### Error Exception
   
   ```log
   + set -eu
        + 
PRG=/service/software/seatunnel/bin/start-seatunnel-spark-connector-v2.sh
        + '[' -h 
/service/software/seatunnel/bin/start-seatunnel-spark-connector-v2.sh ']'
        ++ dirname 
/service/software/seatunnel/bin/start-seatunnel-spark-connector-v2.sh
        + PRG_DIR=/service/software/seatunnel/bin
        ++ cd /service/software/seatunnel/bin/..
        ++ pwd
        + APP_DIR=/service/software/seatunnel
        + CONF_DIR=/service/software/seatunnel/config
        + APP_JAR=/service/software/seatunnel/lib/seatunnel-spark-starter.jar
        + APP_MAIN=org.apache.seatunnel.core.starter.spark.SparkStarter
        + '[' -f /service/software/seatunnel/config/seatunnel-env.sh ']'
        + . /service/software/seatunnel/config/seatunnel-env.sh
        ++ SPARK_HOME=/opt/cloudera/parcels/CDH/lib/spark
        ++ FLINK_HOME=/opt/flink
   [INFO] 2022-11-17 17:55:59.214  - 
[taskAppId=TASK-10606-32219715-46178268]:[128] -  -> ++ export 
SEATUNNEL_PRINT_ASCII_LOGO=true
        ++ SEATUNNEL_PRINT_ASCII_LOGO=true
        + '[' 8 == 0 ']'
        + args='--queue root.users.bzbd_batch --master yarn --deploy-mode 
cluster --config /tmp/waterdrop/jobTask/tidb.conf'
        ++ java -cp /service/software/seatunnel/lib/seatunnel-spark-starter.jar 
org.apache.seatunnel.core.starter.spark.SparkStarter --queue 
root.users.bzbd_batch --master yarn --deploy-mode cluster --config 
/tmp/waterdrop/jobTask/tidb.conf
        log4j:WARN No appenders could be found for logger 
(org.apache.seatunnel.core.starter.utils.CompressionUtils).
        log4j:WARN Please initialize the log4j system properly.
        log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig 
for more info.
        Exception in thread "main" java.nio.file.AccessDeniedException: 
/service/software/seatunnel/plugins.tar.gz
                at 
sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
                at 
sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
                at 
sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
                at 
sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
                at 
java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)
                at java.nio.file.Files.newOutputStream(Files.java:216)
                at 
org.apache.seatunnel.core.starter.utils.CompressionUtils.tarGzip(CompressionUtils.java:60)
                at 
org.apache.seatunnel.core.starter.spark.SparkStarter$ClusterModeSparkStarter.buildCommands(SparkStarter.java:361)
                at 
org.apache.seatunnel.core.starter.spark.SparkStarter.main(SparkStarter.java:97)
        + CMD=
        + EXIT_CODE=1
        + '[' 1 -eq 234 ']'
        + '[' 1 -eq 0 ']'
        + echo ''
        
        + exit 1
   ```
   
   
   ### Flink or Spark Version
   
   spark
   
   ### Java or Scala Version
   
   java
   
   ### Screenshots
   
   
![image](https://user-images.githubusercontent.com/30864196/202417509-40f1307f-f952-4e95-adfd-2bc7c1dcf037.png)
   
   
   ### 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