On 1 March 2011 19:07, Dmitriy Ryaboy <[email protected]> wrote:
> argh.
> try doing both -- add google-collections to the classpath, *and* register
> it. Same with twitter-text.

Ok. Moving on to a new error message:

"""Backend error message
---------------------
org.apache.pig.backend.executionengine.ExecException: ERROR 0:
java.lang.IllegalAccessException: Class org.apache.pig.builtin.Invoker
can not access a member of class tv.notube.TwitterExtractor with
modifiers "public static"

Caused by: java.lang.IllegalAccessException: Class
org.apache.pig.builtin.Invoker can not access a member of class
tv.notube.TwitterExtractor with modifiers "public static"""

Wondering what I'm missing this time,

(and if there's something I should be re-reading instead of asking here),

Dan

>> >>> package tv.notube;
>> >>> import com.twitter.Extractor;
>> >>> import java.util.List;
>> >>> class TwitterExtractor {
>> >>>
>> >>>  public static void main (String[] args) {
>> >>>    String in = args[0];
>> >>>        System.out.println("URLs: " + urls(in));
>> >>>  }
>> >>>
>> >>>  public static String urls(String tweet) {
>> >>>    Extractor ex = new Extractor();
>> >>>    List urls = ex.extractURLs(tweet);
>> >>>    String o = urls.toString();
>> >>>    return o;
>> >>>  }
>> >>> }

Reply via email to