Giter Club home page Giter Club logo

Comments (6)

kramasamy avatar kramasamy commented on May 20, 2024

@ashvina - We did a recent checkin where the scheduler architecture is streamlined now. Everything about a cluster is read from a bunch of config files. Try the following

checkout the new master and run

bazel run --config=darwin -- release/packages:heron-client-install.sh --user

This will install the client of heron at your home directory ~/.heron and the executable heron-cli3 in your ~/bin will have a link ~/.heron/bin/heron-cli3.

This installation has already a bunch of configs built in for the local scheduler and they can be found in
~/.heron/conf/local/. Those config files define the classes needed for that cluster. You can parse these config files to get an instance of IScheduler.

This config is available from the client when you launch and the entire config is carried with the topology package and made available in the containers as well. In the container, they will be stored in

./heron-conf/

and several parse routines are available to read those files
https://github.com/twitter/heron/tree/master/heron/spi/src/java/com/twitter/heron/spi/common

SchedulerMain also reads from those files and you can make an instance of the IScheduler class.

from incubator-heron.

kramasamy avatar kramasamy commented on May 20, 2024

With local installation, you can run some topologies right away using the examples using the following command

heron-cli3 submit local ~/.heron/examples/heron-examples.jar com.twitter.heron.examples.ExclamationTopology ExclamationTopology

You won't be able to see the output unless you can get to the logs. The logs are in
~/.herondata/topologies/local//ExclamationTopology/log-files

You can kill the topology using the following command

heron-cli3 kill local ExclamationTopology

Let me know if you run into issues.

from incubator-heron.

kramasamy avatar kramasamy commented on May 20, 2024

We are working on updating the documentation for the new config.

from incubator-heron.

ashvina avatar ashvina commented on May 20, 2024

Thanks Karthik. I will look forward to the updated docs.

This seems to be a major change. A number of classes have been removed (for e.g. IConfigLoader). Can I assume that any new scheduler should be added to newscheduler and the old scheduler code is outdated and should be ignored?

from incubator-heron.

kramasamy avatar kramasamy commented on May 20, 2024

Yes. newscheduler is the way forward. It provides a lot of flexibility and clean configuration.

from incubator-heron.

ashvina avatar ashvina commented on May 20, 2024

This issue is not applicable anymore.

from incubator-heron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.