[ 
https://issues.apache.org/jira/browse/HDFS-6490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14066146#comment-14066146
 ] 

Uma Maheswara Rao G edited comment on HDFS-6490 at 7/18/14 8:04 AM:
--------------------------------------------------------------------

{quote}
I'm confused. Isn't that what DFSUtil.getNamenodeNameServiceId is doing when 
nameserviceId is initialized?
{quote}
In non federated cluster configurations, this will return null right. So, in 
that case, plan is to just skip including nameserviceID? 

Another question: 
>From the description, we need to create the key in the format of host:port. 
>But seems like we are trying that only for ketVersion now and id is 
>considering as still randomUUID?
{code}
 keyId = UUID.randomUUID().toString();
        keyVersion = createNewKey(keyId, src);
{code}



was (Author: umamaheswararao):
{quote}
I'm confused. Isn't that what DFSUtil.getNamenodeNameServiceId is doing when 
nameserviceId is initialized?
{quote}
In non federated cluster configurations, this will return null right. So, in 
that case, plan is to just skip including nameserviceID? 


> Fix the keyid format for generated keys in FSNamesystem.createEncryptionZone 
> -----------------------------------------------------------------------------
>
>                 Key: HDFS-6490
>                 URL: https://issues.apache.org/jira/browse/HDFS-6490
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: namenode, security
>    Affects Versions: fs-encryption (HADOOP-10150 and HDFS-6134)
>            Reporter: Charles Lamb
>            Assignee: Charles Lamb
>         Attachments: HDFS-6490.001.patch, HDFS-6490.002.patch
>
>
> FSNamesystem.createEncryptionZone needs to create key ids with the format 
> hdfs://HOST:PORT/<pathOfEZ>



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to