Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5849

Add freemarker lib to dependencyManagement to ensure proper version is used when resolving dependency version conflicts

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.12.0
    • Fix Version/s: 1.12.0
    • Component/s: None
    • Labels:

      Description

      After DRILL-5766 we started using newer freemarker library in Drill. There several libs in Drill that also use freemarker library and sometime older version is pciked up. In this case we receive the following error:

      0: jdbc:drill:zk=local> Exception in thread "main" java.lang.NoSuchFieldError: VERSION_2_3_26
                      at org.apache.drill.exec.server.rest.DrillRestServer.getFreemarkerConfiguration(DrillRestServer.java:140)
                      at org.apache.drill.exec.server.rest.DrillRestServer.<init>(DrillRestServer.java:83)
                      at org.apache.drill.exec.server.rest.WebServer.start(WebServer.java:174)
                      at org.apache.drill.exec.server.Drillbit.run(Drillbit.java:141)
                      at org.apache.drill.jdbc.impl.DrillConnectionImpl.<init>(DrillConnectionImpl.java:123)
                      at org.apache.drill.jdbc.impl.DrillJdbc41Factory.newDrillConnection(DrillJdbc41Factory.java:72)
                      at org.apache.drill.jdbc.impl.DrillFactory.newConnection(DrillFactory.java:69)
                      at org.apache.calcite.avatica.UnregisteredDriver.connect(UnregisteredDriver.java:143)
                      at org.apache.drill.jdbc.Driver.connect(Driver.java:72)
                      at sqlline.DatabaseConnection.connect(DatabaseConnection.java:167)
                      at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:213)
                      at sqlline.Commands.close(Commands.java:925)
                      at sqlline.Commands.closeall(Commands.java:899)
                      at sqlline.SqlLine.begin(SqlLine.java:649)
                      at sqlline.SqlLine.start(SqlLine.java:375)
                      at sqlline.SqlLine.main(SqlLine.java:268)
      

      To fix this issue we should not rely on Maven nearest win strategy and define allowed freemarker version under dependencyManagement.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                arina Arina Ielchiieva
                Reporter:
                arina Arina Ielchiieva
                Reviewer:
                Paul Rogers
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: