Skip to content
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

Remove the '--include-java' option #10594

Merged
merged 9 commits into from
Sep 9, 2020

Conversation

kfstorm
Copy link
Member

@kfstorm kfstorm commented Sep 5, 2020

Why are these changes needed?

We can detect if Java is installed automatically.

Changes:

  • Remove the --include-java option and detect Java environment automatically.
  • Disable initial workers for Java.

We need to disable initial workers for Java, otherwise, initial Java workers will be spawned and Python users may be confused.

Related issue number

Closes #10434

Checks

  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/latest/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failure rates at https://ray-travis-tracker.herokuapp.com/.
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested (please justify below)

Copy link
Member

@chaokunyang chaokunyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kfstorm kfstorm force-pushed the remove_include_java_option branch from fd1eef7 to a16580b Compare September 8, 2020 09:12
@raulchen raulchen mentioned this pull request Sep 9, 2020
6 tasks
@@ -1345,6 +1323,26 @@ def start_raylet(redis_address,

gcs_ip_address, gcs_port = redis_address.split(":")

has_java_command = False
try:
java_proc = subprocess.run(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this command output be printed to console?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. subprocess.PIPE means capturing the output.

@raulchen raulchen merged commit afa0216 into ray-project:master Sep 9, 2020
@raulchen raulchen deleted the remove_include_java_option branch September 9, 2020 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove --include-java option from ray start command
3 participants