@Deprecated
  public static Token<AuthenticationTokenIdentifier> obtainToken(Configuration conf)
    throws IOException {
    try (Connection connection = ConnectionFactory.createConnection(conf)) {
      return obtainToken(connection);
    }
  }
It was removed in HBase-2.0 but added again as spark code relies on this method to obtain
delegation token
@deprecated Since 2.0.0 and will be removed in 4.0.0.
hbase-server/src/main/java/org/apache/hadoop/hbase/security/token/TokenUtil.java