Skip to content

Improve JAR packaging (re-packaged net.jpountz.lz4) #93

@dgloeckner

Description

@dgloeckner

When both Apache Spark and ClickHouse4j are on the classpath, the following issue occurs.

java.lang.NoSuchMethodError: 'void net.jpountz.lz4.LZ4BlockInputStream.<init>(java.io.InputStream, net.jpountz.lz4.LZ4FastDecompressor, java.util.zip.Checksum, boolean)'
       org.apache.spark.io.LZ4CompressionCodec.compressedInputStream(CompressionCodec.scala:153)
       org.apache.spark.sql.execution.SparkPlan.decodeUnsafeRows(SparkPlan.scala:367)
       org.apache.spark.sql.execution.SparkPlan.$anonfun$executeCollect$1(SparkPlan.scala:391)
<dependency>
            <groupId>org.apache.spark</groupId>
            <artifactId>spark-sql_${scala.version}</artifactId>
            <version>${spark.version}</version>
        </dependency>
        <dependency>
            <groupId>cc.blynk.clickhouse</groupId>
            <artifactId>clickhouse4j</artifactId>
        </dependency>

The root cause of this are the re-packaged classes from net.jpountz.

Could you please consider to either

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions