Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Could not find or load main class org.apache.linkis.cli.application.LinkisClientApplication #5166

Closed
1 task done
punnpkin opened this issue Sep 5, 2024 · 3 comments
Labels
Question Further information is requested

Comments

@punnpkin
Copy link

punnpkin commented Sep 5, 2024

Before asking

Your environment

  • Linkis version used: 1.3.2
  • Environment name and version:
    docker

Describe your questions

Q1. Could not find or load main class org.apache.linkis.cli.application.LinkisClientApplication
kubectl get pods -A
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system coredns-565d847f94-ql8jv 1/1 Running 1 (62m ago) 5d15h
kube-system coredns-565d847f94-scjzq 1/1 Running 1 (62m ago) 5d15h
kube-system etcd-aio-control-plane 1/1 Running 1 (62m ago) 5d15h
kube-system kindnet-nngxp 1/1 Running 1 (62m ago) 5d15h
kube-system kube-apiserver-aio-control-plane 1/1 Running 1 (62m ago) 5d15h
kube-system kube-controller-manager-aio-control-plane 1/1 Running 1 (62m ago) 5d15h
kube-system kube-proxy-t282l 1/1 Running 1 (62m ago) 5d15h
kube-system kube-scheduler-aio-control-plane 1/1 Running 1 (62m ago) 5d15h
ldh ldh-68c9c5996b-xvgbp 1/1 Running 1 (62m ago) 5d15h
linkis init-db-lvjt4 0/1 Completed 0 6m15s
linkis linkis-demo-cg-engineconnmanager-0 1/1 Running 2 (3m45s ago) 6m15s
linkis linkis-demo-cg-entrance-598d9bc688-h5xzt 1/1 Running 2 (3m52s ago) 6m15s
linkis linkis-demo-cg-linkismanager-698796c657-r5mxq 1/1 Running 1 (4m23s ago) 6m15s
linkis linkis-demo-mg-eureka-0 1/1 Running 0 6m15s
linkis linkis-demo-mg-gateway-5d89c89fbb-49w6k 1/1 Running 0 6m15s
linkis linkis-demo-ps-publicservice-5fdcf58f7d-92jfm 1/1 Running 0 4m59s
linkis linkis-demo-web-6d876f87cc-qpfrz 1/1 Running 0 6m15s
local-path-storage local-path-provisioner-684f458cdd-7c46t 1/1 Running 2 (61m ago) 5d15h
mysql mysql-8c4c8ddd9-zghsx 1/1 Running 1 (62m ago) 5d15h

进入容器
./helm/scripts/login-pod.sh cg-engineconnmanager
bash-4.2$ pwd
/opt/linkis
bash-4.2$ sh ./bin/linkis-cli -engineType shell-1 -codeType shell -code "echo "hello" " -submitUser hadoop -proxyUser hadoop
=====Java Start Command=====
exec /etc/alternatives/jre/bin/java -server -Xms32m -Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/linkis/logs/linkis-cli -XX:ErrorFile=/opt/linkis/logs/linkis-cli/ps_err_pid%p.log -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=80 -XX:+DisableExplicitGC -classpath /opt/linkis/conf/linkis-cli:/opt/linkis/lib/linkis-computation-governance/linkis-client/linkis-cli/:/opt/linkis/lib/linkis-commons/public-module/: -Dconf.root=/etc/linkis-conf -Dconf.file=linkis-cli.properties -Dlog.path=/opt/linkis/logs/linkis-cli -Dlog.file=linkis-client..log.20240905101003504747164 org.apache.linkis.cli.application.LinkisClientApplication '-engineType shell-1 -codeType shell -code echo hello -submitUser hadoop -proxyUser hadoop'
Error: Could not find or load main class org.apache.linkis.cli.application.LinkisClientApplication

Eureka service list

eg:image

Some logs info or acctch file

linkis-xxx.log:


<!--日志文字贴到这里-->

log file:

linkis-xxx.log

@punnpkin punnpkin added the Question Further information is requested label Sep 5, 2024
Copy link

github-actions bot commented Sep 5, 2024

😊 Welcome to the Apache Linkis community!!

We are glad that you are contributing by opening this issue.

Please make sure to include all the relevant context.
We will be here shortly.

If you are interested in contributing to our website project, please let us know!
You can check out our contributing guide on
👉 How to Participate in Project Contribution.

Community

WeChat Assistant WeChat Public Account

Mailing Lists

Name Description Subscribe Unsubscribe Archive
dev@linkis.apache.org community activity information subscribe unsubscribe archive

@punnpkin
Copy link
Author

原因是linkis-demo-cg-engineconnmanager-0这个容器启动后会删除/opt/linkis/lib下的所有文件,暂不确定原因是什么。

The reason is that the linkis-demo-cg-engineconnmanager-0 container will delete all files under/opt/linkis/lib after startup, and it is currently uncertain what the reason is.

@punnpkin
Copy link
Author

可以修改容器启动方式,手动备份一下这个目录,再调起任务

  - command:
    - /bin/bash
    - -ecx
    - |
        while true; do
          date
          echo "Current time: $(date)"
          sleep 180
        done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant