GitHub user mazhechao opened a pull request:

    https://github.com/apache/storm/pull/1436

    add hadoop-common dependency in README for storm-hdfs

    If hadoop-common is not included in pom.xml since storm-hdfs 1.0.0, we will 
get runtime errors. README should mention that.
    
    `
    java.lang.NoClassDefFoundError: org/apache/hadoop/fs/CanUnbuffer at 
java.lang.ClassLoader.defineClass1(Native Method) at 
java.lang.ClassLoader.defineClass(ClassLoader.java:800) at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at 
java.net.URLClassLoader.access$100(URLClassLoader.java:71) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:361) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:355) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.net.URLClassLoader.findClass(URLClassLoader.java:354) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:425) at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:358) at 
org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:149)
 at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2596) at 
org.apache.hadoop.fs.FileSyst
 em.access$200(FileSystem.java:91) at 
org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2630) at 
org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2612) at 
org.apache.hadoop.fs.FileSystem.get(FileSystem.java:370) at 
org.apache.storm.hdfs.bolt.HdfsBolt.doPrepare(HdfsBolt.java:95) at 
org.apache.storm.hdfs.bolt.AbstractHdfsBolt.prepare(AbstractHdfsBolt.java:119) 
at org.apache.storm.daemon.executor$fn__7953$fn__7966.invoke(executor.clj:792) 
at org.apache.storm.util$async_loop$fn__625.invoke(util.clj:482) at 
clojure.lang.AFn.run(AFn.java:22) at java.lang.Thread.run(Thread.java:745) 
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.fs.CanUnbuffer 
at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:355) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.net.URLClassLoader.findClass(URLClassLoader.java:354) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Lau
 ncher$AppClassLoader.loadClass(Launcher.java:308) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 24 more
    `

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mazhechao/storm master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/storm/pull/1436.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1436
    
----
commit cec87e6c0c7d0df67445b80a8ad8a80626276444
Author: mazhechao <mazhec...@gmail.com>
Date:   2016-05-20T08:35:40Z

    add hadoop-common dependency in README

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to