My favorites | Sign in
Project Logo
Project hosting will be READ-ONLY Wednesday at 8am PST due to brief network maintenance.
                
Search
for
Updated Jan 03, 2010 by vuk.ercegovac
Building  
Building Jaql from Source

Build

The build Jaql from the sources, first check-out the project and from the project's root directory, issue:

  1. ant jar

To run the interpreter, please follow these instructions.

Using a different version of Hadoop

The default version of Hadoop used by Jaql is 0.20.1. However, Jaql supports multiple Hadoop versions (and dependent version of HBase). To build Jaql for another version, use the hadoop.version ant property. For example, to build for version 0.18.3, you use ant as follows:

  1. ant jar -Dhadoop.version="0.18.3"

We currently support Hadoop versions 0.18.3, and 0.20.1.

Eclipse Setup

The source code is a common Eclipse java project. It can be imported into Eclipse. It needs JDK 1.6 to compile. SUN JDK is preferred since hadoop prefers SUN JDK. jaql/.classpath contains all the Java libraries from multiple versions of hadoop and hbase. And jaql/.project contains stuff related to antlr and JavaCC. Eclipse Content Assist does not work with this .classpath file. jaql/eclipse directory contains .classpath file working with a specific version of hadoop and .project without antlr and JavaCC stuff. These .classpath and .project are preferred if you wan to work with only a specific version of hadoop and don't want to use antlr and JavaCC plugin.


Comment by maks20, Jan 22, 2010

I have built JAQL from source(HADOOP 0.20.1), and executed:

registerFunction("splitArr", "com.acme.extensions.expr.SplitIterExpr?"); splitArr("something simple with five words", " ");

Got an error: jaql> registerFunction("splitArr", "com.acme.extensions.expr.SplitIterExpr?");

jaql> splitArr("something simple with five words", " "); java.lang.reflect.UndeclaredThrowableException?

at com.ibm.jaql.lang.expr.function.JavaFunctionCallExpr?.<init>(JavaFunctionCallExpr?.java:107)

Thanks, maks_20@yahoo.com

Comment by maks20, Jan 22, 2010

I have figured out (from Test/examples)!

New example: splitArr = builtin("com.acme.extensions.expr.SplitIterExpr?$Descriptor"); splitArr("something simple with five words", " ");

I have tested other examples, they run much faster then in previous version!

Thanks.


Sign in to add a comment
Hosted by Google Code