Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Settings for SQL querying:

Code Block
languagejava
themeConfluence
driverName = "org.apache.hive.jdbc.HiveDriver";
connectionUrl =  "jdbc:hive2://" + webPortalIp + ":" + webPortalPort+ "/;transportMode=http;httpPath=kyvos/sql";
Username = Username of Kyvos webportal;
Password = Password of Kyvos webportal;        
public static java.sql.Connection getSQLConnection(String driverName,String connectionUrl,String Username,String Password) throws ClassNotFoundException, SQLException
    {
        try {
            Class.forName(driverName);            
        } catch (Exception e)    {
            e.printStackTrace();
        }
        return java.sql.DriverManager.getConnection(connectionUrl,Username, Password);
}

...