wangsvip commented on issue #3458:
URL: 
https://github.com/apache/incubator-seatunnel/issues/3458#issuecomment-1321691668

   > > ### 询问前搜索
   > > 
   > > * [x]   
我在[问题](https://github.com/apache/incubator-seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)中搜索过,没有发现类似的问题。
   > > 
   > > ### 发生了什么
   > > 运行 start-seatunnel-spark-connector-v2.sh 时出错
   > > ### 海隧道版本
   > > 2.3.0-测试版
   > > ### 海隧道配置
   > > ```
   > > 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}'"
   > >     }
   > > 
   > > }
   > > ```
   > > 
   > > 
   > >     
   > >       
   > >     
   > > 
   > >       
   > >     
   > > 
   > >     
   > >   
   > > ### 运行命令
   > > ```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
   > > ```
   > > 
   > > 
   > >     
   > >       
   > >     
   > > 
   > >       
   > >     
   > > 
   > >     
   > >   
   > > ### 错误异常
   > > ```
   > > + 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 或 Spark 版本
   > > 火花
   > > ### Java 或 Scala 版本
   > > 爪哇
   > > ### 截图
   > > 
![图片](https://user-images.githubusercontent.com/30864196/202417509-40f1307f-f952-4e95-adfd-2bc7c1dcf037.png)
   > > ### 你愿意提交PR吗?
   > > 
   > > * [ ]   是的,我愿意提交 PR!
   > > 
   > > ### 行为守则
   > > 
   > > * [ ]   
我同意遵守该项目的[行为准则](https://www.apache.org/foundation/policies/conduct)
   > 
   > 在第一次运行之前,必须先执行,如下: tar -zcvf /service/software/seatunnel/plugins.tar.gz 
/service/software/seatunnel/plugins and chmod 777 
/service/software/seatunnel/plugins.tar.gz
   
   This can solve the problem, chmod 777 should be written in the official 
document here


-- 
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