tomwhite / hadoop-book

Example source code accompanying O'Reilly's "Hadoop: The Definitive Guide" by Tom White

Home Page:http://www.hadoopbook.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't get the HBASE part of the build to work

johnelle opened this issue · comments

Trying to build on Ubuntu 12.04. Got most of the way there by installing everything, including ant and ivy manually. It builds the first few jars file but ant jar hbase generates the folowing:

hbase.compile:
[javac] /home/johnelle/hadoop-book/build.xml:126: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 5 source files to /home/johnelle/hadoop-book/build/classes
[javac] /home/johnelle/hadoop-book/ch13/src/main/java/HBaseStationCli.java:23: addColumn(byte[],byte[]) in org.apache.hadoop.hbase.client.Get cannot be applied to (byte[])
[javac] get.addColumn(INFO_COLUMNFAMILY);
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 1 error

Sorry I didn't see this reported at the time! I have upgraded HBase to 0.94 (see 0087add) so the build should now work with later versions of HBase that no longer have this addColumn method (which was deprecated in 0.90).