[ 
https://issues.apache.org/jira/browse/DRILL-5101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15938857#comment-15938857
 ] 

Gopi Kumar commented on DRILL-5101:
-----------------------------------

Thanks for the response. I agree we shouldnt hardcode group name. 

So basically it looks like none of the 3 conditions succeed on Windows when 
running embedded in the Windows administrator account. I believe in Windows, 
file / folder security is based on ACLs not the u+g+o model of *nix systems 
which seems to be what is checked in the 3 conditions above and hence failing 
all these checks. I confirmed this problem does not exist when I run from a 
standard user. 

Are you proposing to just check that the directory exists and treat rest as a 
warning? That would work for this case. Is this something that can be fixed in 
next version? It will be really helpful for Windows users. This has been an 
issue only in Drill 1.9 onwards. 

> Provide boot-time option to disable the Dynamic UDF feature
> -----------------------------------------------------------
>
>                 Key: DRILL-5101
>                 URL: https://issues.apache.org/jira/browse/DRILL-5101
>             Project: Apache Drill
>          Issue Type: Bug
>    Affects Versions: 1.9.0
>            Reporter: Paul Rogers
>            Assignee: Arina Ielchiieva
>            Priority: Minor
>
> 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:
> {code}
> 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)
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to