This seems like it might work for me. I downloaded it, compiled it, and
added the JAR to PIG_CLASSPATH

However, when i try to run the following command, i get an error

grunt> a = load 'hbase://myTable' USING
co.twitter.elephantbird.pig.load.HBaseLoader('f1:col1') AS (col1);
2010-06-28 13:13:59,607 [main] ERROR org.apache.pig.tools.grunt.Grunt -
ERROR 1070: Could not resolve co.twitter.elephantbird.pig.load.HBaseLoader
using imports: [, org.apache.pig.builtin., org.apache.pig.impl.builtin.]
Details at logfile: /usr/local/hadoop/pigtmp/pig-0.7.0/pig_1277744862785.log
grunt>

I have a feeling I am not referencing the table the right way.

On Mon, Jun 28, 2010 at 11:43 AM, Dmitriy Ryaboy <dvrya...@gmail.com> wrote:

> There's an HBase LoadFunc that works with 0.6 in Elephant-Bird.
> http://github.com/kevinweil/elephant-bird
>
> There are slides here that show usage:
>
> http://squarecog.wordpress.com/2010/05/20/pig-hbase-hadoop-and-twitter-hug-talk-slides/
>
> -D
>
> On Mon, Jun 28, 2010 at 7:59 AM, Pavel Gutin <pavelgu...@gmail.com> wrote:
>
> > I am trying to get Pig to query my HBase table, but I cannot find any
> > examples on the web. Can anyone provide me with a simple example?
> >
> > The best I could find so far, was a little blurb on the following page
> > http://wiki.apache.org/pig/PigMultiQueryPerformanceSpecification but
> that
> > didn't help much.
> >
> > Thanks in advance.
> >
> >  - Pavel
> >
>

Reply via email to