mesosphere / chronos-pkg

Apache License 2.0
5 stars 16 forks source link

Chronos startup #20

Closed akamalov closed 7 years ago

akamalov commented 8 years ago

Wondering if anyone can tell me how can I start chronos-runnable.jar file ? Every time I run it, it goes through and then exits:

[root@node261 bin]# chronos-runnable.jar
+ cmd=(run_jar)
+ local cmd
+ [[ -d /etc/chronos/conf ]]
+ read -u 9 -r -d '' path
++ cd /etc/chronos/conf
++ find . -type f -not -name '.*' -print0
+ local name=master
+ element_in --master
+ local e
+ return 1
+ case "$name" in
+ cmd+=("--$name" "$(< "$conf_dir/$name")")
+ read -u 9 -r -d '' path
+ local name=zk_path
+ element_in --zk_path
+ local e
+ return 1
+ case "$name" in
+ cmd+=("--$name" "$(< "$conf_dir/$name")")
+ read -u 9 -r -d '' path
+ local name=hostname
+ element_in --hostname
+ local e
+ return 1
+ case "$name" in
+ cmd+=("--$name" "$(< "$conf_dir/$name")")
+ read -u 9 -r -d '' path
+ local name=zk_hosts
+ element_in --zk_hosts
+ local e
+ return 1
+ case "$name" in
+ cmd+=("--$name" "$(< "$conf_dir/$name")")
+ read -u 9 -r -d '' path
+ local name=http_port
+ element_in --http_port
+ local e
+ return 1
+ case "$name" in
+ cmd+=("--$name" "$(< "$conf_dir/$name")")
+ read -u 9 -r -d '' path
+ local name=mesos_authentication_secret_file
+ element_in --mesos_authentication_secret_file
+ local e
+ return 1
+ case "$name" in
+ cmd+=("--$name" "$(< "$conf_dir/$name")")
+ read -u 9 -r -d '' path
+ local name=mesos_authentication_principal
+ element_in --mesos_authentication_principal
+ local e
+ return 1
+ case "$name" in
+ cmd+=("--$name" "$(< "$conf_dir/$name")")
+ read -u 9 -r -d '' path
+ set -o allexport
+ [[ ! -f /etc/default/chronos ]]
+ . /etc/default/chronos
++ MESOS_AUTHENTICATION_PRINCIPAL=chronos
++ MESOS_AUTHENTICATION_SECRET_FILE=/etc/chronos/chronos.secret
+ set +o allexport
++ env
++ grep '^CHRONOS_'
++ sed -e s/CHRONOS_// -e 's/=/ /'
++ awk '{printf("%s%s ", "--", tolower($1)); for(i=2;i<=NF;i++){printf("%s ", $i)}}'
++ sed -e 's/ $//'
+ [[ -s /etc/mesos/zk ]]
+ cmd+=(--zk_hosts "$(cut -d / -f 3 /etc/mesos/zk)" --master "$(cat /etc/mesos/zk)")
++ cut -d / -f 3 /etc/mesos/zk
++ cat /etc/mesos/zk
+ logged chronos run_jar --master zk://192.168.1.236:2181,192.168.1.237:2181,192.168.1.238:2181,192.168.1.239:2181,192.168.1.94:2181/mesos --zk_path /chronos --hostname node236.localnet.net --zk_hosts 192.168.1.236:2181,192.168.1.237:2181,192.168.1.238:2181,192.168.1.239:2181,192.168.1.94:2181 --http_port 8080 --mesos_authentication_secret_file /etc/chronos/chronos.secret --mesos_authentication_principal chronos --zk_hosts 192.168.1.236:2181,192.168.1.237:2181,192.168.1.238:2181,192.168.1.239:2181,192.168.1.94:2181 --master zk://192.168.1.236:2181,192.168.1.237:2181,192.168.1.238:2181,192.168.1.239:2181,192.168.1.94:2181/mesos
+ local 'token=chronos[26485]'
+ shift
+ exec
+ exec
++ exec logger -p user.info -t 'chronos[26485]'
++ exec logger -p user.notice -t 'chronos[26485]'
[root@node261 bin]#