Shubham Saxena
06/07/2023, 11:33 AMMartijn Visser
06/07/2023, 11:34 AMMartijn Visser
06/07/2023, 11:35 AMShubham Saxena
06/07/2023, 11:57 AMorg.apache.flink.runtime.fs.hdfs.HadoopFsFactory
.
IMO, Shaded jars was the answer to handle conflicting version issues. I might be over-simplifying it but I can't wrap my head around why file systems are different than any other application dependencies. I understand that hadoop dependency tree can very complex due to which flink went away from copying jar in older versions to specifying a separate hadoop classpath altogether.Martijn Visser
06/07/2023, 12:04 PMShaded jars was the answer to handle conflicting version issues.Given that Flink internally, connectors and user applications all can introduce conflicting versions, I don't think that's the answer. The answer is to isolate things. We're already seeing how insanely hard it is to update to a newer version of Guava internally, because connectors that have been externalized relied on that shaded version. It takes multiple releases before these things can happen.
why file systems are different than any other application dependencies.It's because the file systems implementations are ahead of the curve and were done first, to actually break the deadlock we were running into with shading.
Martijn Visser
06/07/2023, 12:06 PMShubham Saxena
06/07/2023, 12:23 PMflink-shaded-hadoop-2-uber
jar in lib directory and running into NoClassDefFoundError for google guava classes even if classes are present in application jar. Are aware of any way to troubleshoot such issues ??Martijn Visser
06/07/2023, 12:49 PMflink-shaded-hadoop-2-uber
is not maintained and shouldn't be used π