Druid + CDH - uber jar

Hi,

following the hints stated in this page

https://github.com/druid-io/druid/blob/master/docs/content/operations/other-hadoop.md

I found out, that option for Druid + CDH integration does not work, neither Preferred, neither Alternative 2 and 3 options .

Compiling Druid with lower version of Jackson libraries resulted to strane errors like:

java.lang.IllegalStateException: Conflicting property name definitions: maxRowsInMemory (for [method io.druid.indexer.HadoopTuningConfig#getRowFlushBoundary(0 params)]) vs rowFlushBoundary (for [parameter #13, annotations: {interface com.fasterxml.jackson.annotation.JsonProperty=@com.fasterxml.jackson.annotation.JsonProperty(value=rowFlushBoundary, required=false)}])

So I tried to build a self contained jar, with maven shading, but ended up with this ERROR (using openjdk version “1.8.0_131”).

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.2:shade (default) on project java-util: Error creating shaded jar: Error in ASM processing class io/druid/java/util/common/parsers/DelimitedParser.class: 52264 -> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.2:shade (default) on project java-util: Error creating shaded jar: Error in ASM processing class io/druid/java/util/common/parsers/DelimitedParser.class

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)

at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)

at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)

at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)

at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)

at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:414)

at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)

Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating shaded jar: Error in ASM processing class io/druid/java/util/common/parsers/DelimitedParser.class

at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:567)

at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)

… 19 more

Caused by: org.apache.maven.plugin.MojoExecutionException: Error in ASM processing class io/druid/java/util/common/parsers/DelimitedParser.class

at org.apache.maven.plugins.shade.DefaultShader.addRemappedClass(DefaultShader.java:346)

at org.apache.maven.plugins.shade.DefaultShader.shade(DefaultShader.java:164)

at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:472)

… 21 more

Caused by: java.lang.ArrayIndexOutOfBoundsException: 52264

at org.objectweb.asm.ClassReader.readClass(Unknown Source)

at org.objectweb.asm.ClassReader.accept(Unknown Source)

at org.objectweb.asm.ClassReader.accept(Unknown Source)

at org.apache.maven.plugins.shade.DefaultShader.addRemappedClass(DefaultShader.java:342)

Druid version 0.10.1 and CDH 5.11

Any ideas how to move forward?

Thanks