pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vivek Padmanabhan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIG-1561) XMLLoader in Piggybank does not support bz2 or gzip compressed XML files
Date Fri, 14 Jan 2011 12:43:45 GMT

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

Vivek Padmanabhan updated PIG-1561:
-----------------------------------

    Attachment: PIG-1561-1.patch

Attaching an initial patch for the issue. Please review. 

> XMLLoader in Piggybank does not support bz2 or gzip compressed XML files
> ------------------------------------------------------------------------
>
>                 Key: PIG-1561
>                 URL: https://issues.apache.org/jira/browse/PIG-1561
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.7.0, 0.8.0
>            Reporter: Viraj Bhat
>            Assignee: Vivek Padmanabhan
>         Attachments: PIG-1561-1.patch
>
>
> I have a simple Pig script which uses the XMLLoader after the Piggybank is built.
> {code}
> register piggybank.jar;
> A = load '/user/viraj/capacity-scheduler.xml.gz' using org.apache.pig.piggybank.storage.XMLLoader('property')
as (docs:chararray);
> B = limit A 1;
> dump B;
> --store B into '/user/viraj/handlegz' using PigStorage();
> {code}
> returns empty tuple
> {code}
> ()
> {code}
> If you supply the uncompressed XML file, you get
> {code}
> (<property>
>     <name>mapred.capacity-scheduler.queue.my.capacity</name>
>     <value>10</value>
>     <description>Percentage of the number of slots in the cluster that are
>       guaranteed to be available for jobs in this queue.
>     </description>    
>   </property>)
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message