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

Provide boot-time option to disable the Dynamic UDF feature

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.9.0
    • None
    • None
    • None

    Description

      A Windows user on the mailing list could not start an embedded Drillbit because the Dynamic UDF feature tried to create a directory on the user's protected Users folder:

      Error: Failure in starting embedded Drillbit: org.apache.drill.common.exceptions
      .DrillRuntimeException: Error during udf area creation [/C:/Users/ivy.chan/drill
      /udf/registry] on file system [file:///] (state=,code=0)
      java.sql.SQLException: Failure in starting embedded Drillbit: org.apache.drill.c
      ommon.exceptions.DrillRuntimeException: Error during udf area creation [/C:/User
      s/ivy.chan/drill/udf/registry] on file system [file:///]
             at org.apache.drill.jdbc.impl.DrillConnectionImpl.<init>(DrillConnection
      Impl.java:128)
             at org.apache.drill.jdbc.impl.DrillJdbc41Factory.newDrillConnection(Dril
      lJdbc41Factory.java:70)
             at org.apache.drill.jdbc.impl.DrillFactory.newConnection(DrillFactory.ja
      va:69)
      

      The fastest workaround (since this was an embedded Drillbit) would be to disable the Dynamic UDF feature. Unfortunately, the only option to do so is a runtime option that requires that the Drillbit be started. That creates a vicious circle: we can't start the Drillbit unless we disable Dynamic UDFs, but we can't disable them unless we start the Drillbit.

      The workaround might be to change the root directory, which is why this bug is marked minor.

      Attachments

        Activity

          People

            Unassigned Unassigned
            paul-rogers Paul Rogers
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: