jnturton commented on PR #2821:
URL: https://github.com/apache/drill/pull/2821#issuecomment-1682344122

   I've just set this PR to Draft because I rediscovered a problem in the Drill 
JDBC driver. I'll paste a chat message I sent to @vvysotskyi a few months back 
below, to reveal the nature of the problem. I'm sure it's ultimately fixable, 
but I don't know of an elegant fix yet.
   
   > Hi Vova! I decided to try upgrading Drill's Hadoop libs to 3.3.5. Things 
are working but there is a problem in the Drill JDBC fat jar. There, the shade 
plugin relocates Hadoop to underneath oadd as usual but now there are class 
names present in the core-default.xml file in hadoop-common.jar which are not 
updated by the shade plugin. The result is that the JDBC driver is broken. 
While the shade plugin can update some kinds of text config files, it doesn't 
appear that it can update arbitrary XML config like core-default.xml. I thought 
of including our own manually updated copy of core-default.xml in 
exec/jdbc-all/src/resources and trying to make sure the shade plugin picks that 
one instead of the one in hadoop-common.jar. My only reservation is that 
introducing this copy creates a maintenance burden for the future so I thought 
to ask you if you have any ideas...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@drill.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to