public void setRootLocation(String location) throws HCatException {
    try {
      partitionSpecProxy.setRootLocation(location);
    }
    catch (MetaException metaException) {
      throw new HCatException("Unable to set root-path!", metaException);
    }
  }
Setter for the "root" location of the HCatPartitionSpec.
@param location The new "root" location of the HCatPartitionSpec.
@throws HCatException On failure to set a new location.
hcatalog/webhcat/java-client/src/main/java/org/apache/hive/hcatalog/api/HCatPartitionSpec.java