日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

流式计算框架Storm 编程案例部署Linux结果演示及pom依赖

發布時間:2025/1/21 linux 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 流式计算框架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依赖的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。