Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> Jackson problem in custom Pig Eval function


Copy link to this message
-
Re: Jackson problem in custom Pig Eval function
I have this problem too - whenever HADOOP_HOME is set, I can't use
AvroStorage because there is a Jackson problem.

Thanks for explaining it!

On Fri, May 18, 2012 at 9:27 AM, Erik Hetzner <[EMAIL PROTECTED]> wrote:

> At Fri, 18 May 2012 17:17:37 +0100,
> James Newhaven wrote:
> >
> > I am trying to use the Jackson JSON mapper in a custom Eval Pig function
> > like this:
> >
> > mapper.writeValueAsString(cityChartData);
> >
> > However, when I use my custom function in a pig script, pig errors out
> with
> > this:
> >
> > java.lang.NoSuchMethodError:
> >
> org.codehaus.jackson.map.ObjectMapper.writeValueAsString(Ljava/lang/Object;)Ljava/lang/String;
> >
> > I am using Pig 0.9.2 and looking at the source I can see it is being
> built
> > with Jackson 1.7.3, which definitely has this method. Can anyone suggest
> > what could be the problem?
>
> Hi James,
>
> Hadoop ships with jackson as well. I was able to solve a similar
> problem by removing the jackson jars from the hadoop lib/ dir.
>
> best, Erik
>
> Sent from my free software system <http://fsf.org/>.
>
>
--
Russell Jurney twitter.com/rjurney [EMAIL PROTECTED] datasyndrome.com