[
https://issues.apache.org/jira/browse/HDFS-6426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14000742#comment-14000742
]
Yi Liu commented on HDFS-6426:
------------------------------
{{TestXAttrCLI}} covers the test.
> 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)