Search in sources :

Example 1 with UnknownAuthority

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));
    }
}
Also used : Authority(alluxio.uri.Authority) ZookeeperLogicalAuthority(alluxio.uri.ZookeeperLogicalAuthority) MultiMasterAuthority(alluxio.uri.MultiMasterAuthority) UnknownAuthority(alluxio.uri.UnknownAuthority) EmbeddedLogicalAuthority(alluxio.uri.EmbeddedLogicalAuthority) ZookeeperAuthority(alluxio.uri.ZookeeperAuthority) SingleMasterAuthority(alluxio.uri.SingleMasterAuthority) UnknownAuthority(alluxio.uri.UnknownAuthority) IOException(java.io.IOException)

Aggregations

Authority (alluxio.uri.Authority)1 EmbeddedLogicalAuthority (alluxio.uri.EmbeddedLogicalAuthority)1 MultiMasterAuthority (alluxio.uri.MultiMasterAuthority)1 SingleMasterAuthority (alluxio.uri.SingleMasterAuthority)1 UnknownAuthority (alluxio.uri.UnknownAuthority)1 ZookeeperAuthority (alluxio.uri.ZookeeperAuthority)1 ZookeeperLogicalAuthority (alluxio.uri.ZookeeperLogicalAuthority)1 IOException (java.io.IOException)1