@@ -0,0 +1,1239 @@
+package com.architecting.ch06;%0A%0Aimport java.io.IOException;%0A%0Aimport org.apache.commons.logging.Log;%0Aimport org.apache.commons.logging.LogFactory;%0Aimport org.apache.hadoop.conf.Configuration;%0Aimport org.apache.hadoop.hbase.HBaseConfiguration;%0Aimport org.apache.hadoop.hbase.MasterNotRunningException;%0Aimport org.apache.hadoop.hbase.ZooKeeperConnectionException;%0Aimport org.apache.hadoop.hbase.client.HBaseAdmin;%0A%0Aimport com.google.protobuf.ServiceException;%0A//tag::TEST1%5B%5D%0A%0Apublic class TestInstallation %7B%0A  private static final Log LOG = LogFactory.getLog(TestInstallation.class);%0A%0A  public static void main(String%5B%5D args) %7B%0A    Configuration conf = HBaseConfiguration.create();%0A    try %7B%0A      LOG.info(%22Testing HBase connection...%22);%0A      HBaseAdmin.checkHBaseAvailable(conf);%0A      LOG.info(%22HBase is running correctly...%22);%0A    %7D catch (MasterNotRunningException e) %7B%0A      LOG.error(%22Unable to find a running HBase instance%22, e);%0A    %7D catch (ZooKeeperConnectionException e) %7B%0A      LOG.error(%22Unable to connect to ZooKeeper%22, e);%0A    %7D catch (ServiceException e) %7B%0A      LOG.error(%22HBase service unavailable%22, e);%0A    %7D catch (IOException e) %7B%0A      LOG.error(%22Error when trying to get HBase status%22, e);%0A    %7D%0A  %7D%0A%7D%0A//end::TEST1%5B%5D%0A

Package rename