1.在maven-jstorm的项目中出现下面错误:
E:\develop\jdk8\bin\java "-javaagent:E:\IDEA\IntelliJ IDEA 2017.3.2\lib\idea_rt.jar=7989:E:\IDEA\IntelliJ IDEA 2017.3.2\bin" -Dfile.encoding=UTF-8 -classpath E:\develop\jdk8\jre\lib\charsets.jar;E:\develop\jdk8\jre\lib\deploy.jar;E:\develop\jdk8\jre\lib\ext\access-bridge-64.jar;E:\develop\jdk8\jre\lib\ext\cldrdata.jar;E:\develop\jdk8\jre\lib\ext\dnsns.jar;E:\develop\jdk8\jre\lib\ext\jaccess.jar;E:\develop\jdk8\jre\lib\ext\jfxrt.jar;E:\develop\jdk8\jre\lib\ext\localedata.jar;E:\develop\jdk8\jre\lib\ext\nashorn.jar;E:\develop\jdk8\jre\lib\ext\sunec.jar;E:\develop\jdk8\jre\lib\ext\sunjce_provider.jar;E:\develop\jdk8\jre\lib\ext\sunmscapi.jar;E:\develop\jdk8\jre\lib\ext\sunpkcs11.jar;E:\develop\jdk8\jre\lib\ext\zipfs.jar;E:\develop\jdk8\jre\lib\javaws.jar;E:\develop\jdk8\jre\lib\jce.jar;E:\develop\jdk8\jre\lib\jfr.jar;E:\develop\jdk8\jre\lib\jfxswt.jar;E:\develop\jdk8\jre\lib\jsse.jar;E:\develop\jdk8\jre\lib\management-agent.jar;E:\develop\jdk8\jre\lib\plugin.jar;E:\develop\jdk8\jre\lib\resources.jar;E:\develop\jdk8\jre\lib\rt.jar;E:\IdHome\itquwei-realtime-project\realtime-jstorm-wordcount\target\classes;D:\develop\apache-maven-3.5.3\repository_pinyougou\com\alibaba\jstorm\jstorm-core\2.1.1\jstorm-core-2.1.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\plugins\maven-javadoc-plugin\2.9\maven-javadoc-plugin-2.9.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\maven-core\2.2.1\maven-core-2.2.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\wagon\wagon-file\1.0-beta-6\wagon-file-1.0-beta-6.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\maven-plugin-parameter-documenter\2.2.1\maven-plugin-parameter-documenter-2.2.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\wagon\wagon-http-lightweight\1.0-beta-6\wagon-http-lightweight-1.0-beta-6.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\wagon\wagon-http-shared\1.0-beta-6\wagon-http-shared-1.0-beta-6.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\nekohtml\xercesMinimal\1.9.6.2\xercesMinimal-1.9.6.2.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\nekohtml\nekohtml\1.9.6.2\nekohtml-1.9.6.2.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\wagon\wagon-http\1.0-beta-6\wagon-http-1.0-beta-6.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\wagon\wagon-webdav-jackrabbit\1.0-beta-6\wagon-webdav-jackrabbit-1.0-beta-6.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\jackrabbit\jackrabbit-webdav\1.5.0\jackrabbit-webdav-1.5.0.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\jackrabbit\jackrabbit-jcr-commons\1.5.0\jackrabbit-jcr-commons-1.5.0.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\slf4j\slf4j-nop\1.5.3\slf4j-nop-1.5.3.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\slf4j\slf4j-jdk14\1.5.6\slf4j-jdk14-1.5.6.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\slf4j\jcl-over-slf4j\1.5.6\jcl-over-slf4j-1.5.6.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\maven-profile\2.2.1\maven-profile-2.2.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\maven-repository-metadata\2.2.1\maven-repository-metadata-2.2.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\maven-error-diagnostics\2.2.1\maven-error-diagnostics-2.2.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\wagon\wagon-ssh-external\1.0-beta-6\wagon-ssh-external-1.0-beta-6.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\wagon\wagon-ssh-common\1.0-beta-6\wagon-ssh-common-1.0-beta-6.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\maven-plugin-descriptor\2.2.1\maven-plugin-descriptor-2.2.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\codehaus\plexus\plexus-interactivity-api\1.0-alpha-4\plexus-interactivity-api-1.0-alpha-4.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\maven-monitor\2.2.1\maven-monitor-2.2.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\wagon\wagon-ssh\1.0-beta-6\wagon-ssh-1.0-beta-6.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\com\jcraft\jsch\0.1.38\jsch-0.1.38.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\classworlds\classworlds\1.1\classworlds-1.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\sonatype\plexus\plexus-sec-dispatcher\1.3\plexus-sec-dispatcher-1.3.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\sonatype\plexus\plexus-cipher\1.4\plexus-cipher-1.4.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\maven-project\2.2.1\maven-project-2.2.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\maven-plugin-registry\2.2.1\maven-plugin-registry-2.2.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\codehaus\plexus\plexus-interpolation\1.11\plexus-interpolation-1.11.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\maven-model\2.2.1\maven-model-2.2.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\maven-settings\2.2.1\maven-settings-2.2.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\maven-plugin-api\2.2.1\maven-plugin-api-2.2.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\maven-artifact\2.2.1\maven-artifact-2.2.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\maven-artifact-manager\2.2.1\maven-artifact-manager-2.2.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\backport-util-concurrent\backport-util-concurrent\3.1\backport-util-concurrent-3.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\maven-toolchain\2.2.1\maven-toolchain-2.2.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\reporting\maven-reporting-api\3.0\maven-reporting-api-3.0.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\maven-archiver\2.5\maven-archiver-2.5.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\shared\maven-invoker\2.0.9\maven-invoker-2.0.9.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\shared\maven-common-artifact-filters\1.3\maven-common-artifact-filters-1.3.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\doxia\doxia-sink-api\1.0\doxia-sink-api-1.0.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\doxia\doxia-site-renderer\1.0\doxia-site-renderer-1.0.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\doxia\doxia-core\1.0\doxia-core-1.0.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\codehaus\plexus\plexus-i18n\1.0-beta-7\plexus-i18n-1.0-beta-7.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\codehaus\plexus\plexus-velocity\1.1.7\plexus-velocity-1.1.7.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\velocity\velocity\1.5\velocity-1.5.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\oro\oro\2.0.8\oro-2.0.8.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\doxia\doxia-decoration-model\1.0\doxia-decoration-model-1.0.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\commons-collections\commons-collections\3.2\commons-collections-3.2.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\doxia\doxia-module-apt\1.0\doxia-module-apt-1.0.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\doxia\doxia-module-fml\1.0\doxia-module-fml-1.0.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\doxia\doxia-module-xdoc\1.0\doxia-module-xdoc-1.0.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\doxia\doxia-module-xhtml\1.0\doxia-module-xhtml-1.0.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\maven\wagon\wagon-provider-api\1.0-beta-6\wagon-provider-api-1.0-beta-6.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\commons-httpclient\commons-httpclient\3.1\commons-httpclient-3.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\log4j\log4j\1.2.14\log4j-1.2.14.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\com\thoughtworks\qdox\qdox\1.12\qdox-1.12.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\codehaus\plexus\plexus-container-default\1.0-alpha-9\plexus-container-default-1.0-alpha-9.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\junit\junit\3.8.1\junit-3.8.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\codehaus\plexus\plexus-archiver\2.1.2\plexus-archiver-2.1.2.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\codehaus\plexus\plexus-io\2.0.4\plexus-io-2.0.4.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\codehaus\plexus\plexus-utils\3.0.5\plexus-utils-3.0.5.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\clojure\clojure\1.6.0\clojure-1.6.0.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\commons-io\commons-io\2.4\commons-io-2.4.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\commons\commons-exec\1.1\commons-exec-1.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\commons-lang\commons-lang\2.5\commons-lang-2.5.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\commons-cli\commons-cli\1.2\commons-cli-1.2.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\httpcomponents\httpclient\4.3.3\httpclient-4.3.3.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\httpcomponents\httpcore\4.3.2\httpcore-4.3.2.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\commons-codec\commons-codec\1.6\commons-codec-1.6.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\thrift\libthrift\0.9.2\libthrift-0.9.2.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\curator\curator-framework\2.5.0\curator-framework-2.5.0.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\curator\curator-client\2.5.0\curator-client-2.5.0.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\apache\zookeeper\zookeeper\3.4.6\zookeeper-3.4.6.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\jline\jline\0.9.94\jline-0.9.94.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\com\google\guava\guava\16.0.1\guava-16.0.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\com\esotericsoftware\kryo\kryo\2.21\kryo-2.21.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\com\esotericsoftware\reflectasm\reflectasm\1.07\reflectasm-1.07-shaded.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\ow2\asm\asm\4.0\asm-4.0.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\objenesis\objenesis\1.2\objenesis-1.2.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\com\googlecode\json-simple\json-simple\1.1\json-simple-1.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\com\twitter\carbonite\1.4.0\carbonite-1.4.0.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\com\twitter\chill-java\0.3.5\chill-java-0.3.5.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\yaml\snakeyaml\1.11\snakeyaml-1.11.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\com\lmax\disruptor\3.3.2\disruptor-3.3.2.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\io\netty\netty\3.9.0.Final\netty-3.9.0.Final.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\jgrapht\jgrapht-core\0.9.0\jgrapht-core-0.9.0.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\ch\qos\logback\logback-classic\1.0.13\logback-classic-1.0.13.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\ch\qos\logback\logback-core\1.0.13\logback-core-1.0.13.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\slf4j\slf4j-api\1.7.5\slf4j-api-1.7.5.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\slf4j\log4j-over-slf4j\1.6.6\log4j-over-slf4j-1.6.6.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\com\google\code\gson\gson\2.3.1\gson-2.3.1.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\io\dropwizard\metrics\metrics-core\3.1.2\metrics-core-3.1.2.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\io\dropwizard\metrics\metrics-healthchecks\3.1.2\metrics-healthchecks-3.1.2.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\io\dropwizard\metrics\metrics-jvm\3.1.2\metrics-jvm-3.1.2.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar;D:\develop\apache-maven-3.5.3\repository_pinyougou\org\rocksdb\rocksdbjni\3.10.1\rocksdbjni-3.10.1.jar com.itquwei.jstorm.wordcount.WordCountTopology
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/develop/apache-maven-3.5.3/repository_pinyougou/org/slf4j/slf4j-nop/1.5.3/slf4j-nop-1.5.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/develop/apache-maven-3.5.3/repository_pinyougou/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/develop/apache-maven-3.5.3/repository_pinyougou/ch/qos/logback/logback-classic/1.0.13/logback-classic-1.0.13.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: slf4j-api 1.6.x (or later) is incompatible with this binding.
SLF4J: Your binding is version 1.5.5 or earlier.
SLF4J: Upgrade your binding to version 1.6.x.
Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.impl.StaticLoggerBinder.getSingleton()Lorg/slf4j/impl/StaticLoggerBinder;
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
at backtype.storm.LocalCluster.<clinit>(LocalCluster.java:32)
at com.itquwei.jstorm.wordcount.WordCountTopology.main(WordCountTopology.java:28)
2.原因是:jstrom的所需的jar包没有安装
解决方法:
下载jstorm源码包
下载地址:
https://github.com/alibaba/jstorm
3.将压缩包解压后:
导入idea中
4.配置maven的信息
5.安装到maven的库中
6.安装完成:
自己写个wordcount程序:
7.最后测试完成:
![](https://i-blog.csdnimg.cn/blog_migrate/1159579ad36d4f570b4c7d946323cae0.png)