[
https://issues.apache.org/jira/browse/HDFS-11687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15980670#comment-15980670
]
Ferdinand Xu edited comment on HDFS-11687 at 4/24/17 3:09 AM:
--------------------------------------------------------------
The encryption related APIs are invoked in {noformat}HdfsEncryptionShim
{noformat} in Hive side. APIs come as follows:
{noformat}
HdfsAdmin.getEncryptionZoneForPath(Path path)
HdfsAdmin.createEncryptionZone(Path path, String keyName)
{noformat}.
As [~lirui] mentioned, we need a way to obtain KeyProvider instance like
dfs.getClient().getKeyProvider()
was (Author: ferd):
The encryption related APIs are invoked in {noformat}HdfsEncryptionShim
{noformat}. APIs come as follows:
{noformat}
HdfsAdmin.getEncryptionZoneForPath(Path path)
HdfsAdmin.createEncryptionZone(Path path, String keyName)
{noformat}
As [~lirui] mentioned, we need a way to obtain KeyProvider instance like
dfs.getClient().getKeyProvider()
> Add new public encryption APIs required by Hive
> -----------------------------------------------
>
> Key: HDFS-11687
> URL: https://issues.apache.org/jira/browse/HDFS-11687
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: encryption
> Affects Versions: 2.6.5
> Reporter: Andrew Wang
>
> As discovered on HADOOP-14333, Hive is using reflection to get a DFSClient
> for its encryption shim. We should provide proper public APIs for getting
> this information.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]