pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohini Palaniswamy (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PIG-3612) Storing schema does not work cross cluster with PigStorage and JsonStorage
Date Thu, 05 Dec 2013 15:52:35 GMT

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

Rohini Palaniswamy updated PIG-3612:
------------------------------------

    Attachment: PIG-3612-1.patch

 Just a minor constructor change to get the correct HDataStorage based on URI. Reading from
schema file, was already getting correct HDataStorage based on URI. Only store had issue.

> Storing schema does not work cross cluster with PigStorage and JsonStorage
> --------------------------------------------------------------------------
>
>                 Key: PIG-3612
>                 URL: https://issues.apache.org/jira/browse/PIG-3612
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Rohini Palaniswamy
>            Assignee: Rohini Palaniswamy
>             Fix For: 0.13.0
>
>         Attachments: PIG-3612-1.patch
>
>
> java.lang.IllegalArgumentException: Wrong FS:
> hdfs://cluster2-nn:8020/tmp/output/.pig_schema,
> expected: hdfs://cluster1-nn1
>     at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:582)
>     at
> org.apache.hadoop.hdfs.DistributedFileSystem.getPathName(DistributedFileSystem.java:155)
>     at
> org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:734)
>     at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1272)
>     at
> org.apache.pig.backend.hadoop.datastorage.HDataStorage.isContainer(HDataStorage.java:200)
>     at
> org.apache.pig.backend.hadoop.datastorage.HDataStorage.asElement(HDataStorage.java:128)
>     at
> org.apache.pig.backend.hadoop.datastorage.HDataStorage.asElement(HDataStorage.java:144)
>     at org.apache.pig.builtin.JsonMetadata.storeSchema(JsonMetadata.java:294)
>     at org.apache.pig.builtin.JsonStorage.storeSchema(JsonStorage.java:274)
>     at



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message