qubole / qds-sdk-java

A Java library that provides the tools you need to authenticate with, and use the Qubole Data Service API.

Home Page:https://api.qubole.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ResultStreamer exception when using shaded JAR

opened this issue · comments

ResultStreamer fails to stream the results from S3 when using a shaded JAR installation created using the steps defined here.

The following exception is thrown:
Exception in thread "main" java.lang.NoSuchMethodError:

com.fasterxml.jackson.databind.ObjectMapper.configure(Lhidden/com/fasterxml/jackson/core/JsonParser$Feature;Z)Lcom/fasterxml/jackson/databind/ObjectMapper;
    at hidden.com.amazonaws.internal.config.InternalConfig.<clinit>(InternalConfig.java:43)
    at hidden.com.amazonaws.internal.config.InternalConfig$Factory.<clinit>(InternalConfig.java:304)
    at hidden.com.amazonaws.util.VersionInfoUtils.userAgent(VersionInfoUtils.java:139)
    at hidden.com.amazonaws.util.VersionInfoUtils.initializeUserAgent(VersionInfoUtils.java:134)
    at hidden.com.amazonaws.util.VersionInfoUtils.getUserAgent(VersionInfoUtils.java:95)
    at hidden.com.amazonaws.ClientConfiguration.<clinit>(ClientConfiguration.java:60)
    at hidden.com.amazonaws.ClientConfigurationFactory.getDefaultConfig(ClientConfigurationFactory.java:46)
    at hidden.com.amazonaws.ClientConfigurationFactory.getConfig(ClientConfigurationFactory.java:35)
    at hidden.com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:304)
    at com.qubole.qds.sdk.java.client.ResultStreamer.newS3Client(ResultStreamer.java:117)

Relocation of some dependencies are missing in the POM file.