Package org.apache.accumulo.core.file

Examples of org.apache.accumulo.core.file.FileSKVWriter.startDefaultLocalityGroup()


      // the root tablet contains the key extent and locations of all the
      // metadata tablets
      String initRootTabFile = ServerConstants.getMetadataTableDir() + "/root_tablet/00000_00000."
          + FileOperations.getNewFileExtension(AccumuloConfiguration.getDefaultConfiguration());
      FileSKVWriter mfw = FileOperations.getInstance().openWriter(initRootTabFile, fs, conf, AccumuloConfiguration.getDefaultConfiguration());
      mfw.startDefaultLocalityGroup();
     
      // -----------] root tablet info
      Text rootExtent = Constants.ROOT_TABLET_EXTENT.getMetadataEntry();
     
      // root's directory
View Full Code Here


          entriesCompacted = partitionData(fai, groups, mfw);
        } else {
         
          // no locality groups or locality groups not supported,
          // so just write everything to default
          mfw.startDefaultLocalityGroup();
          while (fai.hasTop()) {
            mfw.append(fai.getTopKey(), fai.getTopValue());
            fai.next();
            entriesCompacted++;
          }
View Full Code Here

    TreeMap<Key,Value> files = new TreeMap<Key,Value>();
   
    fs.mkdirs(new Path(Constants.getMetadataTableDir() + "_new" + "/default_tablet"));
    FileSKVWriter defaultTabletFile = FileOperations.getInstance().openWriter(Constants.getMetadataTableDir() + "_new" + "/default_tablet/00000_00000.rf", fs,
        conf, AccumuloConfiguration.getDefaultConfiguration());
    defaultTabletFile.startDefaultLocalityGroup();
   
    while (rootIter.hasTop()) {
      Key key = rootIter.getTopKey();
      Value val = rootIter.getTopValue();
     
View Full Code Here

    defaultTabletFile.close();
   
    fs.mkdirs(new Path(Constants.getMetadataTableDir() + "_new" + "/root_tablet"));
    FileSKVWriter rootTabletFile = FileOperations.getInstance().openWriter(Constants.getMetadataTableDir() + "_new" + "/root_tablet/00000_00000.rf", fs, conf,
        AccumuloConfiguration.getDefaultConfiguration());
    rootTabletFile.startDefaultLocalityGroup();
   
    Text rootExtent = Constants.ROOT_TABLET_EXTENT.getMetadataEntry();
   
    // root's directory
    Key rootDirKey = new Key(rootExtent, Constants.METADATA_DIRECTORY_COLUMN.getColumnFamily(), Constants.METADATA_DIRECTORY_COLUMN.getColumnQualifier(), 0);
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.