首页 > 其他分享 >Creating a new Storm project

Creating a new Storm project

时间:2023-03-28 14:08:18浏览次数:55  
标签:Creating Eclipse project Storm new jars your multilang


Creating a new Storm project



This page outlines how to set up a Storm project for development. The steps are:

  1. Add Storm jars to classpath
  2. If using multilang, add multilang dir to classpath

Follow along to see how to set up the storm-starter project in Eclipse.

Add Storm jars to classpath

You'll need the Storm jars on your classpath to develop Storm topologies. Using Maven is highly recommended. Here's an example of how to setup your pom.xml for a Storm project. If you don't want to use Maven, you can include the jars from the Storm release on your classpath.

storm-starter uses Leiningen for build and dependency resolution. You can install leiningen by downloading this script, placing it on your path, and making it executable. To retrieve the dependencies for Storm, simply run lein depsTo set up the classpath in Eclipse, create a new Java project, include src/jvm/ as a source path, and make sure all the jars in lib/ andlib/dev/ are in the Referenced Libraries

If using multilang, add multilang dir to classpath

If you implement spouts or bolts in languages other than Java, then those implementations should be under the multilang/resources/directory of the project. For Storm to find these files in local mode, the resources/ dir needs to be on the classpath. You can do this in Eclipse by adding multilang/

For more information on writing topologies in other languages, see Using non-JVM languages with Storm.

To test that everything is working in Eclipse, you should now be able to Run the WordCountTopology.java

come from storm wiki

标签:Creating,Eclipse,project,Storm,new,jars,your,multilang
From: https://blog.51cto.com/u_2650279/6154703

相关文章

  • Project #1 - Buffer Pool
    OverviewLecture#05BufferPoolLecture#06HashTablesProject1主要与Bustub的storagemanager相关,分为三个部分:ExtendibleHashTableLRU-KReplacerBuffer......
  • C#中重写(override)及覆盖(new)的区别详解
    1.重写和覆盖的定义1.1重写(override)的定义  在C#中,用override关键字来重写一个父类中的虚方法或抽象方法。override关键字用于指示编译器,我要用派生类中的一个方法......
  • 二人团队Barbary两周打造出日记社区NewMe
    NewMe是一个日记社区,帮助人们记录各类心得日记,找到相似的人互相倾诉、鼓励、交流和学习。NewMe主要面向:文艺青年,热爱写作,有压力需要倾诉的人群。而不像其他博客、日记......
  • Go 语言 new 和 make 关键字的区别
    原文链接:Go语言new和make关键字的区别本篇文章来介绍一道非常常见的面试题,到底有多常见呢?可能很多面试的开场白就是由此开始的。那就是new和make这两个内置函数......
  • springboot中让sentinel持久化到nacos中报错sentinel持久化报错Error creating bean w
    若依框架报错原因:pom中没有引入依赖:<!--SpringCloudAlibabaSentinel--><dependency><groupId>com.alibaba.cloud</groupId>......
  • Spring的 IOC 容器比New对象究竟好在哪?
    ioc的思想最核心的地方在于,资源不由使用资源的双方管理,而由不使用资源的第三方管理,这可以带来很多好处。资源集中管理,实现资源的可配置和易管理。降低了使用资源双方的......
  • 虚拟内存与malloc/new原理详解
    mallocmalloc()函数并不是系统调用,而是C库里的函数,用于动态分配内存。malloc()分配的是虚拟内存,而不是物理内存。如果分配后的虚拟内存没有被访问的话,是不会将虚拟内存......
  • CS61B学习笔记_Project0
    1GameRules1.4x4网格,每个位置为空或者填有带有一个2的正整数次幂数字的贴图;2.第一次移动前,随机选择一个空位填入带有数字2或4的贴图,其中填充2的概率为75%,填充4的概率......
  • new Date(时间) IOS兼容的问题
    当时间格式为yyyy-MM-ddHH:mm:ss时,即日期使用-连接时,ios会无法识别,返回invalidDate无法识别和转换解决方法:使用replace替换,直接将-替换为/这样安卓和IOS就都可以......
  • 前端面试题(new)未完待续
    1,vue计算属性computed和watch的区别有哪些?区别:1、计算属性在调用时需要在模板中渲染,修改计算所依赖元数据;watch在调用时只需修改元数据。2、计算属性默认深度依赖,watch默......