Comments (6)
@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.
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.
We are working on updating the documentation for the new config.
from incubator-heron.
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.
Yes. newscheduler is the way forward. It provides a lot of flexibility and clean configuration.
from incubator-heron.
This issue is not applicable anymore.
from incubator-heron.
Related Issues (20)
- Heron UI does not render timeline metrics
- guice-4.0 does not support jdk17
- Renamed variable but not updating the js HOT 3
- Heron API Server logging is broken HOT 1
- Replace use of `asyncore` with `asyncio` due to deprecation HOT 1
- heron-tracker supports two APIs
- Topology Zookeeper Update sync error
- Remove deprecated Host Path, NFS, and EBS support for Kubernetes HOT 1
- Heron artifact jars should have META-INF/LICENSE and NOTICE files
- Deprecation of the Apache Aurora Scheduler in Apache Heron HOT 2
- 404 not found api document HOT 1
- The current version of Zookeeper used an outdatted insecure version of Log4j
- Guaranteed message handling documentation
- heron-simple-wordcount-topology broken with docker version 0.20.5-incubating
- Refactoring of the K8s Shim
- Test Smell: testing private methods is not a good test practice.
- Heron Tracker crashes when running topologies with Zookeeper state manager
- Private reporting of security vulnerability HOT 4
- python-3.8.10 protobuf 3.18.3 Segmentation fault: 11
- File download link does not work in the Heron UI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from incubator-heron.