code: private void createOrUpdateTable(String tablename, HTableDescriptor hTableDescriptor)
      {
          try
          {
              if (admin.isTableAvailable(tablename))
              {
                  admin.modifyTable(tablename, hTableDescriptor);
              }
              else
              {
                  admin.createTable(hTableDescriptor);
              }
          }
          catch (IOException ioex)
          {
              logger.error("Either table isn't in enabled state or some network problem, Caused by: ", ioex);
              throw new SchemaGenerationException(ioex, "Either table isn't in enabled state or some network problem.");
          }
      }
docs: Creates the or update table.
  
  @param tablename
  the tablename
  @param hTableDescriptor
  the h table descriptor