code: private void registerSchemas(Configuration conf, SchemaManager schemaManager)
        throws InterruptedException {
      HBaseAdmin admin;
      try {
        // Construct an HBaseAdmin object (required by schema tool), and delete it
        // if it exists so we start fresh.
        admin = new HBaseAdmin(conf);
        if (admin.tableExists("kite_example_user_profiles")) {
          admin.disableTable("kite_example_user_profiles");
          admin.deleteTable("kite_example_user_profiles");
        }
      } catch (IOException e) {
        throw new RuntimeException(e);
      }
      // Use the SchemaTool to create the schemas that are in the example-models
      // directory, and create the table and column families required by those
      // schemas.
      SchemaTool tool = new SchemaTool(admin, schemaManager);
      tool.createOrMigrateSchemaDirectory("classpath:example-models", true);
    }
docs: Uses SchemaTool to register the required schemas and create the required
  tables.
  
  @param conf
  The HBaseConfiguration.
  @param schemaManager
  The schema manager SchemaTool needs to create the schemas.