[
https://issues.apache.org/jira/browse/PHOENIX-7143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17795172#comment-17795172
]
Istvan Toth edited comment on PHOENIX-7143 at 12/11/23 6:00 AM:
----------------------------------------------------------------
This is the error we get with a specific HDFS setup on PQS startup:
{noformat}
Unrecoverable service error. Shutting down.
java.lang.IllegalAccessError: class
org.apache.hadoop.security.SecurityUtil$QualifiedHostResolver (in unnamed
module @0x3eb25e1a) cannot access class sun.net.dns.ResolverConfiguration (in
module java.base) because module java.base does not export sun.net.dns to
unnamed module @0x3eb25e1a
at
org.apache.hadoop.security.SecurityUtil$QualifiedHostResolver.<init>(SecurityUtil.java:589)
at
org.apache.hadoop.security.SecurityUtil.setTokenServiceUseIp(SecurityUtil.java:127)
at
org.apache.hadoop.security.SecurityUtil.setConfigurationInternal(SecurityUtil.java:100)
at
org.apache.hadoop.security.SecurityUtil.<clinit>(SecurityUtil.java:86)
at
org.apache.phoenix.queryserver.server.QueryServer.run(QueryServer.java:220)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:81)
at
org.apache.phoenix.queryserver.server.QueryServer.main(QueryServer.java:650)
{noformat}
While this is coming from the QueryServer code, the problem is in the
Hadoop-client, so we should just set the flags globally, both in PQS and core.
was (Author: stoty):
This is the error we get with a specific HDFS setup on PQS startup:
{noformat}
Unrecoverable service error. Shutting down.
java.lang.IllegalAccessError: class
org.apache.hadoop.security.SecurityUtil$QualifiedHostResolver (in unnamed
module @0x3eb25e1a) cannot access class sun.net.dns.ResolverConfiguration (in
module java.base) because module java.base does not export sun.net.dns to
unnamed module @0x3eb25e1a
at
org.apache.hadoop.security.SecurityUtil$QualifiedHostResolver.<init>(SecurityUtil.java:589)
at
org.apache.hadoop.security.SecurityUtil.setTokenServiceUseIp(SecurityUtil.java:127)
at
org.apache.hadoop.security.SecurityUtil.setConfigurationInternal(SecurityUtil.java:100)
at
org.apache.hadoop.security.SecurityUtil.<clinit>(SecurityUtil.java:86)
at
org.apache.phoenix.queryserver.server.QueryServer.run(QueryServer.java:220)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:81)
at
org.apache.phoenix.queryserver.server.QueryServer.main(QueryServer.java:650)
{noformat}
While this is coming from the QueryServer code, the problem is in the
Hadoop-client, sowe should just set the flags globally, both in PQS and core.
> Detect JVM version and add the necessary flags in startup scripts
> -----------------------------------------------------------------
>
> Key: PHOENIX-7143
> URL: https://issues.apache.org/jira/browse/PHOENIX-7143
> Project: Phoenix
> Issue Type: Bug
> Components: core, queryserver
> Affects Versions: queryserver-6.0.0
> Reporter: Istvan Toth
> Assignee: Istvan Toth
> Priority: Major
>
> Just copy the logic and flags from the hbase startup script.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)