jon-wei opened a new pull request #8652: Fix missing jackson jars for hadoop 
ingestion
URL: https://github.com/apache/incubator-druid/pull/8652
 
 
   This PR adds the following jars back to druid-hdfs-storage (pruned in #8230) 
due to observing issues with hadoop ingestion when they're missing:
   
   ```
   jackson-jaxrs-1.9.13.jar
   jackson-xc-1.9.13.jar
   ```
   
   It also adds an explicit dependency on `jackson-core-asl-1.9.13` to 
`indexing-hadoop`, this is currently being brought in through the Curator 4.1.0 
dependency, but it's needed when using Hadoop/HDFS:
   
   ```
   2019-10-08T21:04:19,977 WARN [main] org.apache.hadoop.util.NativeCodeLoader 
- Unable to load native-hadoop library for your platform... using builtin-java 
classes where applicable
   2019-10-08T21:04:20,463 WARN [main] org.apache.hadoop.fs.FileSystem - Cannot 
load filesystem: java.util.ServiceConfigurationError: 
org.apache.hadoop.fs.FileSystem: Provider 
org.apache.hadoop.hdfs.web.WebHdfsFileSystem could not be instantiated
   2019-10-08T21:04:20,463 WARN [main] org.apache.hadoop.fs.FileSystem - 
java.lang.NoClassDefFoundError: org/codehaus/jackson/map/ObjectMapper
   2019-10-08T21:04:20,463 WARN [main] org.apache.hadoop.fs.FileSystem - 
java.lang.ClassNotFoundException: org.codehaus.jackson.map.ObjectMapper
   2019-10-08T21:04:20,463 WARN [main] org.apache.hadoop.fs.FileSystem - Cannot 
load filesystem: java.util.ServiceConfigurationError: 
org.apache.hadoop.fs.FileSystem: Provider 
org.apache.hadoop.hdfs.web.SWebHdfsFileSystem could not be instantiated
   2019-10-08T21:04:20,464 WARN [main] org.apache.hadoop.fs.FileSystem - 
java.lang.NoClassDefFoundError: org.apache.hadoop.hdfs.web.WebHdfsFileSystem
   Exception in thread "main" java.lang.NoClassDefFoundError: 
org/codehaus/jackson/JsonGenerator
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
        at java.lang.Class.getDeclaredMethods(Class.java:1975)
        at 
com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:688)
        at 
com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:380)
        at 
com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:399)
        at 
com.google.inject.internal.BindingBuilder.toInstance(BindingBuilder.java:84)
        at 
org.apache.druid.storage.hdfs.HdfsStorageDruidModule.configure(HdfsStorageDruidModule.java:122)
        at 
com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
        at com.google.inject.spi.Elements.getElements(Elements.java:110)
        at 
com.google.inject.util.Modules$OverrideModule.configure(Modules.java:198)
        at com.google.inject.AbstractModule.configure(AbstractModule.java:62)
        at 
com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
        at com.google.inject.spi.Elements.getElements(Elements.java:110)
        at 
com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:138)
        at 
com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
        at com.google.inject.Guice.createInjector(Guice.java:99)
        at com.google.inject.Guice.createInjector(Guice.java:73)
        at com.google.inject.Guice.createInjector(Guice.java:62)
        at 
org.apache.druid.initialization.Initialization.makeInjectorWithModules(Initialization.java:419)
        at 
org.apache.druid.cli.GuiceRunnable.makeInjector(GuiceRunnable.java:69)
        at org.apache.druid.cli.ServerRunnable.run(ServerRunnable.java:56)
        at org.apache.druid.cli.Main.main(Main.java:113)
   Caused by: java.lang.ClassNotFoundException: 
org.codehaus.jackson.JsonGenerator
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 23 more
   ```
   
   This PR has:
   - [x] been self-reviewed.
   - [x] been tested in a test Druid cluster.
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to