-
Notifications
You must be signed in to change notification settings - Fork 117
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
execCommand执行Shell命令报找不到flink 命令的异常 #30
Comments
做个软连接或者添加命令到登录用户的环境变量中即可 |
登录用户环境变量都已添加,登录服务器不用全路径直接是可以运行的;你是说将flink软链接到用户下bin目录? 网上有说法是execCommand执行Shell命令是有这个问题的解决方法是 建立虚拟终端 用 session.requestPTY("bash") 再输入命令 |
是的,或者直接在/usr/bin 底下做个链接就行啊。如:ln -s /opt/flink /usr/bin/flink |
嗯 这种方法也可以 |
execCommand执行Shell命令的时候,会遇到获取不全环境变量的问题,
比如执行 flink -h 可能会报找不到flink 命令的异常,必须填 写全路径 /opt/flink -h
这个要换种方法吧
The text was updated successfully, but these errors were encountered: