You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Mohit Sabharwal (JIRA)" <ji...@apache.org> on 2015/06/04 00:53:38 UTC

[jira] [Created] (PIG-4585) Use newAPIHadoopRDD instead of newAPIHadoopFile

Mohit Sabharwal created PIG-4585:
------------------------------------

             Summary: Use newAPIHadoopRDD instead of newAPIHadoopFile
                 Key: PIG-4585
                 URL: https://issues.apache.org/jira/browse/PIG-4585
             Project: Pig
          Issue Type: Sub-task
          Components: spark
    Affects Versions: spark-branch
            Reporter: Mohit Sabharwal
            Assignee: Mohit Sabharwal
             Fix For: spark-branch


LoadConverter currently uses SparkContext.newAPIHadoopFile which won't work for non-filesystem based input sources, like HBase.

newAPIHadoopFile assumes a FileInputFormat and attempts to  [verify|https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/SparkContext.scala#L1065] this in the constructor, which fails for HBaseTableInputFormat (which is not a FileInputFormat)



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