Closed samek closed 8 years ago
@samek For now, what I've found is the heron_tracker.yaml you pasted is different from the 0.14.0 release as shown below:
statemgrs:
-
type: "file"
name: "local"
rootpath: "~/.herondata/repository/state/local"
tunnelhost: "localhost"
-
type: "zookeeper"
name: "localzk"
hostport: "localhost:2181"
rootpath: "/heron"
tunnelhost: "localhost"
Notice the name localzk
and the root path /heron
are different from what you provided. And I'm testing it on Mac OS X Yosemite. So can you double check if the correct version of heron-tool is installed?
@nlu90 I've probably changed it in the process of trying it to work. Anyway same error with localzk as name and rootpath changed to /heron :(
Interesting. Can you paste the content of ~/.herontools/release.yaml here?
sure
cat ~/.herontools/release.yaml
heron.build.version : 0.14.0
heron.build.time : Tue May 24 22:44:01 PDT 2016
heron.build.timestamp : 1464155053000
heron.build.host : tw-mbp-kramasamy
heron.build.user : kramasamy
heron.build.git.revision : be87b09f348e0ed05f45503340a2245a4ef68a35
heron.build.git.status : Clean
@samek Tracker does not create the nodes automatically if they are not already present. The latest version of config file states that: (https://github.com/twitter/heron/blob/master/heron/config/src/yaml/tracker/heron_tracker.yaml)
#
# To use 'localzk', launch a zookeeper server locally
# and create the following paths:
# 1. /heron/topologies
# 2. /heron/executionstate
# 3. /heron/pplans
# 4. /heron/tmasters
# 5. /heron/schedulers
#
# -
# type: "zookeeper"
# name: "localzk"
# hostport: "localhost:2181"
# rootpath: "/heron"
# tunnelhost: "localhost"
So you would need to create those nodes to have Tracker work. One of the reasons we do it this way is that Tracker is completely readonly
and does not modify any of the states.
I'll give it a go. What should the values of nodes be ? null ?
I tested on my mac, in order to make the local zk work, you need to manually create the znode "/heron/topologies" in your zk. Once it's created, everything should be fine.
@saileshmittal should we add this into our doc for future reference?
It would definitely help me :) Thanks
It would be nice to also have this note visible in the Quick Start guide: http://twitter.github.io/heron/docs/getting-started/
While trying to run heron-tracker with zookeeper I get the above mentioned error. Anyone else experiencing this as well?
Sytem configuration: heron Version 0.14.0 (release) Python version 2.7.10 zookeeper versions tried 3.4.6-1569965 and 3.4.8--1 I've tried it on 2 macs (El Capitan) and ubuntu 14.04. - same error.
heron_tracker.yaml is default.
heron-tracker output:
zookeeper logs: