|
Building
Building Jaql from Source
BuildThe build Jaql from the sources, first check-out the project and from the project's root directory, issue:
To run the interpreter, please follow these instructions. Using a different version of HadoopThe 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:
We currently support Hadoop versions 0.18.3, and 0.20.1. Eclipse SetupThe 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. |
I have built JAQL from source(HADOOP 0.20.1), and executed:
Got an error: jaql> registerFunction("splitArr", "com.acme.extensions.expr.SplitIterExpr?");
jaql> splitArr("something simple with five words", " "); java.lang.reflect.UndeclaredThrowableException?
Thanks, maks_20@yahoo.com
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.