Skip to content

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

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