Pavel, What does the log say? I am guessing you need to a) make sure that all the hbase config stuff is on the classpath and b) load 'hbase://silk1' (no host:port)
-D On Mon, Jun 28, 2010 at 10:37 AM, Pavel Gutin <pavelgu...@gmail.com> wrote: > My apologies, i pasted the wrong line. I was testing to see if pig was able > to locate the JAR by misspelling the name on purpose > > Here's the correct error. > > grunt> a = load 'hbase://localhost:60000/silk1' USING > com.twitter.elephantbird.pig.load.HBaseLoader('f1:destination_port') AS > (destination_port); > 2010-06-28 13:19:01,288 [main] ERROR org.apache.pig.tools.grunt.Grunt - > ERROR 2998: Unhandled internal error. org/apache/pig/Slicer > Details at logfile: > /usr/local/hadoop/pigtmp/pig-0.7.0/pig_1277744862785.log > grunt> > > > On Mon, Jun 28, 2010 at 1:34 PM, Pavel Gutin <pavelgu...@gmail.com> wrote: > > > 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 > >> > > >> > > > > >