Create a directory inside the given parent directory.
Create a directory inside the given parent directory. The directory is guaranteed to be newly created, and is not marked for automatic deletion.
Create a temporary directory inside the given parent directory.
Create a temporary directory inside the given parent directory. The directory will be automatically deleted when the VM shuts down.
Delete a file or directory and its contents recursively.
Delete a file or directory and its contents recursively. Don't follow directories if they are symlinks. Throws an exception if deletion is unsuccessful.
Return whether the exception is caused by an address-port collision when binding.
Check to see if file is a symbolic link.
Attempt to start a service on the given port, or fail after a number of attempts.
Attempt to start a service on the given port, or fail after a number of attempts. Each subsequent attempt uses 1 + the port used in the previous attempt (unless the port is 0).
The initial port to start the service on.
Function to start service on a given port. This is expected to throw java.net.BindException on port collision.
A SparkConf used to get the maximum number of retries when binding to a port.
Name of the service.