报error unable to access jarfile错误怎么解决
解决方法:发现是 调用shell脚本 时访问不到该jar,通过修改jar 绝对路径解决了
/home/user01/tool/traffic_broker_monitor
/home/user01/tool/traffic_broker_monitor
- echo "launch monitor tool"
- echo "bash /home/user01/tool/test_monitor.sh $monitor_connectors $project $region"
- sshpass -p ${PWD} ssh ${USERNAME}@${IP} "bash /home/ser01/tool/test_monitor.sh $monitor_connectors $project $region"
- java -jar broker_monitor.jar
- --num=$1
- --target_server=k8s.mypna.com
- --data_source=HERE-HERE-SEA --receiver=\{"redis_cluster_address":"mypna.com","redis_port":6379\}