apache / linkis

Apache Linkis builds a computation middleware layer to facilitate connection, governance and orchestration between the upper applications and the underlying data engines.
https://linkis.apache.org/
Apache License 2.0
3.3k stars 1.17k forks source link

[Bug] improve dist script #3930

Closed GuoPhilipse closed 1 year ago

GuoPhilipse commented 1 year ago

Search before asking

Linkis Component

linkis-dist

Steps to reproduce

under multi network, the ip command may get two ip address , which is not expected.

I think maybe we should only set the linkis_ipaddr as 127.0.0.1 , the user can change to there real ip if necessary.

[hdfs@hadoop-036-011 ~]$ echo $(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1" , "g", $2)}')
result will be 172.22.36.11 172.17.0.1

releted PR https://github.com/apache/incubator-linkis/pull/1989 https://github.com/apache/incubator-linkis-website/pull/607

Expected behavior

the ip address should be one ip,such as 172.22.36.11

Your environment

Anything else

No response

Are you willing to submit a PR?

github-actions[bot] commented 1 year ago

:blush: Welcome to the Apache Linkis (incubating) 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 :point_right: 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