Package org.apache.hadoop.hbase.client

Examples of org.apache.hadoop.hbase.client.Table.flushCommits()


      hri.setOffline(true);
      hri.setSplit(true);

      MetaTableAccessor.addRegionToMeta(meta, hri, a, b);
      meta.flushCommits();
      TEST_UTIL.getHBaseAdmin().flush(TableName.META_TABLE_NAME);

      HBaseFsck hbck = doFsck(conf, false);
      assertErrors(hbck, new ERROR_CODE[] {
        ERROR_CODE.LINGERING_SPLIT_PARENT, ERROR_CODE.HOLE_IN_REGION_CHAIN});
View Full Code Here


      undeployRegion(admin, hris.get(daughters.getFirst()), daughters.getFirst());
      undeployRegion(admin, hris.get(daughters.getSecond()), daughters.getSecond());

      meta.delete(new Delete(daughters.getFirst().getRegionName()));
      meta.delete(new Delete(daughters.getSecond().getRegionName()));
      meta.flushCommits();

      // Remove daughters from regionStates
      RegionStates regionStates = TEST_UTIL.getMiniHBaseCluster().getMaster().
        getAssignmentManager().getRegionStates();
      regionStates.deleteRegion(daughters.getFirst());
View Full Code Here

    // Having another row would actually test the filter.
    p = new Put(ROW2);
    p.add(FAMILYA, QUAL, now, QUAL);
    exportTable.put(p);
    // Flush the commits.
    exportTable.flushCommits();

    // Export the simple table
    String[] args = new String[] { EXPORT_TABLE, FQ_OUTPUT_DIR, "1000" };
    assertTrue(runExport(args));
View Full Code Here

      put.setCellVisibility(new CellVisibility("(" + SECRET + "|" + CONFIDENTIAL + ")" + "&" + "!"
          + TOPSECRET));
      table.put(put);
      count++;
    }
    table.flushCommits();
    return count;
  }

  private static int countCellSet(CellSetModel model) {
    int count = 0;
View Full Code Here

        i++;
      }
      table.put(puts);
    } finally {
      if (table != null) {
        table.flushCommits();
      }
    }
    return table;
  }
View Full Code Here

            count++;
          }
        }
      }
    }
    table.flushCommits();
    table.close();
    return count;
  }

  static int countCellSet(CellSetModel model) {
View Full Code Here

            getValue(batchId, i, j));
      }
      put.setDurability(Durability.SKIP_WAL);
      table.put(put);
    }
    table.flushCommits();
    table.close();
  }

  static void verifyTestDataBatch(Configuration conf, String tableName,
      int batchId) throws Exception {
View Full Code Here

            del.deleteColumns(cf, qual, ts);
          }
        }
        table.put(put);
        table.delete(del);
        table.flushCommits();
      }
    }
    TEST_UTIL.waitUntilAllRegionsAssigned(TABLE_NAME);
  }
View Full Code Here

            d = new Delete(row1);
            d.setCellVisibility(new CellVisibility(SECRET + "&" + TOPSECRET));
            d.deleteColumns(fam, qual);
            table.delete(d);
            table.flushCommits();

            d = new Delete(row1);
            d.setCellVisibility(new CellVisibility("(" + PRIVATE + "&" + CONFIDENTIAL + ")|("
                + SECRET + "&" + TOPSECRET + ")"));
            d.deleteColumns(fam, qual);
View Full Code Here

            d = new Delete(row1);
            d.setCellVisibility(new CellVisibility("(" + PRIVATE + "&" + CONFIDENTIAL + ")|("
                + SECRET + "&" + TOPSECRET + ")"));
            d.deleteColumns(fam, qual);
            table.delete(d);
            table.flushCommits();
          } catch (Throwable t) {
            throw new IOException(t);
          }
          return null;
        }
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.