Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-2668

Support Calcites Properties in JDBC URL

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.x-HBase1.1.3
    • v2.1.0
    • Driver - JDBC
    • None

    Description

      We currently access our OLAP Cubes in Kylin from our BI Tool over JDBC. We run Kylin over SSL. When using our COTS BI Tool, we cannot programmatically pass in property values such as ssl=True into a java.util.Properties. We can only specify a Username, Password and URL.

      According to Calcite we should be able to provide some properties in the JDBC URL. Line 142 of org.apache.calcite.avatica.UnregisteredDriver, builds java properties based on the URL. This works for Kylin. For example, "jdbc:kylin:ssl=True;//kylinserver.com/Projectname" Will correctly establish the connection as using SSL.

      The problem is in KylinConnection's Constructor. It splits the jdbcURL on "jdbc:kylin://". So, it ignores the SSL. (KylinConnection. Line 54-60.)

      The KylinConnection needs to be updated to support this method for setting properties, so it can be used by 3rd party applications where programing the connection is not possible.

      We have coded this locally, and will submit patch.

      Attachments

        1. KYLIN-2668-v2.patch
          3 kB
          Joe Swingle

        Issue Links

          Activity

            People

              joe.swingle Joe Swingle
              joe.swingle Joe Swingle
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: