boolean scanForDriver(final String url) {
    Objects.requireNonNull(url);

    try {
      // Check drivers already registered
      if (findRegisteredDriver(url) != null) {
        return true;
      }

      // Scan classpath for drivers and load them
      scanDrivers();

      // Try to find the driver again given the newly loaded drivers
      if (findRegisteredDriver(url) != null) {
        return true;
      }

      // Find whether exists a local driver to accept the URL
      if (findLocalDriver(url) != null) {
        return true;
      }
    } catch (Exception e) {
      return error(e);
    }

    return false;
  }
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