hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-6842) "hadoop fs -text" does not give a useful text representation of MapWritable objects
Date Sat, 09 May 2015 11:58:19 GMT

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

Hudson commented on HADOOP-6842:
--------------------------------

SUCCESS: Integrated in Hadoop-Yarn-trunk-Java8 #191 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/191/])
HADOOP-6842. "hadoop fs -text" does not give a useful text representation of MapWritable objects
(evans: rev cc17c83585f581d56e7c42b91464cd7a99e8cf90)
* hadoop-common-project/hadoop-common/CHANGES.txt
* hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestMapWritable.java
* hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/MapWritable.java


> "hadoop fs -text" does not give a useful text representation of MapWritable objects
> -----------------------------------------------------------------------------------
>
>                 Key: HADOOP-6842
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6842
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: io
>    Affects Versions: 0.20.0
>            Reporter: Steven Wong
>            Assignee: Akira AJISAKA
>             Fix For: 3.0.0, 2.8.0
>
>         Attachments: HADOOP-6842.002.patch, HADOOP-6842.patch
>
>
> If a sequence file contains MapWritable objects, running "hadoop fs -text" on the file
prints the following for each MapWritable:
> org.apache.hadoop.io.MapWritable@4f8235ed
> To be more useful, it should print out the contents of the map instead. This can be done
by adding a toString method to MapWritable, i.e. something like:
> public String toString() {
>     return (new TreeMap<Writable, Writable>(instance)).toString();
> }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message