流式计算框架Storm 编程案例部署Linux结果演示及pom依赖
生活随笔
收集整理的這篇文章主要介紹了
流式计算框架Storm 编程案例部署Linux结果演示及pom依赖
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
?使用maven方式創建storm項目:
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><parent><artifactId>storm</artifactId><groupId>org.apache.storm</groupId><version>0.9.2-incubating</version></parent><groupId>com.zhangxueliang.storm</groupId><artifactId>storm-demo</artifactId><version>1.0-SNAPSHOT</version><dependencies><dependency><groupId>junit</groupId><artifactId>junit</artifactId><scope>test</scope></dependency><dependency><groupId>org.testng</groupId><artifactId>testng</artifactId><version>6.8.5</version><scope>test</scope></dependency><dependency><groupId>org.mockito</groupId><artifactId>mockito-all</artifactId><scope>test</scope></dependency><dependency><groupId>org.easytesting</groupId><artifactId>fest-assert-core</artifactId><version>2.0M8</version><scope>test</scope></dependency><dependency><groupId>org.jmock</groupId><artifactId>jmock</artifactId><version>2.6.0</version><scope>test</scope></dependency><dependency><groupId>org.twitter4j</groupId><artifactId>twitter4j-stream</artifactId><version>3.0.3</version></dependency><dependency><groupId>org.apache.storm</groupId><artifactId>storm-core</artifactId><version>0.9.2-incubating</version><!-- keep storm out of the jar-with-dependencies --><scope>provided</scope></dependency><dependency><groupId>commons-collections</groupId><artifactId>commons-collections</artifactId><version>3.2.1</version></dependency><dependency><groupId>com.google.guava</groupId><artifactId>guava</artifactId></dependency></dependencies><build><resources><resource><directory>${basedir}/multilang</directory></resource></resources><plugins><!--Bind the maven-assembly-plugin to the package phasethis will create a jar file without the storm dependenciessuitable for deployment to a cluster.--><plugin><artifactId>maven-assembly-plugin</artifactId><configuration><descriptorRefs><descriptorRef>jar-with-dependencies</descriptorRef></descriptorRefs><archive><manifest><mainClass /></manifest></archive></configuration><executions><execution><id>make-assembly</id><phase>package</phase><goals><goal>single</goal></goals></execution></executions></plugin><plugin><groupId>com.theoryinpractise</groupId><artifactId>clojure-maven-plugin</artifactId><extensions>true</extensions><configuration><sourceDirectories><sourceDirectory>src/clj</sourceDirectory></sourceDirectories></configuration><executions><execution><id>compile</id><phase>compile</phase><goals><goal>compile</goal></goals></execution></executions></plugin><plugin><groupId>org.codehaus.mojo</groupId><artifactId>exec-maven-plugin</artifactId><version>1.2.1</version><executions><execution><goals><goal>exec</goal></goals></execution></executions><configuration><executable>java</executable><includeProjectDependencies>true</includeProjectDependencies><includePluginDependencies>false</includePluginDependencies><classpathScope>compile</classpathScope><mainClass>com.zhangxueliang.storm.TopoSubmitterClient</mainClass></configuration></plugin></plugins></build></project>總結
以上是生活随笔為你收集整理的流式计算框架Storm 编程案例部署Linux结果演示及pom依赖的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 流式计算框架Storm编程案例:实时给手
- 下一篇: Linux查看系统位数命令