From 0087add3342b36503bb60c972a0d441f91e37ef1 Mon Sep 17 00:00:00 2001 From: Tom White Date: Sun, 12 Jan 2014 15:32:32 +0000 Subject: [PATCH] Upgrade from HBase 0.90 to 0.94. --- README | 2 +- book/pom.xml | 2 +- ch13/pom.xml | 4 ++-- ch13/src/main/java/HBaseStationCli.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README b/README index 08e86003..f940621e 100644 --- a/README +++ b/README @@ -13,7 +13,7 @@ This version of the code has been tested with: * Avro 1.5.4 * Pig 0.9.1 * Hive 0.8.0 - * HBase 0.90.4 + * HBase 0.90.4/0.94.15 * ZooKeeper 3.4.2 * Sqoop 1.4.0-incubating * MRUnit 0.8.0-incubating diff --git a/book/pom.xml b/book/pom.xml index 0ff92dd1..863e8b7b 100644 --- a/book/pom.xml +++ b/book/pom.xml @@ -17,7 +17,7 @@ 1.5.4 0.9.1 0.8.0 - 0.90.4 + 0.94.15 3.4.2 1.4.0-incubating diff --git a/ch13/pom.xml b/ch13/pom.xml index 54657873..fb8107d7 100644 --- a/ch13/pom.xml +++ b/ch13/pom.xml @@ -3,9 +3,9 @@ 4.0.0 com.hadoopbook - book + hadoop-meta 3.0 - ../book/pom.xml + ../hadoop-meta/pom.xml com.hadoopbook ch13 diff --git a/ch13/src/main/java/HBaseStationCli.java b/ch13/src/main/java/HBaseStationCli.java index 13c99d95..135d2de2 100644 --- a/ch13/src/main/java/HBaseStationCli.java +++ b/ch13/src/main/java/HBaseStationCli.java @@ -20,7 +20,7 @@ public class HBaseStationCli extends Configured implements Tool { public Map getStationInfo(HTable table, String stationId) throws IOException { Get get = new Get(Bytes.toBytes(stationId)); - get.addColumn(INFO_COLUMNFAMILY); + get.addFamily(INFO_COLUMNFAMILY); Result res = table.get(get); if (res == null) { return null;