@InterfaceAudience.Private public class SecureBulkLoadEndpoint extends BaseEndpointCoprocessor implements SecureBulkLoadProtocol
Coprocessor.State
Modifier and Type | Field and Description |
---|---|
static long |
VERSION |
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER
Constructor and Description |
---|
SecureBulkLoadEndpoint() |
Modifier and Type | Method and Description |
---|---|
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.
|
long |
getProtocolVersion(String protocol,
long clientVersion)
Return protocol version corresponding to protocol interface.
|
static org.apache.hadoop.fs.Path |
getStagingPath(org.apache.hadoop.conf.Configuration conf,
String bulkToken,
byte[] family)
This returns the staging path for a given column family.
|
String |
prepareBulkLoad(byte[] tableName)
Prepare for bulk load.
|
void |
start(CoprocessorEnvironment env) |
getEnvironment, getProtocolSignature, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProtocolSignature
public static final long VERSION
public void start(CoprocessorEnvironment env)
start
in interface Coprocessor
start
in class BaseEndpointCoprocessor
public String prepareBulkLoad(byte[] tableName) throws IOException
SecureBulkLoadProtocol
prepareBulkLoad
in interface SecureBulkLoadProtocol
IOException
public void cleanupBulkLoad(String bulkToken) throws IOException
SecureBulkLoadProtocol
cleanupBulkLoad
in interface SecureBulkLoadProtocol
IOException
public boolean bulkLoadHFiles(List<Pair<byte[],String>> familyPaths, org.apache.hadoop.security.token.Token<?> userToken, String bulkToken, boolean assignSeqNum) throws IOException
SecureBulkLoadProtocol
bulkLoadHFiles
in interface SecureBulkLoadProtocol
familyPaths
- column family to HFile path pairsuserToken
- requesting user's HDFS delegation tokenIOException
public long getProtocolVersion(String protocol, long clientVersion) throws IOException
VersionedProtocol
getProtocolVersion
in interface VersionedProtocol
getProtocolVersion
in class BaseEndpointCoprocessor
protocol
- The classname of the protocol interfaceclientVersion
- The version of the protocol that the client speaksIOException
- if any IO error occurspublic static org.apache.hadoop.fs.Path getStagingPath(org.apache.hadoop.conf.Configuration conf, String bulkToken, byte[] family)
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.