Client URI accepts hostname:port format, but ignores it

Description

I'm fairly new to Alluxio and have just set up a cluster on DCOS. While trying to connect via the Java client, I noticed there was an option to enter the hostname and port in the AlluxioURI constructor.

val path = new AlluxioURI(s"alluxio://<remote master ip>:19998/test.csv");

However, it still tries to connect to a local instance in this case. After some digging (and some communication in the alluxio mailing list), I realized it is necessary to use an alluxio-site.properties file within my project. This was not very clear and confusing since the URI accepts it, and even validates the format, but ignores it.

This functionality should either be enabled or removed and the documentation cleared up. As far as the documentation is concerned, it is not entirely clear that the same configuration file that the server uses should be used for the client as well.

Environment

Alluxio v1.2.0 server and Java client
DCOS/Marathon/Mesos cluster
Docker

Status

Assignee

Zac Blanco

Reporter

Kyro Hale

Labels

Epic Link

Components

Fix versions

Affects versions

1.2.0

Priority

Minor
Configure