Jump to content
We've recently updated our Privacy Statement, available here ×
  • How to Integrate Apache Dremio with JasperReports Server


    asimkin
    • Features: Data Sources Version: v7.5 Product: JasperReports® Server

    Issue Description

    Customer has a requirement to use Apache Dremio as a datasource via JDBC driver.

    He tried to copy a Dremio JDBC to WEB-INF/lib folder, but TIBCO JasperReports® Server failed to start with error

    [toc]
    Error creating bean with name 'logFilterManager': Invocation of init method failed; nested exception is java.lang.ClassCastException: org.apache.logging.log4j.simple.SimpleLoggerContext cannot be cast to org.apache.logging.log4j.core.LoggerContext[/code]

    Resolution

    It looks like Dremio JDBC driver has log4j dependencies which conflicts with built-in log4j library.

    A possible solution is to upload the driver manually via UI.

    Additionally, applicationContext.xml config file should be modified to mark Dremio JDBC driver

    as the one which does not support autocommit, otherwise you will gen an error in connection test

     

    Can’t turn off auto-committing; transactions are not supported. (Dremio is not transactional.)[/code]

    Steps to create a Dremio JDBC datasource:

    • Stop TIBCO JasperReports® Server
    • Edit WEB-INF/applicationContext.xml by adding
      <value>com.dremio.jdbc.Driver</value>[/code]into property
      <property name="autoCommitUnsupportedDrivers">[/code]
    • Start the server
    • Go to Create > Data Source menu
    • Select "Other..." from JDBC Driver drop-down list
    • Paste 
      com.dremio.jdbc.Driver[/code]as JDBC Driver field value
    • Click on "Add Driver..." button
    • Select Dremio JDBC v.4.7.3 or later driver, click Upload
    • Once the driver uploaded to the server, specify connection URL in form
      jdbc:dremio:direct=<host>:31010[/code]

       

    • Provide user name and password
    • Click Test Connection

    dremio_jdbc_passed.png.05b9dc83040ba909929b073827ef4de3.png

    Please note, in case of using some older versions of Dremio JDBC driver, for example, v.3.3.2 connection test fails with error

    Cannot get a connection, pool error Could not create a validated object, cause: Can't turn off auto-committing; transactions are not supported. (Dremio is not transactional.)[/code]

    Download the latest version of Dremio JDBC driver and use it instead.

    Solution tested with TIBCO JasperReports® Server v.7.5.0


    AS-20200923, case 01890236

    dremio_jdbc_passed.png.0e81f549c2e992ffa59ebc8f1df3e4b4.png


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...