public class HdfsClientBlobStore extends ClientBlobStore
Client to access the HDFS blobStore. At this point, this is meant to only be used by the supervisor. Don’t trust who the client says they are so pass null for all Subjects.
The HdfsBlobStore implementation takes care of the null Subjects. It assigns Subjects based on what hadoop says who the users are. These users must be configured accordingly in the SUPERVISOR_ADMINS for ACL validation and for the supervisors to download the blobs. This API is only used by the supervisor in order to talk directly to HDFS.
conf| Constructor and Description |
|---|
HdfsClientBlobStore() |
| Modifier and Type | Method and Description |
|---|---|
AtomicOutputStream |
createBlobToExtend(String key,
SettableBlobMeta meta) |
void |
createStateInZookeeper(String key) |
void |
deleteBlob(String key) |
InputStreamWithMeta |
getBlob(String key) |
ReadableBlobMeta |
getBlobMeta(String key) |
int |
getBlobReplication(String key) |
Iterator<String> |
listKeys() |
void |
prepare(Map conf) |
void |
setBlobMetaToExtend(String key,
SettableBlobMeta meta) |
boolean |
setClient(Map conf,
NimbusClient client) |
void |
shutdown() |
AtomicOutputStream |
updateBlob(String key) |
int |
updateBlobReplication(String key,
int replication) |
createBlob, setBlobMetapublic void prepare(Map conf)
prepare in class ClientBlobStorepublic AtomicOutputStream createBlobToExtend(String key, SettableBlobMeta meta) throws AuthorizationException, KeyAlreadyExistsException
createBlobToExtend in class ClientBlobStoreAuthorizationExceptionKeyAlreadyExistsExceptionpublic AtomicOutputStream updateBlob(String key) throws AuthorizationException, KeyNotFoundException
updateBlob in class ClientBlobStoreAuthorizationExceptionKeyNotFoundExceptionpublic ReadableBlobMeta getBlobMeta(String key) throws AuthorizationException, KeyNotFoundException
getBlobMeta in class ClientBlobStoreAuthorizationExceptionKeyNotFoundExceptionpublic void setBlobMetaToExtend(String key, SettableBlobMeta meta) throws AuthorizationException, KeyNotFoundException
setBlobMetaToExtend in class ClientBlobStoreAuthorizationExceptionKeyNotFoundExceptionpublic void deleteBlob(String key) throws AuthorizationException, KeyNotFoundException
deleteBlob in class ClientBlobStoreAuthorizationExceptionKeyNotFoundExceptionpublic InputStreamWithMeta getBlob(String key) throws AuthorizationException, KeyNotFoundException
getBlob in class ClientBlobStoreAuthorizationExceptionKeyNotFoundExceptionpublic Iterator<String> listKeys()
listKeys in class ClientBlobStorepublic int getBlobReplication(String key) throws AuthorizationException, KeyNotFoundException
getBlobReplication in class ClientBlobStoreAuthorizationExceptionKeyNotFoundExceptionpublic int updateBlobReplication(String key, int replication) throws AuthorizationException, KeyNotFoundException
updateBlobReplication in class ClientBlobStoreAuthorizationExceptionKeyNotFoundExceptionpublic boolean setClient(Map conf, NimbusClient client)
setClient in class ClientBlobStorepublic void createStateInZookeeper(String key)
createStateInZookeeper in class ClientBlobStorepublic void shutdown()
Copyright © 2018 The Apache Software Foundation. All Rights Reserved.