去评论
海欣资源

报error unable to access jarfile错误怎么解决

docker
2022/05/31 13:25:23
解决方法:发现是 调用shell脚本 时访问不到该jar,通过修改jar 绝对路径解决了
/home/user01/tool/traffic_broker_monitor
  1. echo "launch monitor tool"
  2. echo "bash /home/user01/tool/test_monitor.sh $monitor_connectors $project $region"
  3. sshpass -p ${PWD} ssh ${USERNAME}@${IP} "bash /home/ser01/tool/test_monitor.sh $monitor_connectors $project $region"
  1. java -jar broker_monitor.jar
  2. --num=$1
  3. --target_server=k8s.mypna.com
  4. --data_source=HERE-HERE-SEA --receiver=\{"redis_cluster_address":"mypna.com","redis_port":6379\}