Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

Not clear about how to use User Defined Scheduler #665

Open
Chenfengldw opened this issue Apr 28, 2019 · 0 comments
Open

Not clear about how to use User Defined Scheduler #665

Chenfengldw opened this issue Apr 28, 2019 · 0 comments

Comments

@Chenfengldw
Copy link

In the document: http://jstorm.io/ProgrammingGuide/AdvancedUsage/UserDefined/Scheduler.html

It shows many settings and also a demo code, but in which file to write these settings?

The code:
WorkerAssignment worker = new WorkerAssignment(); worker.addComponent(String compenentName, Integer num); //Add a task on this worker worker.setHostName(String hostName); //force this worker on one machine worker.setJvm(String jvm); //this can be skipped, set jvm parameters of this worker worker.setMem(long mem); //this can be skipped, set the worker's memory size worker.setCpu(int slotNum);

Where should I put them? Shall I put them in the topology code?

I am really confused by the document

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant