Skip to content

Commit

Permalink
Moved markup.
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgeorge committed Apr 12, 2015
1 parent 71d624c commit a21f1ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ch05/src/main/java/admin/ClusterOperationExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public static void main(String[] args) throws IOException, InterruptedException
HBaseHelper helper = HBaseHelper.getHelper(conf);
helper.dropTable("testtable");

// vv ClusterOperationExample
Connection connection = ConnectionFactory.createConnection(conf);
Admin admin = connection.getAdmin();

Expand Down Expand Up @@ -73,7 +74,6 @@ public static void main(String[] args) throws IOException, InterruptedException
}
mutator.close();

// vv ClusterOperationExample
List<HRegionInfo> list = admin.getTableRegions(tableName);
int numRegions = list.size();
HRegionInfo info = list.get(numRegions - 1);
Expand Down Expand Up @@ -153,7 +153,7 @@ public static void main(String[] args) throws IOException, InterruptedException
HRegionInfo m1 = online.get(0);
HRegionInfo m2 = online.get(1);
System.out.println("Regions: " + m1 + " with " + m2);
admin.mergeRegions(m1.getEncodedNameAsBytes(),
admin.mergeRegions(m1.getEncodedNameAsBytes(),
m2.getEncodedNameAsBytes(), false);
revs = 0;
do {
Expand Down

0 comments on commit a21f1ee

Please sign in to comment.