code: @Override
      protected boolean initiateClient()
      {
          String message = null;
          for (String host : hosts)
          {
              vaildateHostPort(host, port);
              Configuration hadoopConf = new Configuration();
              hadoopConf.set("hbase.master", host + ":" + port);
              conn = HBasePropertyReader.hsmd.getDataStore() != null ? HBasePropertyReader.hsmd.getDataStore()
                      .getConnection() : null;
              if (conn != null && conn.getProperties() != null)
              {
                  String zookeeperHost = conn.getProperties().getProperty("hbase.zookeeper.quorum").trim();
                  String zookeeperPort = conn.getProperties().getProperty("hbase.zookeeper.property.clientPort").trim();
                  vaildateHostPort(zookeeperHost, zookeeperPort);
                  hadoopConf.set("hbase.zookeeper.quorum", zookeeperHost != null ? zookeeperHost : host);
                  hadoopConf.set("hbase.zookeeper.property.clientPort", zookeeperPort != null ? zookeeperPort
                          : DEFAULT_ZOOKEEPER_PORT);
              }
              else
              {
                  hadoopConf.set("hbase.zookeeper.quorum", host);
                  hadoopConf.set("hbase.zookeeper.property.clientPort", DEFAULT_ZOOKEEPER_PORT);
              }
              Configuration conf = HBaseConfiguration.create(hadoopConf);
              try
              {
                  Connection connection = ConnectionFactory.createConnection(conf);
                  admin = (HBaseAdmin) connection.getAdmin();
                  return true;
              }
              catch (MasterNotRunningException mnre)
              {
                  message = mnre.getMessage();
                  logger.error("Master not running exception, Caused by:", mnre);
              }
              catch (ZooKeeperConnectionException zkce)
              {
                  message = zkce.getMessage();
                  logger.error("Unable to connect to zookeeper, Caused by:", zkce);
              }
              catch (IOException ioe)
              {
                  message = ioe.getMessage();
                  logger.error("I/O exception, Caused by:", ioe);
              }
          }
          throw new SchemaGenerationException("Master not running exception, Caused by:" + message);
      }
docs: /*
  (non-Javadoc)
  
  @see
  com.impetus.kundera.configure.schema.api.AbstractSchemaManager#initiateClient
  ()