You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by se...@apache.org on 2017/11/06 19:44:54 UTC

[05/10] hive git commit: HIVE-17907 : enable and apply resource plan commands in HS2 (Sergey Shelukhin, reviewed by Prasanth Jayachandran)

http://git-wip-us.apache.org/repos/asf/hive/blob/ddce801f/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetActiveResourcePlanResponse.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetActiveResourcePlanResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetActiveResourcePlanResponse.java
new file mode 100644
index 0000000..df96998
--- /dev/null
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetActiveResourcePlanResponse.java
@@ -0,0 +1,398 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.3)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.hadoop.hive.metastore.api;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import javax.annotation.Generated;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
+@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class WMGetActiveResourcePlanResponse implements org.apache.thrift.TBase<WMGetActiveResourcePlanResponse, WMGetActiveResourcePlanResponse._Fields>, java.io.Serializable, Cloneable, Comparable<WMGetActiveResourcePlanResponse> {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("WMGetActiveResourcePlanResponse");
+
+  private static final org.apache.thrift.protocol.TField RESOURCE_PLAN_FIELD_DESC = new org.apache.thrift.protocol.TField("resourcePlan", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new WMGetActiveResourcePlanResponseStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new WMGetActiveResourcePlanResponseTupleSchemeFactory());
+  }
+
+  private WMFullResourcePlan resourcePlan; // optional
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    RESOURCE_PLAN((short)1, "resourcePlan");
+
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+    static {
+      for (_Fields field : EnumSet.allOf(_Fields.class)) {
+        byName.put(field.getFieldName(), field);
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, or null if its not found.
+     */
+    public static _Fields findByThriftId(int fieldId) {
+      switch(fieldId) {
+        case 1: // RESOURCE_PLAN
+          return RESOURCE_PLAN;
+        default:
+          return null;
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, throwing an exception
+     * if it is not found.
+     */
+    public static _Fields findByThriftIdOrThrow(int fieldId) {
+      _Fields fields = findByThriftId(fieldId);
+      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+      return fields;
+    }
+
+    /**
+     * Find the _Fields constant that matches name, or null if its not found.
+     */
+    public static _Fields findByName(String name) {
+      return byName.get(name);
+    }
+
+    private final short _thriftId;
+    private final String _fieldName;
+
+    _Fields(short thriftId, String fieldName) {
+      _thriftId = thriftId;
+      _fieldName = fieldName;
+    }
+
+    public short getThriftFieldId() {
+      return _thriftId;
+    }
+
+    public String getFieldName() {
+      return _fieldName;
+    }
+  }
+
+  // isset id assignments
+  private static final _Fields optionals[] = {_Fields.RESOURCE_PLAN};
+  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+  static {
+    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.RESOURCE_PLAN, new org.apache.thrift.meta_data.FieldMetaData("resourcePlan", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, WMFullResourcePlan.class)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(WMGetActiveResourcePlanResponse.class, metaDataMap);
+  }
+
+  public WMGetActiveResourcePlanResponse() {
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public WMGetActiveResourcePlanResponse(WMGetActiveResourcePlanResponse other) {
+    if (other.isSetResourcePlan()) {
+      this.resourcePlan = new WMFullResourcePlan(other.resourcePlan);
+    }
+  }
+
+  public WMGetActiveResourcePlanResponse deepCopy() {
+    return new WMGetActiveResourcePlanResponse(this);
+  }
+
+  @Override
+  public void clear() {
+    this.resourcePlan = null;
+  }
+
+  public WMFullResourcePlan getResourcePlan() {
+    return this.resourcePlan;
+  }
+
+  public void setResourcePlan(WMFullResourcePlan resourcePlan) {
+    this.resourcePlan = resourcePlan;
+  }
+
+  public void unsetResourcePlan() {
+    this.resourcePlan = null;
+  }
+
+  /** Returns true if field resourcePlan is set (has been assigned a value) and false otherwise */
+  public boolean isSetResourcePlan() {
+    return this.resourcePlan != null;
+  }
+
+  public void setResourcePlanIsSet(boolean value) {
+    if (!value) {
+      this.resourcePlan = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case RESOURCE_PLAN:
+      if (value == null) {
+        unsetResourcePlan();
+      } else {
+        setResourcePlan((WMFullResourcePlan)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case RESOURCE_PLAN:
+      return getResourcePlan();
+
+    }
+    throw new IllegalStateException();
+  }
+
+  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+  public boolean isSet(_Fields field) {
+    if (field == null) {
+      throw new IllegalArgumentException();
+    }
+
+    switch (field) {
+    case RESOURCE_PLAN:
+      return isSetResourcePlan();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof WMGetActiveResourcePlanResponse)
+      return this.equals((WMGetActiveResourcePlanResponse)that);
+    return false;
+  }
+
+  public boolean equals(WMGetActiveResourcePlanResponse that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_resourcePlan = true && this.isSetResourcePlan();
+    boolean that_present_resourcePlan = true && that.isSetResourcePlan();
+    if (this_present_resourcePlan || that_present_resourcePlan) {
+      if (!(this_present_resourcePlan && that_present_resourcePlan))
+        return false;
+      if (!this.resourcePlan.equals(that.resourcePlan))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    List<Object> list = new ArrayList<Object>();
+
+    boolean present_resourcePlan = true && (isSetResourcePlan());
+    list.add(present_resourcePlan);
+    if (present_resourcePlan)
+      list.add(resourcePlan);
+
+    return list.hashCode();
+  }
+
+  @Override
+  public int compareTo(WMGetActiveResourcePlanResponse other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+
+    lastComparison = Boolean.valueOf(isSetResourcePlan()).compareTo(other.isSetResourcePlan());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetResourcePlan()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.resourcePlan, other.resourcePlan);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("WMGetActiveResourcePlanResponse(");
+    boolean first = true;
+
+    if (isSetResourcePlan()) {
+      sb.append("resourcePlan:");
+      if (this.resourcePlan == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.resourcePlan);
+      }
+      first = false;
+    }
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    // check for sub-struct validity
+    if (resourcePlan != null) {
+      resourcePlan.validate();
+    }
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+    try {
+      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private static class WMGetActiveResourcePlanResponseStandardSchemeFactory implements SchemeFactory {
+    public WMGetActiveResourcePlanResponseStandardScheme getScheme() {
+      return new WMGetActiveResourcePlanResponseStandardScheme();
+    }
+  }
+
+  private static class WMGetActiveResourcePlanResponseStandardScheme extends StandardScheme<WMGetActiveResourcePlanResponse> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, WMGetActiveResourcePlanResponse struct) throws org.apache.thrift.TException {
+      org.apache.thrift.protocol.TField schemeField;
+      iprot.readStructBegin();
+      while (true)
+      {
+        schemeField = iprot.readFieldBegin();
+        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+          break;
+        }
+        switch (schemeField.id) {
+          case 1: // RESOURCE_PLAN
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+              struct.resourcePlan = new WMFullResourcePlan();
+              struct.resourcePlan.read(iprot);
+              struct.setResourcePlanIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, WMGetActiveResourcePlanResponse struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.resourcePlan != null) {
+        if (struct.isSetResourcePlan()) {
+          oprot.writeFieldBegin(RESOURCE_PLAN_FIELD_DESC);
+          struct.resourcePlan.write(oprot);
+          oprot.writeFieldEnd();
+        }
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class WMGetActiveResourcePlanResponseTupleSchemeFactory implements SchemeFactory {
+    public WMGetActiveResourcePlanResponseTupleScheme getScheme() {
+      return new WMGetActiveResourcePlanResponseTupleScheme();
+    }
+  }
+
+  private static class WMGetActiveResourcePlanResponseTupleScheme extends TupleScheme<WMGetActiveResourcePlanResponse> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, WMGetActiveResourcePlanResponse struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      BitSet optionals = new BitSet();
+      if (struct.isSetResourcePlan()) {
+        optionals.set(0);
+      }
+      oprot.writeBitSet(optionals, 1);
+      if (struct.isSetResourcePlan()) {
+        struct.resourcePlan.write(oprot);
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, WMGetActiveResourcePlanResponse struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      BitSet incoming = iprot.readBitSet(1);
+      if (incoming.get(0)) {
+        struct.resourcePlan = new WMFullResourcePlan();
+        struct.resourcePlan.read(iprot);
+        struct.setResourcePlanIsSet(true);
+      }
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/hive/blob/ddce801f/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanRequest.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanRequest.java
index bdb6e0f..3df8610 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanRequest.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanRequest.java
@@ -35,7 +35,7 @@ import org.slf4j.LoggerFactory;
 
 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
 @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
-public class WMGetAllResourcePlanRequest implements org.apache.thrift.TBase<WMGetAllResourcePlanRequest, WMGetAllResourcePlanRequest._Fields>, java.io.Serializable, Cloneable, Comparable<WMGetAllResourcePlanRequest> {
+@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class WMGetAllResourcePlanRequest implements org.apache.thrift.TBase<WMGetAllResourcePlanRequest, WMGetAllResourcePlanRequest._Fields>, java.io.Serializable, Cloneable, Comparable<WMGetAllResourcePlanRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("WMGetAllResourcePlanRequest");
 
 

http://git-wip-us.apache.org/repos/asf/hive/blob/ddce801f/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java
index 9fba8a1..b160357 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetAllResourcePlanResponse.java
@@ -35,7 +35,7 @@ import org.slf4j.LoggerFactory;
 
 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
 @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
-public class WMGetAllResourcePlanResponse implements org.apache.thrift.TBase<WMGetAllResourcePlanResponse, WMGetAllResourcePlanResponse._Fields>, java.io.Serializable, Cloneable, Comparable<WMGetAllResourcePlanResponse> {
+@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class WMGetAllResourcePlanResponse implements org.apache.thrift.TBase<WMGetAllResourcePlanResponse, WMGetAllResourcePlanResponse._Fields>, java.io.Serializable, Cloneable, Comparable<WMGetAllResourcePlanResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("WMGetAllResourcePlanResponse");
 
   private static final org.apache.thrift.protocol.TField RESOURCE_PLANS_FIELD_DESC = new org.apache.thrift.protocol.TField("resourcePlans", org.apache.thrift.protocol.TType.LIST, (short)1);
@@ -346,14 +346,14 @@ public class WMGetAllResourcePlanResponse implements org.apache.thrift.TBase<WMG
           case 1: // RESOURCE_PLANS
             if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
               {
-                org.apache.thrift.protocol.TList _list738 = iprot.readListBegin();
-                struct.resourcePlans = new ArrayList<WMResourcePlan>(_list738.size);
-                WMResourcePlan _elem739;
-                for (int _i740 = 0; _i740 < _list738.size; ++_i740)
+                org.apache.thrift.protocol.TList _list770 = iprot.readListBegin();
+                struct.resourcePlans = new ArrayList<WMResourcePlan>(_list770.size);
+                WMResourcePlan _elem771;
+                for (int _i772 = 0; _i772 < _list770.size; ++_i772)
                 {
-                  _elem739 = new WMResourcePlan();
-                  _elem739.read(iprot);
-                  struct.resourcePlans.add(_elem739);
+                  _elem771 = new WMResourcePlan();
+                  _elem771.read(iprot);
+                  struct.resourcePlans.add(_elem771);
                 }
                 iprot.readListEnd();
               }
@@ -380,9 +380,9 @@ public class WMGetAllResourcePlanResponse implements org.apache.thrift.TBase<WMG
           oprot.writeFieldBegin(RESOURCE_PLANS_FIELD_DESC);
           {
             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.resourcePlans.size()));
-            for (WMResourcePlan _iter741 : struct.resourcePlans)
+            for (WMResourcePlan _iter773 : struct.resourcePlans)
             {
-              _iter741.write(oprot);
+              _iter773.write(oprot);
             }
             oprot.writeListEnd();
           }
@@ -414,9 +414,9 @@ public class WMGetAllResourcePlanResponse implements org.apache.thrift.TBase<WMG
       if (struct.isSetResourcePlans()) {
         {
           oprot.writeI32(struct.resourcePlans.size());
-          for (WMResourcePlan _iter742 : struct.resourcePlans)
+          for (WMResourcePlan _iter774 : struct.resourcePlans)
           {
-            _iter742.write(oprot);
+            _iter774.write(oprot);
           }
         }
       }
@@ -428,14 +428,14 @@ public class WMGetAllResourcePlanResponse implements org.apache.thrift.TBase<WMG
       BitSet incoming = iprot.readBitSet(1);
       if (incoming.get(0)) {
         {
-          org.apache.thrift.protocol.TList _list743 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-          struct.resourcePlans = new ArrayList<WMResourcePlan>(_list743.size);
-          WMResourcePlan _elem744;
-          for (int _i745 = 0; _i745 < _list743.size; ++_i745)
+          org.apache.thrift.protocol.TList _list775 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+          struct.resourcePlans = new ArrayList<WMResourcePlan>(_list775.size);
+          WMResourcePlan _elem776;
+          for (int _i777 = 0; _i777 < _list775.size; ++_i777)
           {
-            _elem744 = new WMResourcePlan();
-            _elem744.read(iprot);
-            struct.resourcePlans.add(_elem744);
+            _elem776 = new WMResourcePlan();
+            _elem776.read(iprot);
+            struct.resourcePlans.add(_elem776);
           }
         }
         struct.setResourcePlansIsSet(true);

http://git-wip-us.apache.org/repos/asf/hive/blob/ddce801f/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetResourcePlanRequest.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetResourcePlanRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetResourcePlanRequest.java
index c4948ab..d051634 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetResourcePlanRequest.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetResourcePlanRequest.java
@@ -35,7 +35,7 @@ import org.slf4j.LoggerFactory;
 
 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
 @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
-public class WMGetResourcePlanRequest implements org.apache.thrift.TBase<WMGetResourcePlanRequest, WMGetResourcePlanRequest._Fields>, java.io.Serializable, Cloneable, Comparable<WMGetResourcePlanRequest> {
+@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class WMGetResourcePlanRequest implements org.apache.thrift.TBase<WMGetResourcePlanRequest, WMGetResourcePlanRequest._Fields>, java.io.Serializable, Cloneable, Comparable<WMGetResourcePlanRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("WMGetResourcePlanRequest");
 
   private static final org.apache.thrift.protocol.TField RESOURCE_PLAN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("resourcePlanName", org.apache.thrift.protocol.TType.STRING, (short)1);

http://git-wip-us.apache.org/repos/asf/hive/blob/ddce801f/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetResourcePlanResponse.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetResourcePlanResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetResourcePlanResponse.java
index 4b88a22..638728e 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetResourcePlanResponse.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetResourcePlanResponse.java
@@ -35,7 +35,7 @@ import org.slf4j.LoggerFactory;
 
 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
 @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
-public class WMGetResourcePlanResponse implements org.apache.thrift.TBase<WMGetResourcePlanResponse, WMGetResourcePlanResponse._Fields>, java.io.Serializable, Cloneable, Comparable<WMGetResourcePlanResponse> {
+@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class WMGetResourcePlanResponse implements org.apache.thrift.TBase<WMGetResourcePlanResponse, WMGetResourcePlanResponse._Fields>, java.io.Serializable, Cloneable, Comparable<WMGetResourcePlanResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("WMGetResourcePlanResponse");
 
   private static final org.apache.thrift.protocol.TField RESOURCE_PLAN_FIELD_DESC = new org.apache.thrift.protocol.TField("resourcePlan", org.apache.thrift.protocol.TType.STRUCT, (short)1);

http://git-wip-us.apache.org/repos/asf/hive/blob/ddce801f/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanRequest.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanRequest.java
index a9daf43..ce64a04 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanRequest.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanRequest.java
@@ -35,7 +35,7 @@ import org.slf4j.LoggerFactory;
 
 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
 @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
-public class WMGetTriggersForResourePlanRequest implements org.apache.thrift.TBase<WMGetTriggersForResourePlanRequest, WMGetTriggersForResourePlanRequest._Fields>, java.io.Serializable, Cloneable, Comparable<WMGetTriggersForResourePlanRequest> {
+@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class WMGetTriggersForResourePlanRequest implements org.apache.thrift.TBase<WMGetTriggersForResourePlanRequest, WMGetTriggersForResourePlanRequest._Fields>, java.io.Serializable, Cloneable, Comparable<WMGetTriggersForResourePlanRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("WMGetTriggersForResourePlanRequest");
 
   private static final org.apache.thrift.protocol.TField RESOURCE_PLAN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("resourcePlanName", org.apache.thrift.protocol.TType.STRING, (short)1);

http://git-wip-us.apache.org/repos/asf/hive/blob/ddce801f/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java
index c7f62ad..63b1c9a 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMGetTriggersForResourePlanResponse.java
@@ -35,7 +35,7 @@ import org.slf4j.LoggerFactory;
 
 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
 @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
-public class WMGetTriggersForResourePlanResponse implements org.apache.thrift.TBase<WMGetTriggersForResourePlanResponse, WMGetTriggersForResourePlanResponse._Fields>, java.io.Serializable, Cloneable, Comparable<WMGetTriggersForResourePlanResponse> {
+@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class WMGetTriggersForResourePlanResponse implements org.apache.thrift.TBase<WMGetTriggersForResourePlanResponse, WMGetTriggersForResourePlanResponse._Fields>, java.io.Serializable, Cloneable, Comparable<WMGetTriggersForResourePlanResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("WMGetTriggersForResourePlanResponse");
 
   private static final org.apache.thrift.protocol.TField TRIGGERS_FIELD_DESC = new org.apache.thrift.protocol.TField("triggers", org.apache.thrift.protocol.TType.LIST, (short)1);
@@ -346,14 +346,14 @@ public class WMGetTriggersForResourePlanResponse implements org.apache.thrift.TB
           case 1: // TRIGGERS
             if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
               {
-                org.apache.thrift.protocol.TList _list746 = iprot.readListBegin();
-                struct.triggers = new ArrayList<WMTrigger>(_list746.size);
-                WMTrigger _elem747;
-                for (int _i748 = 0; _i748 < _list746.size; ++_i748)
+                org.apache.thrift.protocol.TList _list778 = iprot.readListBegin();
+                struct.triggers = new ArrayList<WMTrigger>(_list778.size);
+                WMTrigger _elem779;
+                for (int _i780 = 0; _i780 < _list778.size; ++_i780)
                 {
-                  _elem747 = new WMTrigger();
-                  _elem747.read(iprot);
-                  struct.triggers.add(_elem747);
+                  _elem779 = new WMTrigger();
+                  _elem779.read(iprot);
+                  struct.triggers.add(_elem779);
                 }
                 iprot.readListEnd();
               }
@@ -380,9 +380,9 @@ public class WMGetTriggersForResourePlanResponse implements org.apache.thrift.TB
           oprot.writeFieldBegin(TRIGGERS_FIELD_DESC);
           {
             oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.triggers.size()));
-            for (WMTrigger _iter749 : struct.triggers)
+            for (WMTrigger _iter781 : struct.triggers)
             {
-              _iter749.write(oprot);
+              _iter781.write(oprot);
             }
             oprot.writeListEnd();
           }
@@ -414,9 +414,9 @@ public class WMGetTriggersForResourePlanResponse implements org.apache.thrift.TB
       if (struct.isSetTriggers()) {
         {
           oprot.writeI32(struct.triggers.size());
-          for (WMTrigger _iter750 : struct.triggers)
+          for (WMTrigger _iter782 : struct.triggers)
           {
-            _iter750.write(oprot);
+            _iter782.write(oprot);
           }
         }
       }
@@ -428,14 +428,14 @@ public class WMGetTriggersForResourePlanResponse implements org.apache.thrift.TB
       BitSet incoming = iprot.readBitSet(1);
       if (incoming.get(0)) {
         {
-          org.apache.thrift.protocol.TList _list751 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
-          struct.triggers = new ArrayList<WMTrigger>(_list751.size);
-          WMTrigger _elem752;
-          for (int _i753 = 0; _i753 < _list751.size; ++_i753)
+          org.apache.thrift.protocol.TList _list783 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+          struct.triggers = new ArrayList<WMTrigger>(_list783.size);
+          WMTrigger _elem784;
+          for (int _i785 = 0; _i785 < _list783.size; ++_i785)
           {
-            _elem752 = new WMTrigger();
-            _elem752.read(iprot);
-            struct.triggers.add(_elem752);
+            _elem784 = new WMTrigger();
+            _elem784.read(iprot);
+            struct.triggers.add(_elem784);
           }
         }
         struct.setTriggersIsSet(true);

http://git-wip-us.apache.org/repos/asf/hive/blob/ddce801f/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMMapping.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMMapping.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMMapping.java
index cbf4f38..af7ee52 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMMapping.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMMapping.java
@@ -35,7 +35,7 @@ import org.slf4j.LoggerFactory;
 
 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
 @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
-public class WMMapping implements org.apache.thrift.TBase<WMMapping, WMMapping._Fields>, java.io.Serializable, Cloneable, Comparable<WMMapping> {
+@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class WMMapping implements org.apache.thrift.TBase<WMMapping, WMMapping._Fields>, java.io.Serializable, Cloneable, Comparable<WMMapping> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("WMMapping");
 
   private static final org.apache.thrift.protocol.TField RESOURCE_PLAN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("resourcePlanName", org.apache.thrift.protocol.TType.STRING, (short)1);

http://git-wip-us.apache.org/repos/asf/hive/blob/ddce801f/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMPool.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMPool.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMPool.java
index a89e030..0fc5ecf 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMPool.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMPool.java
@@ -35,15 +35,14 @@ import org.slf4j.LoggerFactory;
 
 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
 @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
-public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>, java.io.Serializable, Cloneable, Comparable<WMPool> {
+@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>, java.io.Serializable, Cloneable, Comparable<WMPool> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("WMPool");
 
   private static final org.apache.thrift.protocol.TField RESOURCE_PLAN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("resourcePlanName", org.apache.thrift.protocol.TType.STRING, (short)1);
-  private static final org.apache.thrift.protocol.TField POOL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("poolName", org.apache.thrift.protocol.TType.STRING, (short)2);
-  private static final org.apache.thrift.protocol.TField PARENT_POOL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("parentPoolName", org.apache.thrift.protocol.TType.STRING, (short)3);
-  private static final org.apache.thrift.protocol.TField ALLOC_FRACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("allocFraction", org.apache.thrift.protocol.TType.DOUBLE, (short)4);
-  private static final org.apache.thrift.protocol.TField QUERY_PARALLELISM_FIELD_DESC = new org.apache.thrift.protocol.TField("queryParallelism", org.apache.thrift.protocol.TType.I32, (short)5);
-  private static final org.apache.thrift.protocol.TField SCHEDULING_POLICY_FIELD_DESC = new org.apache.thrift.protocol.TField("schedulingPolicy", org.apache.thrift.protocol.TType.STRING, (short)6);
+  private static final org.apache.thrift.protocol.TField POOL_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("poolPath", org.apache.thrift.protocol.TType.STRING, (short)2);
+  private static final org.apache.thrift.protocol.TField ALLOC_FRACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("allocFraction", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
+  private static final org.apache.thrift.protocol.TField QUERY_PARALLELISM_FIELD_DESC = new org.apache.thrift.protocol.TField("queryParallelism", org.apache.thrift.protocol.TType.I32, (short)4);
+  private static final org.apache.thrift.protocol.TField SCHEDULING_POLICY_FIELD_DESC = new org.apache.thrift.protocol.TField("schedulingPolicy", org.apache.thrift.protocol.TType.STRING, (short)5);
 
   private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
   static {
@@ -52,8 +51,7 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
   }
 
   private String resourcePlanName; // required
-  private String poolName; // required
-  private String parentPoolName; // optional
+  private String poolPath; // required
   private double allocFraction; // optional
   private int queryParallelism; // optional
   private String schedulingPolicy; // optional
@@ -61,11 +59,10 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
   /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
   public enum _Fields implements org.apache.thrift.TFieldIdEnum {
     RESOURCE_PLAN_NAME((short)1, "resourcePlanName"),
-    POOL_NAME((short)2, "poolName"),
-    PARENT_POOL_NAME((short)3, "parentPoolName"),
-    ALLOC_FRACTION((short)4, "allocFraction"),
-    QUERY_PARALLELISM((short)5, "queryParallelism"),
-    SCHEDULING_POLICY((short)6, "schedulingPolicy");
+    POOL_PATH((short)2, "poolPath"),
+    ALLOC_FRACTION((short)3, "allocFraction"),
+    QUERY_PARALLELISM((short)4, "queryParallelism"),
+    SCHEDULING_POLICY((short)5, "schedulingPolicy");
 
     private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
 
@@ -82,15 +79,13 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
       switch(fieldId) {
         case 1: // RESOURCE_PLAN_NAME
           return RESOURCE_PLAN_NAME;
-        case 2: // POOL_NAME
-          return POOL_NAME;
-        case 3: // PARENT_POOL_NAME
-          return PARENT_POOL_NAME;
-        case 4: // ALLOC_FRACTION
+        case 2: // POOL_PATH
+          return POOL_PATH;
+        case 3: // ALLOC_FRACTION
           return ALLOC_FRACTION;
-        case 5: // QUERY_PARALLELISM
+        case 4: // QUERY_PARALLELISM
           return QUERY_PARALLELISM;
-        case 6: // SCHEDULING_POLICY
+        case 5: // SCHEDULING_POLICY
           return SCHEDULING_POLICY;
         default:
           return null;
@@ -135,15 +130,13 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
   private static final int __ALLOCFRACTION_ISSET_ID = 0;
   private static final int __QUERYPARALLELISM_ISSET_ID = 1;
   private byte __isset_bitfield = 0;
-  private static final _Fields optionals[] = {_Fields.PARENT_POOL_NAME,_Fields.ALLOC_FRACTION,_Fields.QUERY_PARALLELISM,_Fields.SCHEDULING_POLICY};
+  private static final _Fields optionals[] = {_Fields.ALLOC_FRACTION,_Fields.QUERY_PARALLELISM,_Fields.SCHEDULING_POLICY};
   public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
   static {
     Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
     tmpMap.put(_Fields.RESOURCE_PLAN_NAME, new org.apache.thrift.meta_data.FieldMetaData("resourcePlanName", org.apache.thrift.TFieldRequirementType.REQUIRED, 
         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.POOL_NAME, new org.apache.thrift.meta_data.FieldMetaData("poolName", org.apache.thrift.TFieldRequirementType.REQUIRED, 
-        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-    tmpMap.put(_Fields.PARENT_POOL_NAME, new org.apache.thrift.meta_data.FieldMetaData("parentPoolName", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+    tmpMap.put(_Fields.POOL_PATH, new org.apache.thrift.meta_data.FieldMetaData("poolPath", org.apache.thrift.TFieldRequirementType.REQUIRED, 
         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
     tmpMap.put(_Fields.ALLOC_FRACTION, new org.apache.thrift.meta_data.FieldMetaData("allocFraction", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
         new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
@@ -160,11 +153,11 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
 
   public WMPool(
     String resourcePlanName,
-    String poolName)
+    String poolPath)
   {
     this();
     this.resourcePlanName = resourcePlanName;
-    this.poolName = poolName;
+    this.poolPath = poolPath;
   }
 
   /**
@@ -175,11 +168,8 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
     if (other.isSetResourcePlanName()) {
       this.resourcePlanName = other.resourcePlanName;
     }
-    if (other.isSetPoolName()) {
-      this.poolName = other.poolName;
-    }
-    if (other.isSetParentPoolName()) {
-      this.parentPoolName = other.parentPoolName;
+    if (other.isSetPoolPath()) {
+      this.poolPath = other.poolPath;
     }
     this.allocFraction = other.allocFraction;
     this.queryParallelism = other.queryParallelism;
@@ -195,8 +185,7 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
   @Override
   public void clear() {
     this.resourcePlanName = null;
-    this.poolName = null;
-    this.parentPoolName = null;
+    this.poolPath = null;
     setAllocFractionIsSet(false);
     this.allocFraction = 0.0;
     setQueryParallelismIsSet(false);
@@ -227,49 +216,26 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
     }
   }
 
-  public String getPoolName() {
-    return this.poolName;
+  public String getPoolPath() {
+    return this.poolPath;
   }
 
-  public void setPoolName(String poolName) {
-    this.poolName = poolName;
+  public void setPoolPath(String poolPath) {
+    this.poolPath = poolPath;
   }
 
-  public void unsetPoolName() {
-    this.poolName = null;
+  public void unsetPoolPath() {
+    this.poolPath = null;
   }
 
-  /** Returns true if field poolName is set (has been assigned a value) and false otherwise */
-  public boolean isSetPoolName() {
-    return this.poolName != null;
+  /** Returns true if field poolPath is set (has been assigned a value) and false otherwise */
+  public boolean isSetPoolPath() {
+    return this.poolPath != null;
   }
 
-  public void setPoolNameIsSet(boolean value) {
+  public void setPoolPathIsSet(boolean value) {
     if (!value) {
-      this.poolName = null;
-    }
-  }
-
-  public String getParentPoolName() {
-    return this.parentPoolName;
-  }
-
-  public void setParentPoolName(String parentPoolName) {
-    this.parentPoolName = parentPoolName;
-  }
-
-  public void unsetParentPoolName() {
-    this.parentPoolName = null;
-  }
-
-  /** Returns true if field parentPoolName is set (has been assigned a value) and false otherwise */
-  public boolean isSetParentPoolName() {
-    return this.parentPoolName != null;
-  }
-
-  public void setParentPoolNameIsSet(boolean value) {
-    if (!value) {
-      this.parentPoolName = null;
+      this.poolPath = null;
     }
   }
 
@@ -350,19 +316,11 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
       }
       break;
 
-    case POOL_NAME:
-      if (value == null) {
-        unsetPoolName();
-      } else {
-        setPoolName((String)value);
-      }
-      break;
-
-    case PARENT_POOL_NAME:
+    case POOL_PATH:
       if (value == null) {
-        unsetParentPoolName();
+        unsetPoolPath();
       } else {
-        setParentPoolName((String)value);
+        setPoolPath((String)value);
       }
       break;
 
@@ -398,11 +356,8 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
     case RESOURCE_PLAN_NAME:
       return getResourcePlanName();
 
-    case POOL_NAME:
-      return getPoolName();
-
-    case PARENT_POOL_NAME:
-      return getParentPoolName();
+    case POOL_PATH:
+      return getPoolPath();
 
     case ALLOC_FRACTION:
       return getAllocFraction();
@@ -426,10 +381,8 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
     switch (field) {
     case RESOURCE_PLAN_NAME:
       return isSetResourcePlanName();
-    case POOL_NAME:
-      return isSetPoolName();
-    case PARENT_POOL_NAME:
-      return isSetParentPoolName();
+    case POOL_PATH:
+      return isSetPoolPath();
     case ALLOC_FRACTION:
       return isSetAllocFraction();
     case QUERY_PARALLELISM:
@@ -462,21 +415,12 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
         return false;
     }
 
-    boolean this_present_poolName = true && this.isSetPoolName();
-    boolean that_present_poolName = true && that.isSetPoolName();
-    if (this_present_poolName || that_present_poolName) {
-      if (!(this_present_poolName && that_present_poolName))
+    boolean this_present_poolPath = true && this.isSetPoolPath();
+    boolean that_present_poolPath = true && that.isSetPoolPath();
+    if (this_present_poolPath || that_present_poolPath) {
+      if (!(this_present_poolPath && that_present_poolPath))
         return false;
-      if (!this.poolName.equals(that.poolName))
-        return false;
-    }
-
-    boolean this_present_parentPoolName = true && this.isSetParentPoolName();
-    boolean that_present_parentPoolName = true && that.isSetParentPoolName();
-    if (this_present_parentPoolName || that_present_parentPoolName) {
-      if (!(this_present_parentPoolName && that_present_parentPoolName))
-        return false;
-      if (!this.parentPoolName.equals(that.parentPoolName))
+      if (!this.poolPath.equals(that.poolPath))
         return false;
     }
 
@@ -519,15 +463,10 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
     if (present_resourcePlanName)
       list.add(resourcePlanName);
 
-    boolean present_poolName = true && (isSetPoolName());
-    list.add(present_poolName);
-    if (present_poolName)
-      list.add(poolName);
-
-    boolean present_parentPoolName = true && (isSetParentPoolName());
-    list.add(present_parentPoolName);
-    if (present_parentPoolName)
-      list.add(parentPoolName);
+    boolean present_poolPath = true && (isSetPoolPath());
+    list.add(present_poolPath);
+    if (present_poolPath)
+      list.add(poolPath);
 
     boolean present_allocFraction = true && (isSetAllocFraction());
     list.add(present_allocFraction);
@@ -565,22 +504,12 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
         return lastComparison;
       }
     }
-    lastComparison = Boolean.valueOf(isSetPoolName()).compareTo(other.isSetPoolName());
+    lastComparison = Boolean.valueOf(isSetPoolPath()).compareTo(other.isSetPoolPath());
     if (lastComparison != 0) {
       return lastComparison;
     }
-    if (isSetPoolName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.poolName, other.poolName);
-      if (lastComparison != 0) {
-        return lastComparison;
-      }
-    }
-    lastComparison = Boolean.valueOf(isSetParentPoolName()).compareTo(other.isSetParentPoolName());
-    if (lastComparison != 0) {
-      return lastComparison;
-    }
-    if (isSetParentPoolName()) {
-      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parentPoolName, other.parentPoolName);
+    if (isSetPoolPath()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.poolPath, other.poolPath);
       if (lastComparison != 0) {
         return lastComparison;
       }
@@ -643,23 +572,13 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
     }
     first = false;
     if (!first) sb.append(", ");
-    sb.append("poolName:");
-    if (this.poolName == null) {
+    sb.append("poolPath:");
+    if (this.poolPath == null) {
       sb.append("null");
     } else {
-      sb.append(this.poolName);
+      sb.append(this.poolPath);
     }
     first = false;
-    if (isSetParentPoolName()) {
-      if (!first) sb.append(", ");
-      sb.append("parentPoolName:");
-      if (this.parentPoolName == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.parentPoolName);
-      }
-      first = false;
-    }
     if (isSetAllocFraction()) {
       if (!first) sb.append(", ");
       sb.append("allocFraction:");
@@ -692,8 +611,8 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
       throw new org.apache.thrift.protocol.TProtocolException("Required field 'resourcePlanName' is unset! Struct:" + toString());
     }
 
-    if (!isSetPoolName()) {
-      throw new org.apache.thrift.protocol.TProtocolException("Required field 'poolName' is unset! Struct:" + toString());
+    if (!isSetPoolPath()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'poolPath' is unset! Struct:" + toString());
     }
 
     // check for sub-struct validity
@@ -743,23 +662,15 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
             }
             break;
-          case 2: // POOL_NAME
+          case 2: // POOL_PATH
             if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.poolName = iprot.readString();
-              struct.setPoolNameIsSet(true);
+              struct.poolPath = iprot.readString();
+              struct.setPoolPathIsSet(true);
             } else { 
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
             }
             break;
-          case 3: // PARENT_POOL_NAME
-            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
-              struct.parentPoolName = iprot.readString();
-              struct.setParentPoolNameIsSet(true);
-            } else { 
-              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
-            }
-            break;
-          case 4: // ALLOC_FRACTION
+          case 3: // ALLOC_FRACTION
             if (schemeField.type == org.apache.thrift.protocol.TType.DOUBLE) {
               struct.allocFraction = iprot.readDouble();
               struct.setAllocFractionIsSet(true);
@@ -767,7 +678,7 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
             }
             break;
-          case 5: // QUERY_PARALLELISM
+          case 4: // QUERY_PARALLELISM
             if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
               struct.queryParallelism = iprot.readI32();
               struct.setQueryParallelismIsSet(true);
@@ -775,7 +686,7 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
               org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
             }
             break;
-          case 6: // SCHEDULING_POLICY
+          case 5: // SCHEDULING_POLICY
             if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
               struct.schedulingPolicy = iprot.readString();
               struct.setSchedulingPolicyIsSet(true);
@@ -801,18 +712,11 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
         oprot.writeString(struct.resourcePlanName);
         oprot.writeFieldEnd();
       }
-      if (struct.poolName != null) {
-        oprot.writeFieldBegin(POOL_NAME_FIELD_DESC);
-        oprot.writeString(struct.poolName);
+      if (struct.poolPath != null) {
+        oprot.writeFieldBegin(POOL_PATH_FIELD_DESC);
+        oprot.writeString(struct.poolPath);
         oprot.writeFieldEnd();
       }
-      if (struct.parentPoolName != null) {
-        if (struct.isSetParentPoolName()) {
-          oprot.writeFieldBegin(PARENT_POOL_NAME_FIELD_DESC);
-          oprot.writeString(struct.parentPoolName);
-          oprot.writeFieldEnd();
-        }
-      }
       if (struct.isSetAllocFraction()) {
         oprot.writeFieldBegin(ALLOC_FRACTION_FIELD_DESC);
         oprot.writeDouble(struct.allocFraction);
@@ -848,24 +752,18 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
     public void write(org.apache.thrift.protocol.TProtocol prot, WMPool struct) throws org.apache.thrift.TException {
       TTupleProtocol oprot = (TTupleProtocol) prot;
       oprot.writeString(struct.resourcePlanName);
-      oprot.writeString(struct.poolName);
+      oprot.writeString(struct.poolPath);
       BitSet optionals = new BitSet();
-      if (struct.isSetParentPoolName()) {
-        optionals.set(0);
-      }
       if (struct.isSetAllocFraction()) {
-        optionals.set(1);
+        optionals.set(0);
       }
       if (struct.isSetQueryParallelism()) {
-        optionals.set(2);
+        optionals.set(1);
       }
       if (struct.isSetSchedulingPolicy()) {
-        optionals.set(3);
-      }
-      oprot.writeBitSet(optionals, 4);
-      if (struct.isSetParentPoolName()) {
-        oprot.writeString(struct.parentPoolName);
+        optionals.set(2);
       }
+      oprot.writeBitSet(optionals, 3);
       if (struct.isSetAllocFraction()) {
         oprot.writeDouble(struct.allocFraction);
       }
@@ -882,22 +780,18 @@ public class WMPool implements org.apache.thrift.TBase<WMPool, WMPool._Fields>,
       TTupleProtocol iprot = (TTupleProtocol) prot;
       struct.resourcePlanName = iprot.readString();
       struct.setResourcePlanNameIsSet(true);
-      struct.poolName = iprot.readString();
-      struct.setPoolNameIsSet(true);
-      BitSet incoming = iprot.readBitSet(4);
+      struct.poolPath = iprot.readString();
+      struct.setPoolPathIsSet(true);
+      BitSet incoming = iprot.readBitSet(3);
       if (incoming.get(0)) {
-        struct.parentPoolName = iprot.readString();
-        struct.setParentPoolNameIsSet(true);
-      }
-      if (incoming.get(1)) {
         struct.allocFraction = iprot.readDouble();
         struct.setAllocFractionIsSet(true);
       }
-      if (incoming.get(2)) {
+      if (incoming.get(1)) {
         struct.queryParallelism = iprot.readI32();
         struct.setQueryParallelismIsSet(true);
       }
-      if (incoming.get(3)) {
+      if (incoming.get(2)) {
         struct.schedulingPolicy = iprot.readString();
         struct.setSchedulingPolicyIsSet(true);
       }

http://git-wip-us.apache.org/repos/asf/hive/blob/ddce801f/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMPoolTrigger.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMPoolTrigger.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMPoolTrigger.java
new file mode 100644
index 0000000..efbb5e6
--- /dev/null
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMPoolTrigger.java
@@ -0,0 +1,490 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.3)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.hadoop.hive.metastore.api;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import org.apache.thrift.async.AsyncMethodCallback;
+import org.apache.thrift.server.AbstractNonblockingServer.*;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import javax.annotation.Generated;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
+@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class WMPoolTrigger implements org.apache.thrift.TBase<WMPoolTrigger, WMPoolTrigger._Fields>, java.io.Serializable, Cloneable, Comparable<WMPoolTrigger> {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("WMPoolTrigger");
+
+  private static final org.apache.thrift.protocol.TField POOL_FIELD_DESC = new org.apache.thrift.protocol.TField("pool", org.apache.thrift.protocol.TType.STRING, (short)1);
+  private static final org.apache.thrift.protocol.TField TRIGGER_FIELD_DESC = new org.apache.thrift.protocol.TField("trigger", org.apache.thrift.protocol.TType.STRING, (short)2);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new WMPoolTriggerStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new WMPoolTriggerTupleSchemeFactory());
+  }
+
+  private String pool; // required
+  private String trigger; // required
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    POOL((short)1, "pool"),
+    TRIGGER((short)2, "trigger");
+
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+    static {
+      for (_Fields field : EnumSet.allOf(_Fields.class)) {
+        byName.put(field.getFieldName(), field);
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, or null if its not found.
+     */
+    public static _Fields findByThriftId(int fieldId) {
+      switch(fieldId) {
+        case 1: // POOL
+          return POOL;
+        case 2: // TRIGGER
+          return TRIGGER;
+        default:
+          return null;
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, throwing an exception
+     * if it is not found.
+     */
+    public static _Fields findByThriftIdOrThrow(int fieldId) {
+      _Fields fields = findByThriftId(fieldId);
+      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+      return fields;
+    }
+
+    /**
+     * Find the _Fields constant that matches name, or null if its not found.
+     */
+    public static _Fields findByName(String name) {
+      return byName.get(name);
+    }
+
+    private final short _thriftId;
+    private final String _fieldName;
+
+    _Fields(short thriftId, String fieldName) {
+      _thriftId = thriftId;
+      _fieldName = fieldName;
+    }
+
+    public short getThriftFieldId() {
+      return _thriftId;
+    }
+
+    public String getFieldName() {
+      return _fieldName;
+    }
+  }
+
+  // isset id assignments
+  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+  static {
+    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.POOL, new org.apache.thrift.meta_data.FieldMetaData("pool", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.TRIGGER, new org.apache.thrift.meta_data.FieldMetaData("trigger", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(WMPoolTrigger.class, metaDataMap);
+  }
+
+  public WMPoolTrigger() {
+  }
+
+  public WMPoolTrigger(
+    String pool,
+    String trigger)
+  {
+    this();
+    this.pool = pool;
+    this.trigger = trigger;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public WMPoolTrigger(WMPoolTrigger other) {
+    if (other.isSetPool()) {
+      this.pool = other.pool;
+    }
+    if (other.isSetTrigger()) {
+      this.trigger = other.trigger;
+    }
+  }
+
+  public WMPoolTrigger deepCopy() {
+    return new WMPoolTrigger(this);
+  }
+
+  @Override
+  public void clear() {
+    this.pool = null;
+    this.trigger = null;
+  }
+
+  public String getPool() {
+    return this.pool;
+  }
+
+  public void setPool(String pool) {
+    this.pool = pool;
+  }
+
+  public void unsetPool() {
+    this.pool = null;
+  }
+
+  /** Returns true if field pool is set (has been assigned a value) and false otherwise */
+  public boolean isSetPool() {
+    return this.pool != null;
+  }
+
+  public void setPoolIsSet(boolean value) {
+    if (!value) {
+      this.pool = null;
+    }
+  }
+
+  public String getTrigger() {
+    return this.trigger;
+  }
+
+  public void setTrigger(String trigger) {
+    this.trigger = trigger;
+  }
+
+  public void unsetTrigger() {
+    this.trigger = null;
+  }
+
+  /** Returns true if field trigger is set (has been assigned a value) and false otherwise */
+  public boolean isSetTrigger() {
+    return this.trigger != null;
+  }
+
+  public void setTriggerIsSet(boolean value) {
+    if (!value) {
+      this.trigger = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case POOL:
+      if (value == null) {
+        unsetPool();
+      } else {
+        setPool((String)value);
+      }
+      break;
+
+    case TRIGGER:
+      if (value == null) {
+        unsetTrigger();
+      } else {
+        setTrigger((String)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case POOL:
+      return getPool();
+
+    case TRIGGER:
+      return getTrigger();
+
+    }
+    throw new IllegalStateException();
+  }
+
+  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+  public boolean isSet(_Fields field) {
+    if (field == null) {
+      throw new IllegalArgumentException();
+    }
+
+    switch (field) {
+    case POOL:
+      return isSetPool();
+    case TRIGGER:
+      return isSetTrigger();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof WMPoolTrigger)
+      return this.equals((WMPoolTrigger)that);
+    return false;
+  }
+
+  public boolean equals(WMPoolTrigger that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_pool = true && this.isSetPool();
+    boolean that_present_pool = true && that.isSetPool();
+    if (this_present_pool || that_present_pool) {
+      if (!(this_present_pool && that_present_pool))
+        return false;
+      if (!this.pool.equals(that.pool))
+        return false;
+    }
+
+    boolean this_present_trigger = true && this.isSetTrigger();
+    boolean that_present_trigger = true && that.isSetTrigger();
+    if (this_present_trigger || that_present_trigger) {
+      if (!(this_present_trigger && that_present_trigger))
+        return false;
+      if (!this.trigger.equals(that.trigger))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    List<Object> list = new ArrayList<Object>();
+
+    boolean present_pool = true && (isSetPool());
+    list.add(present_pool);
+    if (present_pool)
+      list.add(pool);
+
+    boolean present_trigger = true && (isSetTrigger());
+    list.add(present_trigger);
+    if (present_trigger)
+      list.add(trigger);
+
+    return list.hashCode();
+  }
+
+  @Override
+  public int compareTo(WMPoolTrigger other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+
+    lastComparison = Boolean.valueOf(isSetPool()).compareTo(other.isSetPool());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetPool()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pool, other.pool);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetTrigger()).compareTo(other.isSetTrigger());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetTrigger()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.trigger, other.trigger);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("WMPoolTrigger(");
+    boolean first = true;
+
+    sb.append("pool:");
+    if (this.pool == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.pool);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("trigger:");
+    if (this.trigger == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.trigger);
+    }
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    if (!isSetPool()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'pool' is unset! Struct:" + toString());
+    }
+
+    if (!isSetTrigger()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'trigger' is unset! Struct:" + toString());
+    }
+
+    // check for sub-struct validity
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+    try {
+      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private static class WMPoolTriggerStandardSchemeFactory implements SchemeFactory {
+    public WMPoolTriggerStandardScheme getScheme() {
+      return new WMPoolTriggerStandardScheme();
+    }
+  }
+
+  private static class WMPoolTriggerStandardScheme extends StandardScheme<WMPoolTrigger> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, WMPoolTrigger struct) throws org.apache.thrift.TException {
+      org.apache.thrift.protocol.TField schemeField;
+      iprot.readStructBegin();
+      while (true)
+      {
+        schemeField = iprot.readFieldBegin();
+        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+          break;
+        }
+        switch (schemeField.id) {
+          case 1: // POOL
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.pool = iprot.readString();
+              struct.setPoolIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // TRIGGER
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.trigger = iprot.readString();
+              struct.setTriggerIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, WMPoolTrigger struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.pool != null) {
+        oprot.writeFieldBegin(POOL_FIELD_DESC);
+        oprot.writeString(struct.pool);
+        oprot.writeFieldEnd();
+      }
+      if (struct.trigger != null) {
+        oprot.writeFieldBegin(TRIGGER_FIELD_DESC);
+        oprot.writeString(struct.trigger);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class WMPoolTriggerTupleSchemeFactory implements SchemeFactory {
+    public WMPoolTriggerTupleScheme getScheme() {
+      return new WMPoolTriggerTupleScheme();
+    }
+  }
+
+  private static class WMPoolTriggerTupleScheme extends TupleScheme<WMPoolTrigger> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, WMPoolTrigger struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      oprot.writeString(struct.pool);
+      oprot.writeString(struct.trigger);
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, WMPoolTrigger struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      struct.pool = iprot.readString();
+      struct.setPoolIsSet(true);
+      struct.trigger = iprot.readString();
+      struct.setTriggerIsSet(true);
+    }
+  }
+
+}
+

http://git-wip-us.apache.org/repos/asf/hive/blob/ddce801f/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMResourcePlan.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMResourcePlan.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMResourcePlan.java
index 5dfb153..795ece6 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMResourcePlan.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMResourcePlan.java
@@ -35,7 +35,7 @@ import org.slf4j.LoggerFactory;
 
 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
 @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
-public class WMResourcePlan implements org.apache.thrift.TBase<WMResourcePlan, WMResourcePlan._Fields>, java.io.Serializable, Cloneable, Comparable<WMResourcePlan> {
+@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class WMResourcePlan implements org.apache.thrift.TBase<WMResourcePlan, WMResourcePlan._Fields>, java.io.Serializable, Cloneable, Comparable<WMResourcePlan> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("WMResourcePlan");
 
   private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);

http://git-wip-us.apache.org/repos/asf/hive/blob/ddce801f/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMTrigger.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMTrigger.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMTrigger.java
index eb745d6..02c55c3 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMTrigger.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMTrigger.java
@@ -35,7 +35,7 @@ import org.slf4j.LoggerFactory;
 
 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
 @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
-public class WMTrigger implements org.apache.thrift.TBase<WMTrigger, WMTrigger._Fields>, java.io.Serializable, Cloneable, Comparable<WMTrigger> {
+@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class WMTrigger implements org.apache.thrift.TBase<WMTrigger, WMTrigger._Fields>, java.io.Serializable, Cloneable, Comparable<WMTrigger> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("WMTrigger");
 
   private static final org.apache.thrift.protocol.TField RESOURCE_PLAN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("resourcePlanName", org.apache.thrift.protocol.TType.STRING, (short)1);

http://git-wip-us.apache.org/repos/asf/hive/blob/ddce801f/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanRequest.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanRequest.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanRequest.java
index 184912e..aad6d43 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanRequest.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanRequest.java
@@ -35,7 +35,7 @@ import org.slf4j.LoggerFactory;
 
 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
 @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
-public class WMValidateResourcePlanRequest implements org.apache.thrift.TBase<WMValidateResourcePlanRequest, WMValidateResourcePlanRequest._Fields>, java.io.Serializable, Cloneable, Comparable<WMValidateResourcePlanRequest> {
+@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class WMValidateResourcePlanRequest implements org.apache.thrift.TBase<WMValidateResourcePlanRequest, WMValidateResourcePlanRequest._Fields>, java.io.Serializable, Cloneable, Comparable<WMValidateResourcePlanRequest> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("WMValidateResourcePlanRequest");
 
   private static final org.apache.thrift.protocol.TField RESOURCE_PLAN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("resourcePlanName", org.apache.thrift.protocol.TType.STRING, (short)1);

http://git-wip-us.apache.org/repos/asf/hive/blob/ddce801f/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java
index fe8a64b..17938ae 100644
--- a/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java
+++ b/standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/WMValidateResourcePlanResponse.java
@@ -35,7 +35,7 @@ import org.slf4j.LoggerFactory;
 
 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
 @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
-public class WMValidateResourcePlanResponse implements org.apache.thrift.TBase<WMValidateResourcePlanResponse, WMValidateResourcePlanResponse._Fields>, java.io.Serializable, Cloneable, Comparable<WMValidateResourcePlanResponse> {
+@org.apache.hadoop.classification.InterfaceAudience.Public @org.apache.hadoop.classification.InterfaceStability.Stable public class WMValidateResourcePlanResponse implements org.apache.thrift.TBase<WMValidateResourcePlanResponse, WMValidateResourcePlanResponse._Fields>, java.io.Serializable, Cloneable, Comparable<WMValidateResourcePlanResponse> {
   private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("WMValidateResourcePlanResponse");
 
   private static final org.apache.thrift.protocol.TField IS_VALID_FIELD_DESC = new org.apache.thrift.protocol.TField("isValid", org.apache.thrift.protocol.TType.BOOL, (short)1);