private void validateSkewedLocationString(String location) throws SemanticException {
    try {
      URI locationUri = new URI(location);
      if (!locationUri.isAbsolute() || locationUri.getScheme() == null || locationUri.getScheme().trim().equals("")) {
        throw new SemanticException(location + " is not absolute or has no scheme information. " +
            "Please specify a complete absolute uri with scheme information.");
      }
    } catch (URISyntaxException e) {
      throw new SemanticException(e);
    }
  }
Analyzer for set skewed location commands.
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/storage/skewed/AlterTableSetSkewedLocationAnalyzer.java