Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4C4FB175CF for ; Wed, 6 May 2015 19:00:02 +0000 (UTC) Received: (qmail 67353 invoked by uid 500); 6 May 2015 19:00:02 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 67309 invoked by uid 500); 6 May 2015 19:00:02 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 67297 invoked by uid 99); 6 May 2015 19:00:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 May 2015 19:00:02 +0000 Date: Wed, 6 May 2015 19:00:01 +0000 (UTC) From: "Akira AJISAKA (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-6842) "hadoop fs -text" does not give a useful text representation of MapWritable objects MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-6842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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 TreeMap(instance)).toString(); > } -- This message was sent by Atlassian JIRA (v6.3.4#6332)