PIG - Found interface org.apache.hadoop.mapreduce.JobContext, but class was expected

后端 未结 2 730
感情败类
感情败类 2020-12-04 00:35

I was trying to load a table from hive. I am using Hcatalog for that.

I logged into hive using

pig -useHCatalog

i export almost al

相关标签:
2条回答
  • 2020-12-04 01:25

    You could try to build a Hadoop 2.x version of Pig too

    ant clean jar-withouthadoop -Dhadoopversion=23
    
    0 讨论(0)
  • 2020-12-04 01:27

    Yes, it is a compatibility issue.

    • in Hadoop 1.x: JobContext is a class
    • in Hadoop 2.x: JobContext is an interface

    You can see that Hadoop 2 is not listed as compatible with Pig 0.12:

    Requirements
    Mandatory
    
    Unix and Windows users need the following:
    
    Hadoop 0.20.2, 020.203, 020.204, 0.20.205, 1.0.0, 1.0.1, or 0.23.0, 0.23.1 
    

    http://pig.apache.org/docs/r0.12.0/start.html

    0 讨论(0)
提交回复
热议问题