在 Apache Storm 中使用 LocalCluster 和 StormSubmitter 创建拓扑有什么区别?

What is the difference between using LocalCluster and StormSubmitter to create topology in Apache Storm?

Submitter 和 Cluster 之间有什么具体的区别吗?当我使用 LocalCluster 时,它会自动创建 yaml 文件。但是,我想用我自己的设置来设置这个 yaml 文件。

LocalCluster 用于测试,运行Storm 组件(Nimbus、Supervisors 和 Workers)在您启动 LocalCluster 的 JVM 中。您不应该在生产环境中使用 LocalCluster。

StormSubmitter 用于将拓扑提交到真实的 Storm 集群。 Nimbus、Supervisors 和 Workers 都 运行 在他们自己的 JVM 中,可以分布在多台机器上。设置集群的指南位于 https://storm.apache.org/releases/2.0.0-SNAPSHOT/Setting-up-a-Storm-cluster.html。 storm.yaml 文件可以在 your-storm-dir/conf/storm.yaml.

中找到