.getConnectDetails().toAuthority(); if (!configured.equals(uri.getAuthority())) { throw new IllegalArgumentException(
/** * Checks whether the connect details from the uri + hadoop conf + global Alluxio conf are the * same as the connect details currently being used by {@link FileSystemContext}. * * @param uri the uri * @param conf the hadoop conf * @return whether the details match */ private boolean connectDetailsMatch(URI uri, org.apache.hadoop.conf.Configuration conf) { // Create the master inquire client that we would have after merging the hadoop conf into // Alluxio Configuration. AlluxioConfiguration alluxioConf = new InstancedConfiguration(Configuration.global()); HadoopConfigurationUtils.mergeHadoopConfiguration(conf, alluxioConf); ConnectDetails newDetails = Factory.getConnectDetails(alluxioConf); return newDetails.equals(FileSystemContext.get().getMasterInquireClient().getConnectDetails()); }