amousavigourabi commented on code in PR #1141: URL: https://github.com/apache/parquet-mr/pull/1141#discussion_r1335208155
########## parquet-hadoop/src/main/java/org/apache/parquet/hadoop/CodecFactory.java: ########## @@ -246,9 +262,9 @@ protected CompressionCodec getCodec(CompressionCodecName codecName) { codecClass = Class.forName(codecClassName); } catch (ClassNotFoundException e) { // Try to load the class using the job classloader - codecClass = configuration.getClassLoader().loadClass(codecClassName); + codecClass = new Configuration(false).getClassLoader().loadClass(codecClassName); } - codec = (CompressionCodec) ReflectionUtils.newInstance(codecClass, configuration); + codec = (CompressionCodec) ReflectionUtils.newInstance(codecClass, ConfigurationUtil.createHadoopConfiguration(configuration)); Review Comment: This PR removes _part_ of the Hadoop dependency. For at least the codecs we still rely on them OOTB (see PARQUET-2353). AFAIK, using uncompressed codec should not lead to the Hadoop classes being loaded (which would require the runtime dependency). -- 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...@parquet.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org