You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "kalencaya (via GitHub)" <gi...@apache.org> on 2023/08/10 01:53:41 UTC

[GitHub] [seatunnel] kalencaya opened a new issue, #5256: [Bug] [plugins] install-plugin.sh run failed within container caused by absence of .mvn directory

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

   ### 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
   
   `${SEATUNNEL_HOME}/bin/install-plugin.sh` shell runs successfully on bare metal machine but failed on docker container
   
   ### SeaTunnel Version
   
   2.3.1
   
   ### SeaTunnel Config
   
   ```conf
   not needed
   ```
   
   
   ### Running Command
   
   ```shell
   `ENV SEATUNNEL_VERSION=2.3.1
   ENV SEATUNNEL_HOME=/opt/seatunnel
   
   ARG TAR_FILE=apache-seatunnel-incubating-${SEATUNNEL_VERSION}-bin.tar.gz
   
   
   COPY $TAR_FILE $SEATUNNEL_HOME/$TAR_FILE
   RUN cd $SEATUNNEL_HOME ; \
       tar -xzvf $TAR_FILE ; \
       cp -r apache-seatunnel-incubating-${SEATUNNEL_VERSION}/* $SEATUNNEL_HOME
   
   # forked from seatunnel k8s quick start
   RUN #wget https://archive.apache.org/dist/incubator/seatunnel/${SEATUNNEL_VERSION}/$TAR_FILE ; \
   #    tar -xzvf $TAR_FILE ; \
   #    cp -r apache-seatunnel-incubating-${SEATUNNEL_VERSION}/* $SEATUNNEL_HOME
   
   RUN cd $SEATUNNEL_HOME ; \
       sh -x bin/install-plugin.sh ${SEATUNNEL_VERSION}
   `
   ```
   
   
   ### Error Exception
   
   ```log
   > [build 6/6] RUN cd /opt/seatunnel ;     sh -x bin/install-plugin.sh 2.3.1:
   #13 0.193 + dirname bin/install-plugin.sh
   #13 0.194 + cd bin
   #13 0.194 + cd ../
   #13 0.194 + pwd
   #13 0.194 Install hadoop shade jar, usage version is 2.3.1
   #13 0.194 + SEATUNNEL_HOME=/opt/seatunnel
   #13 0.194 + version=2.3.1
   #13 0.194 + [ -n 2.3.1 ]
   #13 0.194 + version=2.3.1
   #13 0.194 + echo Install hadoop shade jar, usage version is 2.3.1
   #13 0.194 + /opt/seatunnel/mvnw dependency:get -DgroupId=org.apache.seatunnel -Dclassifier=optional -DartifactId=seatunnel-hadoop3-3.1.4-uber -Dversion=2.3.1 -Ddest=/opt/seatunnel/lib
   #13 0.198 /opt/seatunnel/mvnw: 223: cannot open /opt/seatunnel/.mvn/wrapper/maven-wrapper.properties: No such file
   #13 0.201 /opt/seatunnel/.mvn/wrapper/maven-wrapper.jar: No such file or directory
   #13 0.247 Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
   #13 0.247 Caused by: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain
   #13 0.252 Install SeaTunnel connectors plugins, usage version is 2.3.1
   #13 0.252 + echo Install SeaTunnel connectors plugins, usage version is 2.3.1
   #13 0.252 + [ ! -d /opt/seatunnel/connectors ]
   #13 0.252 + [ ! -d /opt/seatunnel/connectors/seatunnel ]
   #13 0.252 + read line
   #13 0.253 bin/install-plugin.sh: 56: Bad substitution
   ------
   executor failed running [/bin/sh -c cd $SEATUNNEL_HOME ;     sh -x bin/install-plugin.sh ${SEATUNNEL_VERSION}]: exit code: 2
   
   ```
   ```
   
   
   ### 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: commits-unsubscribe@seatunnel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [seatunnel] kalencaya commented on issue #5256: [Bug] [plugins] install-plugin.sh run failed within container caused by absence of .mvn directory

Posted by "kalencaya (via GitHub)" <gi...@apache.org>.
kalencaya commented on issue #5256:
URL: https://github.com/apache/seatunnel/issues/5256#issuecomment-1672425632

   After replace build image by `maven:3.8-eclipse-temurin-11` and change `${SEATUNNEL_HOME}/mvnw xxx yyy zzz` to `mvn xxx yyy zzz` works well


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [seatunnel] le-vlad commented on issue #5256: [Bug] [plugins] install-plugin.sh run failed within container caused by absence of .mvn directory

Posted by "le-vlad (via GitHub)" <gi...@apache.org>.
le-vlad commented on issue #5256:
URL: https://github.com/apache/seatunnel/issues/5256#issuecomment-1697899530

   > After replace build image by `maven:3.8-eclipse-temurin-11` and change `${SEATUNNEL_HOME}/mvnw xxx yyy zzz` to `mvn xxx yyy zzz` on `install-plugin.sh` works well
   
   That's cool. It really helped me to build docker image. But documentation must be updated. Since it doesn't work :)


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [seatunnel] kalencaya closed issue #5256: [Bug] [plugins] install-plugin.sh run failed within container caused by absence of .mvn directory

Posted by "kalencaya (via GitHub)" <gi...@apache.org>.
kalencaya closed issue #5256: [Bug] [plugins] install-plugin.sh run failed within container caused by absence of .mvn directory
URL: https://github.com/apache/seatunnel/issues/5256


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org