PHOENIX-2216 : Support single mapper pass to CSV bulk load table and indexes - fixing imports
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/fde2878d Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/fde2878d Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/fde2878d Branch: refs/heads/4.x-HBase-1.0 Commit: fde2878dcfb23320ffeabaa9aa381e3fc92af852 Parents: 3396168 Author: Ravi Magham <[email protected]> Authored: Sun Oct 18 10:19:23 2015 -0700 Committer: Ravi Magham <[email protected]> Committed: Sun Oct 18 10:19:23 2015 -0700 ---------------------------------------------------------------------- .../java/org/apache/phoenix/mapreduce/MultiHfileOutputFormat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/fde2878d/phoenix-core/src/main/java/org/apache/phoenix/mapreduce/MultiHfileOutputFormat.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/main/java/org/apache/phoenix/mapreduce/MultiHfileOutputFormat.java b/phoenix-core/src/main/java/org/apache/phoenix/mapreduce/MultiHfileOutputFormat.java index eae58ad..e0b3e9d 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/mapreduce/MultiHfileOutputFormat.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/mapreduce/MultiHfileOutputFormat.java @@ -662,7 +662,7 @@ public class MultiHfileOutputFormat extends FileOutputFormat<CsvTableRowkeyPair, for(TargetTableRef table : tablesToBeLoaded) { final String tableName = table.getPhysicalName(); try(HTable htable = new HTable(conf,tableName);){ - Set<CsvTableRowkeyPair> startKeys = getRegionStartKeys(tableName , htable.getRegionLocator()); + Set<CsvTableRowkeyPair> startKeys = getRegionStartKeys(tableName , htable); tablesStartKeys.addAll(startKeys); String compressionConfig = configureCompression(htable.getTableDescriptor()); String bloomTypeConfig = configureBloomType(htable.getTableDescriptor());
