[Java] rename config ray.redis.address to ray.address (#10772)

Resolved Conflicts:
        java/test.sh
This commit is contained in:
Hao Chen
2020-09-15 11:13:19 +08:00
committed by Barak Michener
parent 3205119ccb
commit 96ab025e66
12 changed files with 20 additions and 20 deletions
+3 -3
View File
@@ -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).
+1 -1
View File
@@ -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();
...
}