use of alluxio.uri.UnknownAuthority in project alluxio by Alluxio.
the class FileSystem method validateFsUri.
@Override
protected void validateFsUri(URI fsUri) throws IOException, IllegalArgumentException {
Preconditions.checkArgument(fsUri.getScheme().equals(getScheme()), PreconditionMessage.URI_SCHEME_MISMATCH.toString(), fsUri.getScheme(), getScheme());
Authority auth = Authority.fromString(fsUri.getAuthority());
if (auth instanceof UnknownAuthority) {
throw new IOException(String.format("Authority \"%s\" is unknown. The client can not be " + "configured with the authority from %s", auth, fsUri));
}
}
Aggregations