[jira] [Commented] (HADOOP-6842) hadoop fs -text does not give a useful text representation of MapWritable objects
[ https://issues.apache.org/jira/browse/HADOOP-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14536447#comment-14536447 ] Hudson commented on HADOOP-6842: SUCCESS: Integrated in Hadoop-Yarn-trunk #922 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/922/]) 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/main/java/org/apache/hadoop/io/MapWritable.java * hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestMapWritable.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 TreeMapWritable, Writable(instance)).toString(); } -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HADOOP-6842) hadoop fs -text does not give a useful text representation of MapWritable objects
[ https://issues.apache.org/jira/browse/HADOOP-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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 TreeMapWritable, Writable(instance)).toString(); } -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HADOOP-6842) hadoop fs -text does not give a useful text representation of MapWritable objects
[ https://issues.apache.org/jira/browse/HADOOP-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14536702#comment-14536702 ] Hudson commented on HADOOP-6842: SUCCESS: Integrated in Hadoop-Mapreduce-trunk #2138 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2138/]) HADOOP-6842. hadoop fs -text does not give a useful text representation of MapWritable objects (evans: rev cc17c83585f581d56e7c42b91464cd7a99e8cf90) * hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestMapWritable.java * hadoop-common-project/hadoop-common/CHANGES.txt * 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 TreeMapWritable, Writable(instance)).toString(); } -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HADOOP-6842) hadoop fs -text does not give a useful text representation of MapWritable objects
[ https://issues.apache.org/jira/browse/HADOOP-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14536593#comment-14536593 ] Hudson commented on HADOOP-6842: FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #180 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/180/]) HADOOP-6842. hadoop fs -text does not give a useful text representation of MapWritable objects (evans: rev cc17c83585f581d56e7c42b91464cd7a99e8cf90) * hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/MapWritable.java * hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestMapWritable.java * hadoop-common-project/hadoop-common/CHANGES.txt 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 TreeMapWritable, Writable(instance)).toString(); } -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HADOOP-6842) hadoop fs -text does not give a useful text representation of MapWritable objects
[ https://issues.apache.org/jira/browse/HADOOP-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14536542#comment-14536542 ] Hudson commented on HADOOP-6842: FAILURE: Integrated in Hadoop-Hdfs-trunk #2120 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/2120/]) HADOOP-6842. hadoop fs -text does not give a useful text representation of MapWritable objects (evans: rev cc17c83585f581d56e7c42b91464cd7a99e8cf90) * hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestMapWritable.java * hadoop-common-project/hadoop-common/CHANGES.txt * 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 TreeMapWritable, Writable(instance)).toString(); } -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HADOOP-6842) hadoop fs -text does not give a useful text representation of MapWritable objects
[ https://issues.apache.org/jira/browse/HADOOP-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14536655#comment-14536655 ] Hudson commented on HADOOP-6842: SUCCESS: Integrated in Hadoop-Mapreduce-trunk-Java8 #190 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/190/]) HADOOP-6842. hadoop fs -text does not give a useful text representation of MapWritable objects (evans: rev cc17c83585f581d56e7c42b91464cd7a99e8cf90) * 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-common-project/hadoop-common/CHANGES.txt 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 TreeMapWritable, Writable(instance)).toString(); } -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HADOOP-6842) hadoop fs -text does not give a useful text representation of MapWritable objects
[ https://issues.apache.org/jira/browse/HADOOP-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14534944#comment-14534944 ] Hudson commented on HADOOP-6842: FAILURE: Integrated in Hadoop-trunk-Commit #7776 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/7776/]) 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 TreeMapWritable, Writable(instance)).toString(); } -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HADOOP-6842) hadoop fs -text does not give a useful text representation of MapWritable objects
[ https://issues.apache.org/jira/browse/HADOOP-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14534876#comment-14534876 ] Robert Joseph Evans commented on HADOOP-6842: - +1 looks good to me. I'll check this in. 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 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 TreeMapWritable, Writable(instance)).toString(); } -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HADOOP-6842) hadoop fs -text does not give a useful text representation of MapWritable objects
[ https://issues.apache.org/jira/browse/HADOOP-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14531182#comment-14531182 ] Hadoop QA commented on HADOOP-6842: --- \\ \\ | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | pre-patch | 14m 34s | Pre-patch trunk compilation is healthy. | | {color:green}+1{color} | @author | 0m 0s | The patch does not contain any @author tags. | | {color:green}+1{color} | tests included | 0m 0s | The patch appears to include 1 new or modified test files. | | {color:green}+1{color} | javac | 7m 31s | There were no new javac warning messages. | | {color:green}+1{color} | javadoc | 9m 35s | There were no new javadoc warning messages. | | {color:green}+1{color} | release audit | 0m 23s | The applied patch does not increase the total number of release audit warnings. | | {color:green}+1{color} | checkstyle | 1m 4s | There were no new checkstyle issues. | | {color:red}-1{color} | whitespace | 0m 0s | The patch has 1 line(s) that end in whitespace. Use git apply --whitespace=fix. | | {color:green}+1{color} | install | 1m 34s | mvn install still works. | | {color:green}+1{color} | eclipse:eclipse | 0m 32s | The patch built with eclipse:eclipse. | | {color:green}+1{color} | findbugs | 1m 39s | The patch does not introduce any new Findbugs (version 2.0.3) warnings. | | {color:green}+1{color} | common tests | 23m 49s | Tests passed in hadoop-common. | | | | 61m 10s | | \\ \\ || Subsystem || Report/Notes || | Patch URL | http://issues.apache.org/jira/secure/attachment/12730896/HADOOP-6842.002.patch | | Optional Tests | javadoc javac unit findbugs checkstyle | | git revision | trunk / 185e63a | | whitespace | https://builds.apache.org/job/PreCommit-HADOOP-Build/6507/artifact/patchprocess/whitespace.txt | | hadoop-common test log | https://builds.apache.org/job/PreCommit-HADOOP-Build/6507/artifact/patchprocess/testrun_hadoop-common.txt | | Test Results | https://builds.apache.org/job/PreCommit-HADOOP-Build/6507/testReport/ | | Java | 1.7.0_55 | | uname | Linux asf901.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux | | Console output | https://builds.apache.org/job/PreCommit-HADOOP-Build/6507/console | This message was automatically generated. 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 Labels: BB2015-05-TBR 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 TreeMapWritable, Writable(instance)).toString(); } -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HADOOP-6842) hadoop fs -text does not give a useful text representation of MapWritable objects
[ https://issues.apache.org/jira/browse/HADOOP-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14531197#comment-14531197 ] Akira AJISAKA commented on HADOOP-6842: --- bq. -1 whitespace The patch has no trailing whitespaces. I don't know why Jenkins said -1. 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 Labels: BB2015-05-TBR 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 TreeMapWritable, Writable(instance)).toString(); } -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HADOOP-6842) hadoop fs -text does not give a useful text representation of MapWritable objects
[ https://issues.apache.org/jira/browse/HADOOP-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14530946#comment-14530946 ] Akira AJISAKA commented on HADOOP-6842: --- {code} + @Override + String toString() { +return instance.toString(); + } {code} This method need to be public. 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 Labels: BB2015-05-TBR Attachments: 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 TreeMapWritable, Writable(instance)).toString(); } -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HADOOP-6842) hadoop fs -text does not give a useful text representation of MapWritable objects
[ https://issues.apache.org/jira/browse/HADOOP-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14525363#comment-14525363 ] Hadoop QA commented on HADOOP-6842: --- \\ \\ | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | pre-patch | 14m 30s | Pre-patch trunk compilation is healthy. | | {color:green}+1{color} | @author | 0m 0s | The patch does not contain any @author tags. | | {color:red}-1{color} | tests included | 0m 0s | The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. | | {color:red}-1{color} | javac | 0m 34s | The patch appears to cause the build to fail. | \\ \\ || Subsystem || Report/Notes || | Patch URL | http://issues.apache.org/jira/secure/attachment/12593076/HADOOP-6842.patch | | Optional Tests | javadoc javac unit findbugs checkstyle | | git revision | trunk / f1a152c | | Console output | https://builds.apache.org/job/PreCommit-HADOOP-Build/6396/console | This message was automatically generated. 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 Attachments: 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 TreeMapWritable, Writable(instance)).toString(); } -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HADOOP-6842) hadoop fs -text does not give a useful text representation of MapWritable objects
[ https://issues.apache.org/jira/browse/HADOOP-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14525450#comment-14525450 ] Hadoop QA commented on HADOOP-6842: --- \\ \\ | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | pre-patch | 14m 51s | Pre-patch trunk compilation is healthy. | | {color:green}+1{color} | @author | 0m 0s | The patch does not contain any @author tags. | | {color:red}-1{color} | tests included | 0m 0s | The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. | | {color:red}-1{color} | javac | 7m 39s | The applied patch generated 128 additional warning messages. | | {color:green}+1{color} | javadoc | 9m 54s | There were no new javadoc warning messages. | | {color:green}+1{color} | release audit | 0m 23s | The applied patch does not increase the total number of release audit warnings. | | {color:green}+1{color} | checkstyle | 1m 7s | There were no new checkstyle issues. | | {color:green}+1{color} | whitespace | 0m 1s | The patch has no lines that end in whitespace. | | {color:green}+1{color} | install | 1m 34s | mvn install still works. | | {color:green}+1{color} | eclipse:eclipse | 0m 32s | The patch built with eclipse:eclipse. | | {color:green}+1{color} | findbugs | 1m 46s | The patch does not introduce any new Findbugs (version 2.0.3) warnings. | | {color:green}+1{color} | common tests | 22m 10s | Tests passed in hadoop-common. | | | | 60m 7s | | \\ \\ || Subsystem || Report/Notes || | Patch URL | http://issues.apache.org/jira/secure/attachment/12593076/HADOOP-6842.patch | | Optional Tests | javadoc javac unit findbugs checkstyle | | git revision | trunk / 6ae2a0d | | javac | https://builds.apache.org/job/PreCommit-HADOOP-Build/6415/artifact/patchprocess/diffJavacWarnings.txt | | hadoop-common test log | https://builds.apache.org/job/PreCommit-HADOOP-Build/6415/artifact/patchprocess/testrun_hadoop-common.txt | | Test Results | https://builds.apache.org/job/PreCommit-HADOOP-Build/6415/testReport/ | | Java | 1.7.0_55 | | uname | Linux asf903.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux | | Console output | https://builds.apache.org/job/PreCommit-HADOOP-Build/6415/console | This message was automatically generated. 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 Attachments: 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 TreeMapWritable, Writable(instance)).toString(); } -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HADOOP-6842) hadoop fs -text does not give a useful text representation of MapWritable objects
[ https://issues.apache.org/jira/browse/HADOOP-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13712939#comment-13712939 ] Brandon Forehand commented on HADOOP-6842: -- I too would find this patch really useful. I've ran into this exact issue using sequence files containing MapWritables. I think delegating to the {{instance.toString()}} will just work even without using the {{new TreeMap}} invocation. It's been 3 years since this bug was reported, and it appears to be a one line fix. Is there anyone willing to make this change? 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 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 TreeMapWritable, Writable(instance)).toString(); } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-6842) hadoop fs -text does not give a useful text representation of MapWritable objects
[ https://issues.apache.org/jira/browse/HADOOP-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13713007#comment-13713007 ] Hadoop QA commented on HADOOP-6842: --- {color:red}-1 overall{color}. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12593076/HADOOP-6842.patch against trunk revision . {color:green}+1 @author{color}. The patch does not contain any @author tags. {color:red}-1 tests included{color}. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. {color:red}-1 javac{color:red}. The patch appears to cause the build to fail. Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/2816//console This message is automatically generated. 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 Attachments: 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 TreeMapWritable, Writable(instance)).toString(); } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-6842) hadoop fs -text does not give a useful text representation of MapWritable objects
[ https://issues.apache.org/jira/browse/HADOOP-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13713208#comment-13713208 ] Steven Wong commented on HADOOP-6842: - Sorry, I found I don't need a fix anymore after opening this jira. Feel free to own it. I used a TreeMap to ensure the entries are sorted in the printout (easier for me to read). 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 Attachments: 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 TreeMapWritable, Writable(instance)).toString(); } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-6842) hadoop fs -text does not give a useful text representation of MapWritable objects
[ https://issues.apache.org/jira/browse/HADOOP-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13626986#comment-13626986 ] Andrew Ash commented on HADOOP-6842: Looks like nothing ever came of this? I'd appreciate a nicer toString() on MapWritable too 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 Affects Versions: 0.20.0 Reporter: Steven Wong 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 TreeMapWritable, Writable(instance)).toString(); } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira