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

Switch to Plain View
Kafka >> mail # dev >> parittioner runtime error with kafka 0.8


+
Jane Wang 2013-01-18, 01:29
+
Jay Kreps 2013-01-18, 03:09
+
Jane Wang 2013-01-18, 03:58
+
Jane Wang 2013-01-18, 17:26
Copy link to this message
-
Re: parittioner runtime error with kafka 0.8
Hmmm, so I would like to turn this into a bug for us, since at the very
least the error is confusing, but I am not quite sure what was going on. At
least one issue is the error doesn't make it clear whether this is for the
key serializer or value serializer and could be cleaned up. Let me try to
reproduce...

-Jay
On Fri, Jan 18, 2013 at 9:26 AM, Jane Wang <[EMAIL PROTECTED]> wrote:

> finally, I made the partitioner working after changing the partition key to
> be string.
> and add the key.serializer.class to the config props. thanks for the help.
>
>
> On Thu, Jan 17, 2013 at 7:57 PM, Jane Wang <[EMAIL PROTECTED]> wrote:
>
> > I also tried with the constructor
> > ExpertSearchCollectionPartitioner(VerifiableProperties props) {
> > }
> >
> > Still the same error.
> >
> > I also tried the constructor without any parameter and with parameter
> Long.
> > None of them worked.
> >
> >
> >
> >
> >
> > On Thu, Jan 17, 2013 at 7:08 PM, Jay Kreps <[EMAIL PROTECTED]> wrote:
> >
> >> Hi Jane,
> >>
> >> This error is
> >> java.lang.NoSuchMethodException:
> >> com.twitter.expertsearch.indexing.jit.ExpertSearchCollectionPartitio
> >> ner.<init>(kafka.utils.VerifiableProperties)
> >>
> >> It means that you need to have a constructor which takes a single
> >> argument,
> >> VerifiableProperties. This is a way to pass any configuration from the
> >> producer properties to your partitioner instance.
> >>
> >> Sorry there is no real documentation for this as it is new to 0.8 and we
> >> haven't finished the 0.8 documentation.
> >>
> >> -Jay
> >>
> >> On Thu, Jan 17, 2013 at 5:29 PM, Jane Wang <[EMAIL PROTECTED]> wrote:
> >>
> >> > java.lang.NoSuchMethodException:
> >> >
> >> >
> >>
> com.twitter.expertsearch.indexing.jit.ExpertSearchCollectionPartitioner.<init>(kafka.utils.VerifiableProperties)
> >> >
> >>
> >
> >
>