Closed justinmclean closed 2 weeks ago
Think twice. The shell shouldn't take effect. The shell of init.sh
should be executed in the Docker image container. The ports are available all the time.
Ah, yes, you are right. This doesn't fix the issue; I'll pull the script out and place them in the launch script.
Is the scrip ok for both mac and linux?
Is the script ok for both Mac and Linux?
Yep see https://manpages.ubuntu.com/manpages/bionic/en/man8/lsof.8.html
This is something similar as https://github.com/apache/gravitino-playground/issues/60, I propose to solve that by chaning to an less possible conflict port in local, which is common used in docker deployments.
Hi Justin, I have changed the playground to use non-default ports to avoid such conflicts, see: https://github.com/apache/gravitino-playground/commit/fd68dd2c59617451cf065f8e2e1d5397928464b3
So I think this PR is not needed; If user still got conflict (the possibility is very low), he can modify the yaml.
Add scripts to check if ports are in use and that means the user is likely running MySQl or Posgres locally. I assume for this scripts to run new MySQL and Postgres docker images will need to be made. I tested the scripts manually and they detected if the port was in use.