public static class HadoopShims.NoopHdfsEncryptionShim extends Object implements HadoopShims.HdfsEncryptionShim
| Constructor and Description |
|---|
NoopHdfsEncryptionShim() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
arePathsOnSameEncryptionZone(org.apache.hadoop.fs.Path path1,
org.apache.hadoop.fs.Path path2)
Checks if two HDFS paths are on the same encrypted or unencrypted zone.
|
boolean |
arePathsOnSameEncryptionZone(org.apache.hadoop.fs.Path path1,
org.apache.hadoop.fs.Path path2,
HadoopShims.HdfsEncryptionShim encryptionShim2)
Checks if two HDFS paths are on the same encrypted or unencrypted zone.
|
int |
comparePathKeyStrength(org.apache.hadoop.fs.Path path1,
org.apache.hadoop.fs.Path path2)
Compares two encrypted path strengths.
|
void |
createEncryptionZone(org.apache.hadoop.fs.Path path,
String keyName)
create encryption zone by path and keyname
|
void |
createKey(String keyName,
int bitLength)
Creates an encryption key.
|
void |
deleteKey(String keyName) |
List<String> |
getKeys() |
boolean |
isPathEncrypted(org.apache.hadoop.fs.Path path)
Checks if a given HDFS path is encrypted.
|
public boolean isPathEncrypted(org.apache.hadoop.fs.Path path)
throws IOException
HadoopShims.HdfsEncryptionShimisPathEncrypted in interface HadoopShims.HdfsEncryptionShimpath - Path to HDFS file systemIOException - If an error occurred attempting to get encryption informationpublic boolean arePathsOnSameEncryptionZone(org.apache.hadoop.fs.Path path1,
org.apache.hadoop.fs.Path path2)
throws IOException
HadoopShims.HdfsEncryptionShimarePathsOnSameEncryptionZone in interface HadoopShims.HdfsEncryptionShimpath1 - Path to HDFS file systempath2 - Path to HDFS file systemIOException - If an error occurred attempting to get encryption informationpublic boolean arePathsOnSameEncryptionZone(org.apache.hadoop.fs.Path path1,
org.apache.hadoop.fs.Path path2,
HadoopShims.HdfsEncryptionShim encryptionShim2)
throws IOException
HadoopShims.HdfsEncryptionShimarePathsOnSameEncryptionZone in interface HadoopShims.HdfsEncryptionShimpath1 - Path to HDFS file systempath2 - Path to HDFS file systemencryptionShim2 - The encryption-shim corresponding to path2.IOException - If an error occurred attempting to get encryption informationpublic int comparePathKeyStrength(org.apache.hadoop.fs.Path path1,
org.apache.hadoop.fs.Path path2)
throws IOException
HadoopShims.HdfsEncryptionShimcomparePathKeyStrength in interface HadoopShims.HdfsEncryptionShimpath1 - HDFS path to compare.path2 - HDFS path to compare.IOException - If an error occurred attempting to get encryption/key metadatapublic void createEncryptionZone(org.apache.hadoop.fs.Path path,
String keyName)
HadoopShims.HdfsEncryptionShimcreateEncryptionZone in interface HadoopShims.HdfsEncryptionShimpath - HDFS path to create encryption zonekeyName - keynamepublic void createKey(String keyName, int bitLength)
HadoopShims.HdfsEncryptionShimcreateKey in interface HadoopShims.HdfsEncryptionShimkeyName - Name of the keybitLength - Key encryption length in bits (128 or 256).public void deleteKey(String keyName) throws IOException
deleteKey in interface HadoopShims.HdfsEncryptionShimIOExceptionpublic List<String> getKeys() throws IOException
getKeys in interface HadoopShims.HdfsEncryptionShimIOExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.