public Driver findLocalDriver(String url) throws Exception {
    Objects.requireNonNull(url);

    Collection<Driver> currentDrivers = drivers == null ? Collections.emptyList() : drivers;
    for (Driver d : currentDrivers) {
      try {
        String clazzName = d.getClass().getName();
        Driver driver = (Driver) Class.forName(clazzName, true,
          Thread.currentThread().getContextClassLoader()).newInstance();
        if (driver.acceptsURL(url) && isSupportedLocalDriver(driver)) {
          return driver;
        }
      } catch (SQLException e) {
        throw e;
      }
    }

    return null;
  }
Output a progress indicator to the console.

@param cur
         the current progress
@param max
         the maximum progress, or -1 if unknown
beeline/src/java/org/apache/hive/beeline/BeeLine.java