-Re: Getting e2e test to work with JRuby -- how do I get it to see a library?
Daniel Dai 2012-02-24, 22:39
This should similar to python UDF. Take a look of Scripting tests in
nightly.conf. We use SCRIPTHOMEPATH to find python udf which is
located in test/e2e/pig/udfs/python. You can create a directory
test/e2e/pig/ruby to include ruby udfs.
On Thu, Feb 23, 2012 at 4:17 PM, Jonathan Coveney <[EMAIL PROTECTED]> wrote:
> I'm getting an error when running the following:
> ant -Dharness.hadoop.home=. -Dharness.old.pig=. -Dtests.to.run="-t
> RubyUDFs_1" test-e2e-local
> The error is that the ruby scripts can't find pigudf.rb, which is the
> library they need to function. But I am not sure how to make this happen
> within the e2e framework. It seems like the tests are being run from
> test/e2e/pig/testdist/, but I'm not sure. There doesn't seem to be a way to
> put the file in the paths' way, though. Either way, I'm curious what the
> best way within the framework to make a resource file available is.