hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yi Liu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-6426) Remove CRLF for xattr value base64 encoding for better display.
Date Sat, 17 May 2014 11:03:14 GMT

     [ https://issues.apache.org/jira/browse/HDFS-6426?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Yi Liu updated HDFS-6426:
-------------------------

    Attachment: HDFS-6426.patch

Use {{new Base64(0)}} for base64 encoding.

> Remove CRLF for xattr value base64 encoding for better display.
> ---------------------------------------------------------------
>
>                 Key: HDFS-6426
>                 URL: https://issues.apache.org/jira/browse/HDFS-6426
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>    Affects Versions: HDFS XAttrs (HDFS-2006)
>            Reporter: Yi Liu
>            Assignee: Yi Liu
>            Priority: Minor
>             Fix For: HDFS XAttrs (HDFS-2006)
>
>         Attachments: HDFS-6426.patch
>
>
> {{Base64.encodeBase64String(value)}} encodes binary data using the base64 algorithm into
76 character blocks separated by CRLF.
> In fs shell, xattrs display like:
> {code}
> # file: /user
> user.a1=0sMTIz
> user.a2=0sMTIzNDU2
> user.a3=0sMTIzNDU2
> {code}
> We don't need multiple line and CRLF for xattr value, and we can use:
> {code}
> Base64 base64 = new Base64(0);
> base64.encodeToString(value);
> {code}



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

Mime
View raw message