src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/HsqlDriver.java
public void startDatabase(ApplicationConfiguration conf) throws SQLException {
    try {
      Class.forName("org.hsqldb.jdbc.JDBCDriver");
    } catch (ClassNotFoundException e) {
      LOG.info("Failed to register JDBCDriver for HSQLDB.");
    }
    String user = conf.getHistoricalUsername();
    String pass = conf.getHistoricalPassword();
    String baseDir = conf.getBaseDir();
    con = DriverManager.getConnection("jdbc:hsqldb:file:" + baseDir + "/db/db", user, pass);
  }
/**
   * If configured; starts up an embedded DB for maintaining trending data.
   *
   * @param conf the application configuration
   * @throws SQLException error in opening DB connection
   */
If configured; starts up an embedded DB for maintaining trending data.
@param conf the application configuration
@throws SQLException error in opening DB connection
If configured ; starts up an embedded DB for maintaining trending data . @param conf the application configuration @throws SQLException error in opening DB connection
public void startDatabase(ApplicationConfiguration conf) throws SQLException {
    try {
      Class.forName("org.hsqldb.jdbc.JDBCDriver");
    } catch (ClassNotFoundException e) {
      LOG.info("Failed to register JDBCDriver for HSQLDB.");
    }
    String user = conf.getHistoricalUsername();
    String pass = conf.getHistoricalPassword();
    String baseDir = conf.getBaseDir();
    con = DriverManager.getConnection("jdbc:hsqldb:file:" + baseDir + "/db/db", user, pass);
  }
public void startDatabase ( ApplicationConfiguration conf ) throws SQLException { try { Class . forName ( "org.hsqldb.jdbc.JDBCDriver" ) ; } catch ( ClassNotFoundException e ) { LOG . info ( "Failed to register JDBCDriver for HSQLDB." ) ; } String user = conf . getHistoricalUsername ( ) ; String pass = conf . getHistoricalPassword ( ) ; String baseDir = conf . getBaseDir ( ) ; con = DriverManager . getConnection ( "jdbc:hsqldb:file:" + baseDir + "/db/db" , user , pass ) ; }
If configured; starts up an embedded DB for maintaining trending data.
If configured ; starts up an embedded DB for maintaining trending data .