mirror of
https://github.com/wassname/ray.git
synced 2026-07-13 12:53:35 +08:00
[Java] rename config ray.redis.address to ray.address (#10772)
Resolved Conflicts:
java/test.sh
This commit is contained in:
@@ -152,17 +152,17 @@ There are two steps needed to use Ray in a distributed setting:
|
||||
|
||||
.. group-tab:: Java
|
||||
|
||||
You need to add the ``ray.redis.address`` parameter to your command line (like ``-Dray.redis.address=...``).
|
||||
You need to add the ``ray.address`` parameter to your command line (like ``-Dray.address=...``).
|
||||
|
||||
To connect your program to the Ray cluster, run it like this:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
java -classpath /path/to/jars/ \
|
||||
-Dray.redis.address=<address> \
|
||||
-Dray.address=<address> \
|
||||
<classname> <args>
|
||||
|
||||
.. note:: Specifying ``auto`` as the Redis address hasn't been implemented in Java yet. You need to provide the actual Redis address. You can find the address of the Redis server from the output of the ``ray up`` command.
|
||||
.. note:: Specifying ``auto`` as the address hasn't been implemented in Java yet. You need to provide the actual address. You can find the address of the server from the output of the ``ray up`` command.
|
||||
|
||||
Your driver code **only** needs to execute on one machine in the cluster (usually the head node).
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ You can start Ray on a single machine by adding this to your code.
|
||||
|
||||
public static void main(String[] args) {
|
||||
// Start Ray runtime. If you're connecting to an existing cluster, you can set
|
||||
// the `-Dray.redis.address=<cluster-address>` java system property.
|
||||
// the `-Dray.address=<cluster-address>` java system property.
|
||||
Ray.init();
|
||||
...
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user