You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org> on 2014/05/21 16:48:38 UTC

[jira] [Updated] (HADOOP-10621) Remove CRLF for xattr value base64 encoding for better display.

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

Uma Maheswara Rao G updated HADOOP-10621:
-----------------------------------------

    Issue Type: Sub-task  (was: Improvement)
        Parent: HADOOP-10514

> Remove CRLF for xattr value base64 encoding for better display.
> ---------------------------------------------------------------
>
>                 Key: HADOOP-10621
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10621
>             Project: Hadoop Common
>          Issue Type: Sub-task
>    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)