Home Forums Hive / HCatalog MapReduce Error when using HCatInputFormat process data

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  abdelrahman 11 months, 3 weeks ago.

  • Creator
    Topic
  • #28822

    Andy Miao
    Member

    HI guys,
    I tried to create map/reduce program to practice Hcatalog, I followed the guidence on http://incubator.apache.org/hcatalog/docs/r0.5.0/inputoutput.html Site.
    The Map/Reduce program just read data from HCatalog table and wirte to another one. But the simple program always raise error on following code snipt
    HCatInputFormat.setInput(job, InputJobInfo.create(DbName,InputTbName,null));

    Here is the dtailed Error Message:
    ClassNotFoundException:org.apache.hadoop.hive.ql.metadataq.hiveStorageHandler.

    I have already package hive-exec.jar into my map/Reduce program.

    MRCommand:
    hadoop jar d:\hcat\HCatInterface.jar hcatalog.HCatInterfacePOC student studentg
    BTW, What i am using is HDP for windows.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #28824

    abdelrahman
    Moderator

    Hi Andy,

    It is most likely because it can’t find some Hive jars. You may want to try to add the Hive jars into the CLASSPATH.

    Thanks
    -Abdelrahman

    Collapse
Viewing 1 replies (of 1 total)