Skip to content

Instantly share code, notes, and snippets.

@danharvey
Created February 23, 2011 13:05
Show Gist options
  • Save danharvey/840403 to your computer and use it in GitHub Desktop.
Save danharvey/840403 to your computer and use it in GitHub Desktop.
TableInputFormat configuration patch
--- src/main/java/org/apache/hadoop/hbase/mapreduce/TableInputFormat.java 2011-02-09 00:23:13.000000000 +0000
+++ src/main/java/org/apache/hadoop/hbase/mapreduce/TableInputFormat.java 2011-02-23 13:01:25.126278999 +0000
@@ -88,7 +88,7 @@
this.conf = configuration;
String tableName = conf.get(INPUT_TABLE);
try {
- setHTable(new HTable(new Configuration(conf), tableName));
+ setHTable(new HTable(tableName));
} catch (Exception e) {
LOG.error(StringUtils.stringifyException(e));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment