@InterfaceAudience.Private public class SecureBulkLoadEndpoint extends org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.SecureBulkLoadService implements CoprocessorService, Coprocessor
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
SecureBulkLoadEndpoint.Consumer<T> |
private static class |
SecureBulkLoadEndpoint.SecureBulkLoadListener |
org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.SecureBulkLoadService.BlockingInterface, org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.SecureBulkLoadService.Interface, org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.SecureBulkLoadService.Stub
Coprocessor.State
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.fs.Path |
baseStagingDir |
private org.apache.hadoop.conf.Configuration |
conf |
private RegionCoprocessorEnvironment |
env |
private org.apache.hadoop.fs.FileSystem |
fs |
static String |
FS_WITHOUT_SUPPORT_PERMISSION_DEFAULT |
static String |
FS_WITHOUT_SUPPORT_PERMISSION_KEY |
private static SecureBulkLoadEndpoint.Consumer<Region> |
fsCreatedListener |
private static org.apache.commons.logging.Log |
LOG |
private static org.apache.hadoop.fs.permission.FsPermission |
PERM_ALL_ACCESS |
private static org.apache.hadoop.fs.permission.FsPermission |
PERM_HIDDEN |
private SecureRandom |
random |
private static int |
RANDOM_RADIX |
private static int |
RANDOM_WIDTH |
private static HashMap<org.apache.hadoop.security.UserGroupInformation,org.apache.commons.lang.mutable.MutableInt> |
ugiReferenceCounter |
private UserProvider |
userProvider |
static long |
VERSION |
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER
Constructor and Description |
---|
SecureBulkLoadEndpoint() |
Modifier and Type | Method and Description |
---|---|
void |
cleanupBulkLoad(com.google.protobuf.RpcController controller,
org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.CleanupBulkLoadRequest request,
com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.CleanupBulkLoadResponse> done)
rpc CleanupBulkLoad(.CleanupBulkLoadRequest) returns (.CleanupBulkLoadResponse); |
private org.apache.hadoop.fs.Path |
createStagingDir(org.apache.hadoop.fs.Path baseDir,
User user,
String randomDir) |
private org.apache.hadoop.fs.Path |
createStagingDir(org.apache.hadoop.fs.Path baseDir,
User user,
TableName tableName) |
private void |
decrementUgiReference(org.apache.hadoop.security.UserGroupInformation ugi) |
private User |
getActiveUser() |
private List<BulkLoadObserver> |
getBulkLoadObservers() |
(package private) Set<String> |
getFileSystemSchemesWithoutPermissionSupport(org.apache.hadoop.conf.Configuration conf) |
com.google.protobuf.Service |
getService() |
private void |
incrementUgiReference(org.apache.hadoop.security.UserGroupInformation ugi) |
private boolean |
isUserReferenced(org.apache.hadoop.security.UserGroupInformation ugi) |
void |
prepareBulkLoad(com.google.protobuf.RpcController controller,
org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.PrepareBulkLoadRequest request,
com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.PrepareBulkLoadResponse> done)
rpc PrepareBulkLoad(.PrepareBulkLoadRequest) returns (.PrepareBulkLoadResponse); |
void |
secureBulkLoadHFiles(com.google.protobuf.RpcController controller,
org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.SecureBulkLoadHFilesRequest request,
com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.SecureBulkLoadHFilesResponse> done)
rpc SecureBulkLoadHFiles(.SecureBulkLoadHFilesRequest) returns (.SecureBulkLoadHFilesResponse); |
(package private) static void |
setFsCreatedListener(SecureBulkLoadEndpoint.Consumer<Region> listener) |
void |
start(CoprocessorEnvironment env) |
void |
stop(CoprocessorEnvironment env) |
public static final long VERSION
private static final int RANDOM_WIDTH
private static final int RANDOM_RADIX
private static final org.apache.commons.logging.Log LOG
private static final org.apache.hadoop.fs.permission.FsPermission PERM_ALL_ACCESS
private static final org.apache.hadoop.fs.permission.FsPermission PERM_HIDDEN
public static final String FS_WITHOUT_SUPPORT_PERMISSION_KEY
public static final String FS_WITHOUT_SUPPORT_PERMISSION_DEFAULT
private SecureRandom random
private org.apache.hadoop.fs.FileSystem fs
private org.apache.hadoop.conf.Configuration conf
private org.apache.hadoop.fs.Path baseStagingDir
private RegionCoprocessorEnvironment env
private UserProvider userProvider
private static HashMap<org.apache.hadoop.security.UserGroupInformation,org.apache.commons.lang.mutable.MutableInt> ugiReferenceCounter
private static SecureBulkLoadEndpoint.Consumer<Region> fsCreatedListener
public void start(CoprocessorEnvironment env)
start
in interface Coprocessor
Set<String> getFileSystemSchemesWithoutPermissionSupport(org.apache.hadoop.conf.Configuration conf)
public void stop(CoprocessorEnvironment env) throws IOException
stop
in interface Coprocessor
IOException
public void prepareBulkLoad(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.PrepareBulkLoadRequest request, com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.PrepareBulkLoadResponse> done)
org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.SecureBulkLoadService
rpc PrepareBulkLoad(.PrepareBulkLoadRequest) returns (.PrepareBulkLoadResponse);
prepareBulkLoad
in class org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.SecureBulkLoadService
public void cleanupBulkLoad(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.CleanupBulkLoadRequest request, com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.CleanupBulkLoadResponse> done)
org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.SecureBulkLoadService
rpc CleanupBulkLoad(.CleanupBulkLoadRequest) returns (.CleanupBulkLoadResponse);
cleanupBulkLoad
in class org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.SecureBulkLoadService
static void setFsCreatedListener(SecureBulkLoadEndpoint.Consumer<Region> listener)
private void incrementUgiReference(org.apache.hadoop.security.UserGroupInformation ugi)
private void decrementUgiReference(org.apache.hadoop.security.UserGroupInformation ugi)
private boolean isUserReferenced(org.apache.hadoop.security.UserGroupInformation ugi)
public void secureBulkLoadHFiles(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.SecureBulkLoadHFilesRequest request, com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.SecureBulkLoadHFilesResponse> done)
org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.SecureBulkLoadService
rpc SecureBulkLoadHFiles(.SecureBulkLoadHFilesRequest) returns (.SecureBulkLoadHFilesResponse);
secureBulkLoadHFiles
in class org.apache.hadoop.hbase.protobuf.generated.SecureBulkLoadProtos.SecureBulkLoadService
private List<BulkLoadObserver> getBulkLoadObservers()
private org.apache.hadoop.fs.Path createStagingDir(org.apache.hadoop.fs.Path baseDir, User user, TableName tableName) throws IOException
IOException
private org.apache.hadoop.fs.Path createStagingDir(org.apache.hadoop.fs.Path baseDir, User user, String randomDir) throws IOException
IOException
private User getActiveUser()
public com.google.protobuf.Service getService()
getService
in interface CoprocessorService
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.