[Java] Load driver resources from local path. (#3001)

## What do these changes do?
1. Add a configuration item `driver.resource-path`.
2. Load driver resources from the local path which is specified in the `ray.conf`.

Before this change, we should add all driver resources(like user's jar package, dependencies package and config files) into `classpath`.

After this change, we should add the driver resources into the mount path which we can configure it in `ray.conf`, and we shouldn't configure `classpath` for driver resources any more.

## Related issue number
N/A
This commit is contained in:
Wang Qing
2018-10-09 04:05:26 +08:00
committed by Hao Chen
parent 2d35a97a76
commit 84bf5fc8f3
7 changed files with 97 additions and 9 deletions
@@ -25,9 +25,15 @@ ray {
// Available resources on this node, for example "CPU:4,GPU:0".
resources: ""
// If worker.mode is DRIVER, specify the driver id.
// If not provided, a random id will be used.
driver.id: ""
// Configuration items about driver.
driver {
// If worker.mode is DRIVER, specify the driver id.
// If not provided, a random id will be used.
id: ""
// If worker.mode is WORKER, it means that worker will load
// the resources from this path to execute tasks.
resource-path: /tmp/ray/driver/resource
}
// Root dir of log files.
log-dir: /tmp/ray/logs
@@ -76,4 +82,5 @@ ray {
// RPC socket name of Raylet
socket-name: /tmp/ray/sockets/raylet
}
}