public static void main()

in java/dataproc-wordcount/src/main/java/com/example/bigtable/sample/CreateTable.java [45:55]


  public static void main(String[] args) throws Exception {
    Configuration conf = HBaseConfiguration.create();
    String[] otherArgs = new GenericOptionsParser(conf, args).getRemainingArgs();
    if (otherArgs.length != 1) {
      System.err.println("Usage: <table-name>");
      System.exit(2);
    }

    TableName tableName = TableName.valueOf(otherArgs[otherArgs.length - 1]);
    createTable(tableName, conf, Collections.singletonList("cf"));
  }