org.apache.hadoop.hbase.security.access
Interface SecureBulkLoadProtocol

All Superinterfaces:
CoprocessorProtocol, VersionedProtocol
All Known Implementing Classes:
SecureBulkLoadEndpoint

public interface SecureBulkLoadProtocol
extends CoprocessorProtocol

Provides a secure way to bulk load data onto HBase These are internal API. Bulk load should be initiated via LoadIncrementalHFiles with security enabled.


Field Summary
 
Fields inherited from interface org.apache.hadoop.hbase.ipc.CoprocessorProtocol
VERSION
 
Method Summary
 boolean bulkLoadHFiles(List<Pair<byte[],String>> familyPaths, org.apache.hadoop.security.token.Token<?> userToken, String bulkToken, boolean assignSeqNum)
          Secure version of HRegionServer.bulkLoadHFiles().
 void cleanupBulkLoad(String bulkToken)
          Cleanup after bulk load.
 String prepareBulkLoad(byte[] tableName)
          Prepare for bulk load.
 
Methods inherited from interface org.apache.hadoop.hbase.ipc.VersionedProtocol
getProtocolSignature, getProtocolVersion
 

Method Detail

prepareBulkLoad

String prepareBulkLoad(byte[] tableName)
                       throws IOException
Prepare for bulk load. Will be called before bulkLoadHFiles()

Parameters:
tableName -
Returns:
a bulkToken which uniquely identifies the bulk session
Throws:
IOException

cleanupBulkLoad

void cleanupBulkLoad(String bulkToken)
                     throws IOException
Cleanup after bulk load. Will be called after bulkLoadHFiles().

Parameters:
bulkToken -
Throws:
IOException

bulkLoadHFiles

boolean bulkLoadHFiles(List<Pair<byte[],String>> familyPaths,
                       org.apache.hadoop.security.token.Token<?> userToken,
                       String bulkToken,
                       boolean assignSeqNum)
                       throws IOException
Secure version of HRegionServer.bulkLoadHFiles().

Parameters:
familyPaths - column family to HFile path pairs
userToken - requesting user's HDFS delegation token
bulkToken -
assignSeqId -
Returns:
Throws:
IOException


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.