Examples of LoadPartitionDoneEvent


Examples of org.apache.hadoop.hive.metastore.events.LoadPartitionDoneEvent

        tbl = getMS().markPartitionForEvent(db_name, tbl_name, partName, evtType);
        if (null == tbl) {
          throw new UnknownTableException("Table: " + tbl_name + " not found.");
        } else {
          for (MetaStoreEventListener listener : listeners) {
            listener.onLoadPartitionDone(new LoadPartitionDoneEvent(true, tbl, partName, this));
          }
        }
      } catch (Exception original) {
        ex = original;
        LOG.error(original);
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.events.LoadPartitionDoneEvent

        }
        if (null == tbl) {
          throw new UnknownTableException("Table: "+tbl_name + " not found.");
        } else{
          for(MetaStoreEventListener listener : listeners){
            listener.onLoadPartitionDone(new LoadPartitionDoneEvent(true, this, tbl, partName));
          }
        }
      }
      finally{
        endFunction("markPartitionForEvent");
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.events.LoadPartitionDoneEvent

    Map<String,String> kvs = new HashMap<String, String>(1);
    kvs.put("b", "2011");
    msc.markPartitionForEvent("tmpdb", "tmptbl", kvs, PartitionEventType.LOAD_DONE);
    listSize++;
    assertEquals(notifyList.size(), listSize);
    LoadPartitionDoneEvent partMarkEvent = (LoadPartitionDoneEvent)notifyList.get(listSize - 1);
    assert partMarkEvent.getStatus();
    assertEquals(partMarkEvent.getPartitionName(), kvs);
    assertEquals(partMarkEvent.getTable().getTableName(), "tmptbl");

    driver.run(String.format("alter table %s drop partition (b='2011')", tblName));
    listSize++;
    assertEquals(notifyList.size(), listSize);
    DropPartitionEvent dropPart = (DropPartitionEvent)notifyList.get(listSize - 1);
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.events.LoadPartitionDoneEvent

        tbl = getMS().markPartitionForEvent(db_name, tbl_name, partName, evtType);
        if (null == tbl) {
          throw new UnknownTableException("Table: " + tbl_name + " not found.");
        } else {
          for (MetaStoreEventListener listener : listeners) {
            listener.onLoadPartitionDone(new LoadPartitionDoneEvent(true, tbl, partName, this));
          }
        }
      } catch (Exception original) {
        ex = original;
        LOG.error(original);
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.events.LoadPartitionDoneEvent

    msc.markPartitionForEvent("tmpdb", "tmptbl", kvs, PartitionEventType.LOAD_DONE);
    listSize++;
    assertEquals(notifyList.size(), listSize);
    assertEquals(preNotifyList.size(), listSize);

    LoadPartitionDoneEvent partMarkEvent = (LoadPartitionDoneEvent)notifyList.get(listSize - 1);
    assert partMarkEvent.getStatus();
    validateLoadPartitionDone("tmptbl", kvs, partMarkEvent.getTable().getTableName(),
        partMarkEvent.getPartitionName());

    PreLoadPartitionDoneEvent prePartMarkEvent =
        (PreLoadPartitionDoneEvent)preNotifyList.get(listSize - 1);
    validateLoadPartitionDone("tmptbl", kvs, prePartMarkEvent.getTableName(),
        prePartMarkEvent.getPartitionName());
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.events.LoadPartitionDoneEvent

        tbl = getMS().markPartitionForEvent(db_name, tbl_name, partName, evtType);
        if (null == tbl) {
          throw new UnknownTableException("Table: " + tbl_name + " not found.");
        } else {
          for (MetaStoreEventListener listener : listeners) {
            listener.onLoadPartitionDone(new LoadPartitionDoneEvent(true, tbl, partName, this));
          }
        }
      } catch (Exception original) {
        ex = original;
        LOG.error(original);
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.events.LoadPartitionDoneEvent

    Map<String,String> kvs = new HashMap<String, String>(1);
    kvs.put("b", "2011");
    msc.markPartitionForEvent("tmpdb", "tmptbl", kvs, PartitionEventType.LOAD_DONE);
    listSize++;
    assertEquals(notifyList.size(), listSize);
    LoadPartitionDoneEvent partMarkEvent = (LoadPartitionDoneEvent)notifyList.get(listSize - 1);
    assert partMarkEvent.getStatus();
    assertEquals(partMarkEvent.getPartitionName(), kvs);
    assertEquals(partMarkEvent.getTable().getTableName(), "tmptbl");

    driver.run(String.format("alter table %s drop partition (b='2011')", tblName));
    listSize++;
    assertEquals(notifyList.size(), listSize);
    DropPartitionEvent dropPart = (DropPartitionEvent)notifyList.get(listSize - 1);
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.events.LoadPartitionDoneEvent

        }
        if (null == tbl) {
          throw new UnknownTableException("Table: "+tbl_name + " not found.");
        } else{
          for(MetaStoreEventListener listener : listeners){
            listener.onLoadPartitionDone(new LoadPartitionDoneEvent(true, this, tbl, partName));
          }
        }
      }
      finally{
        endFunction("markPartitionForEvent", tbl != null);
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.events.LoadPartitionDoneEvent

        }
        if (null == tbl) {
          throw new UnknownTableException("Table: " + tbl_name + " not found.");
        } else {
          for (MetaStoreEventListener listener : listeners) {
            listener.onLoadPartitionDone(new LoadPartitionDoneEvent(true, this, tbl, partName));
          }
        }
      } finally {
        endFunction("markPartitionForEvent", tbl != null);
      }
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.events.LoadPartitionDoneEvent

        tbl = getMS().markPartitionForEvent(db_name, tbl_name, partName, evtType);
        if (null == tbl) {
          throw new UnknownTableException("Table: " + tbl_name + " not found.");
        } else {
          for (MetaStoreEventListener listener : listeners) {
            listener.onLoadPartitionDone(new LoadPartitionDoneEvent(true, tbl, partName, this));
          }
        }
      } catch (Exception original) {
        ex = original;
        LOG.error(original);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.