shihuafeng created DRILL-8547:
---------------------------------

             Summary: Drillbit fails to start with NoSuchFieldError: sizeClass 
due to un-relocated Netty classes from hadoop-aws
                 Key: DRILL-8547
                 URL: https://issues.apache.org/jira/browse/DRILL-8547
             Project: Apache Drill
          Issue Type: Bug
          Components:  Server
    Affects Versions: 1.23.0
            Reporter: shihuafeng
             Fix For: 1.23.0


Drillbit fails to start with {{java.lang.NoSuchFieldError: sizeClass}} 
immediately after distribution build. The root cause is an un-relocated (old) 
copy of {{io.netty.buffer.PoolArena}} shipped inside 
{{{}software.amazon.awssdk:bundle:2.24.6{}}}, which is a transitive dependency 
of {{org.apache.hadoop:hadoop-aws:3.4.1}} declared in 
{{{}distribution/pom.xml{}}}.

This old {{PoolArena}} class shadows Drill's own {{netty-buffer-4.1.118.Final}} 
on the classpath, causing {{PooledByteBufAllocatorL$InnerAllocator}} to fail 
when it accesses the {{sizeClass}} field that only exists in the newer netty 
version.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to