[
https://issues.apache.org/jira/browse/DRILL-6332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16488866#comment-16488866
]
Thomas commented on DRILL-6332:
-------------------------------
Funny. I figuered the same thing yesterday and was about to write something
here.
The reason is the the following piece of code that rigidly insists on the
respective principal construction...
[https://github.com/apache/drill/blob/master/common/src/main/java/org/apache/drill/common/KerberosUtil.java]
{code:java|borderStyle=solid}
public static String[] splitPrincipalIntoParts(final String principal) {
final String[] components = principal.split("[/@]");
checkState(components.length == 3);
checkNotNull(components[0]);
checkNotNull(components[1]);
checkNotNull(components[2]);
return components;
}
{code}
However, now, I am facing an authentication problem with the webserver
component:
2018-05-24 13:57:54,003 [main] WARN
o.a.d.e.s.r.a.DrillHttpSecurityHandlerProvider - Failed to create
DrillHttpConstra$
org.apache.drill.common.exceptions.DrillException: FORM mechanism was
configured but PLAIN mechanism is not enabled to $
at
org.apache.drill.exec.server.rest.auth.FormSecurityHanlder.doSetup(FormSecurityHanlder.java:40)
~[drill-java$
at
org.apache.drill.exec.server.rest.auth.DrillHttpSecurityHandlerProvider.<init>(DrillHttpSecurityHandlerProvi$
at
org.apache.drill.exec.server.rest.WebServer.createServletContextHandler(WebServer.java:213)
[drill-java-exec$
at
org.apache.drill.exec.server.rest.WebServer.start(WebServer.java:161)
[drill-java-exec-1.13.0.jar:1.13.0]
at org.apache.drill.exec.server.Drillbit.run(Drillbit.java:193)
[drill-java-exec-1.13.0.jar:1.13.0]
at org.apache.drill.exec.server.Drillbit.start(Drillbit.java:398)
[drill-java-exec-1.13.0.jar:1.13.0]
at org.apache.drill.exec.server.Drillbit.start(Drillbit.java:372)
[drill-java-exec-1.13.0.jar:1.13.0]
at org.apache.drill.exec.server.Drillbit.main(Drillbit.java:368)
[drill-java-exec-1.13.0.jar:1.13.0]
2018-05-24 13:57:54,003 [main] ERROR o.apache.drill.exec.server.Drillbit -
Failure during initial startup of Drillbit.
org.apache.drill.exec.exception.DrillbitStartupException: Authentication is
enabled for WebServer but none of the secur$
at
org.apache.drill.exec.server.rest.auth.DrillHttpSecurityHandlerProvider.<init>(DrillHttpSecurityHandlerProvi$
at
org.apache.drill.exec.server.rest.WebServer.createServletContextHandler(WebServer.java:213)
~[drill-java-exe$
at
org.apache.drill.exec.server.rest.WebServer.start(WebServer.java:161)
~[drill-java-exec-1.13.0.jar:1.13.0]
at org.apache.drill.exec.server.Drillbit.run(Drillbit.java:193)
[drill-java-exec-1.13.0.jar:1.13.0]
at org.apache.drill.exec.server.Drillbit.start(Drillbit.java:398)
[drill-java-exec-1.13.0.jar:1.13.0]
I could avoid it by disabling the web interface in the conf like:
{code:java}
http: {
enabled: false
},
{code}
Anny suggestions how to fix the web interface appreciated.
I guess you would also enable "Plain" authentication and require a user to log
in ...?
> DrillbitStartupException: Failure while initializing values in Drillbit
> -----------------------------------------------------------------------
>
> Key: DRILL-6332
> URL: https://issues.apache.org/jira/browse/DRILL-6332
> Project: Apache Drill
> Issue Type: Improvement
> Components: Server
> Affects Versions: 1.10.0
> Reporter: Hari Sekhon
> Priority: Major
>
> Improvement request to make this error more specific so we can tell what is
> causing it:
> {code:java}
> ==> /opt/mapr/drill/drill-1.10.0/logs/drillbit.out <==
> Exception in thread "main"
> org.apache.drill.exec.exception.DrillbitStartupException: Failure while
> initializing values in Drillbit.
> at org.apache.drill.exec.server.Drillbit.start(Drillbit.java:287)
> at org.apache.drill.exec.server.Drillbit.start(Drillbit.java:271)
> at org.apache.drill.exec.server.Drillbit.main(Drillbit.java:267)
> Caused by: java.lang.IllegalStateException
> at com.google.common.base.Preconditions.checkState(Preconditions.java:158)
> at
> org.apache.drill.common.KerberosUtil.splitPrincipalIntoParts(KerberosUtil.java:59)
> at
> org.apache.drill.exec.server.BootStrapContext.login(BootStrapContext.java:130)
> at
> org.apache.drill.exec.server.BootStrapContext.<init>(BootStrapContext.java:77)
> at org.apache.drill.exec.server.Drillbit.<init>(Drillbit.java:94)
> at org.apache.drill.exec.server.Drillbit.start(Drillbit.java:285)
> ... 2 more
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)