Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert Into throws AbstractMethodError #14

Open
nmaillard opened this issue Mar 14, 2014 · 2 comments
Open

Insert Into throws AbstractMethodError #14

nmaillard opened this issue Mar 14, 2014 · 2 comments

Comments

@nmaillard
Copy link

Hello

While using the csv serde in an insert overwrite call, the hive query fails with
java.lang.AbstractMethodError: com.bizo.hive.serde.csv.CSVSerde.getSerDeStats()Lorg/apache/hadoop/hive/serde2/SerDeStats;

I have recompiled the csv-serde adding the @OverRide annotation on the getSerDeStats method and this solves the issue.

Another quick fix is to set: hive.stats.autogather to false
as it is during the stats part of the serialisation that hive makes the mistaken code.
in org.apache.hadoop.hive.ql.exec.FileSinkOperator.processOp

My config is CDH 4.6, hive 0.10 and java 1.7.0_21
I hope this helps someone.

@boxerdog
Copy link

I have no idea how you figured that out, but it did help me. I was running an insert overwrite that had absolutely no reason to fail, but it kept failing.

set hive.stats.autogather = false;

Adding that to my script saved the day. Go mystery! I wish the exception had something like "You can bypass this method by setting hive.stats.autogather to false". Instead it's got a pile of completely useless info.

@katt0050
Copy link

Thank you. It worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants