code: public static String validatePath(String path, AlluxioConfiguration alluxioConf)
        throws IOException {
      if (path.startsWith(Constants.HEADER) || path.startsWith(Constants.HEADER_FT)) {
        if (!path.contains(":")) {
          throw new IOException("Invalid Path: " + path + ". Use " + Constants.HEADER
              + "host:port/ ," + Constants.HEADER_FT + "host:port/" + " , or /file");
        } else {
          return path;
        }
      } else {
        String hostname = NetworkAddressUtils.getConnectHost(ServiceType.MASTER_RPC, alluxioConf);
        int port =  alluxioConf.getInt(PropertyKey.MASTER_RPC_PORT);
        if (alluxioConf.getBoolean(PropertyKey.ZOOKEEPER_ENABLED)) {
          return PathUtils.concatPath(Constants.HEADER_FT + hostname + ":" + port, path);
        }
        return PathUtils.concatPath(Constants.HEADER + hostname + ":" + port, path);
      }
    }
docs: Validates the path, verifying that it contains the {@link Constants#HEADER} or
  {@link Constants#HEADER_FT} and a hostname:port specified.
  
  @param path the path to be verified
  @param alluxioConf Alluxio configuration
  @return the verified path in a form like alluxio://host:port/dir. If only the "/dir" or "dir"
  part is provided, the host and port are retrieved from property,
  alluxio.master.hostname and alluxio.master.port, respectively.