2015-09-25 85 views
0

我正在嘗試在我的私有集羣中使用cassandra-mesos。我使用的自述指令與馬拉松部署,但是,喚醒任務和從來沒有被註冊的框架一些錯誤occure:用馬拉松部署cassandra-mesos框架

標準錯誤輸出:

I0925 15:55:06.185039 8383 fetcher.cpp:214] Fetching URI 'https://downloads.mesosphere.io/cassandra-mesos/artifacts/0.2.1-SNAPSHOT-589-master-4c6502b0a6/cassandra-mesos-0.2.1-SNAPSHOT-589-master-4c6502b0a6.tar.gz' 
I0925 15:55:06.185165 8383 fetcher.cpp:125] Fetching URI 'https://downloads.mesosphere.io/cassandra-mesos/artifacts/0.2.1-SNAPSHOT-589-master-4c6502b0a6/cassandra-mesos-0.2.1-SNAPSHOT-589-master-4c6502b0a6.tar.gz' with os::net 
I0925 15:55:06.185180 8383 fetcher.cpp:135] Downloading 'https://downloads.mesosphere.io/cassandra-mesos/artifacts/0.2.1-SNAPSHOT-589-master-4c6502b0a6/cassandra-mesos-0.2.1-SNAPSHOT-589-master-4c6502b0a6.tar.gz' to '/tmp/mesos/slaves/20150925-135709-503717292-5050-2136-S0/frameworks/20150925-144548-503717292-5050-5066-0001/executors/cassandra-dev-test.51620664-63bf-11e5-b350-56847afe9799/runs/e0aaadd9-9c86-47e1-8df8-d2c437f960f4/cassandra-mesos-0.2.0-1.tar.gz' 
I0925 15:56:07.968350 8383 fetcher.cpp:78] Extracted resource '/tmp/mesos/slaves/20150925-135709-503717292-5050-2136-S0/frameworks/20150925-144548-503717292-5050-5066-0001/executors/cassandra-dev-test.51620664-63bf-11e5-b350-56847afe9799/runs/e0aaadd9-9c86-47e1-8df8-d2c437f960f4/cassandra-mesos-0.2.0-1.tar.gz' into '/tmp/mesos/slaves/20150925-135709-503717292-5050-2136-S0/frameworks/20150925-144548-503717292-5050-5066-0001/executors/cassandra-dev-test.51620664-63bf-11e5-b350-56847afe9799/runs/e0aaadd9-9c86-47e1-8df8-d2c437f960f4' 
I0925 15:56:07.971684 8383 fetcher.cpp:214] Fetching URI 'https://downloads.mesosphere.io/java/jre-7u76-linux-x64.tar.gz' 
I0925 15:56:07.971709 8383 fetcher.cpp:125] Fetching URI 'https://downloads.mesosphere.io/java/jre-7u76-linux-x64.tar.gz' with os::net 
I0925 15:56:07.971725 8383 fetcher.cpp:135] Downloading 'https://downloads.mesosphere.io/java/jre-7u76-linux-x64.tar.gz' to '/tmp/mesos/slaves/20150925-135709-503717292-5050-2136-S0/frameworks/20150925-144548-503717292-5050-5066-0001/executors/cassandra-dev-test.51620664-63bf-11e5-b350-56847afe9799/runs/e0aaadd9-9c86-47e1-8df8-d2c437f960f4/jre-7u76-linux-x64.tar.gz' 
I0925 15:56:51.630692 8383 fetcher.cpp:78] Extracted resource '/tmp/mesos/slaves/20150925-135709-503717292-5050-2136-S0/frameworks/20150925-144548-503717292-5050-5066-0001/executors/cassandra-dev-test.51620664-63bf-11e5-b350-56847afe9799/runs/e0aaadd9-9c86-47e1-8df8-d2c437f960f4/jre-7u76-linux-x64.tar.gz' into '/tmp/mesos/slaves/20150925-135709-503717292-5050-2136-S0/frameworks/20150925-144548-503717292-5050-5066-0001/executors/cassandra-dev-test.51620664-63bf-11e5-b350-56847afe9799/runs/e0aaadd9-9c86-47e1-8df8-d2c437f960f4' 
I0925 15:56:51.720883 8381 exec.cpp:132] Version: 0.22.1 
I0925 15:56:51.723655 8426 exec.cpp:206] Executor registered on slave 20150925-135709-503717292-5050-2136-S0 
2015-09-25 15:56:52,376:8432(0x7f3cb2ffd700):[email protected][email protected]: Client environment:zookeeper.version=zookeeper C client 3.4.5 
2015-09-25 15:56:52,376:8432(0x7f3cb2ffd700):[email protected][email protected]: Client environment:host.name=vcmms.domain.com 
2015-09-25 15:56:52,376:8432(0x7f3cb2ffd700):[email protected][email protected]: Client environment:os.name=Linux 
2015-09-25 15:56:52,376:8432(0x7f3cb2ffd700):[email protected][email protected]: Client environment:os.arch=3.19.3-1.el6.x86_64 
2015-09-25 15:56:52,376:8432(0x7f3cb2ffd700):[email protected][email protected]: Client environment:os.version=#1 SMP Mon Mar 30 13:50:16 EDT 2015 
2015-09-25 15:56:52,376:8432(0x7f3cb2ffd700):[email protected][email protected]: Client environment:user.name=(null) 
2015-09-25 15:56:52,376:8432(0x7f3cb2ffd700):[email protected][email protected]: Client environment:user.home=/root 
2015-09-25 15:56:52,376:8432(0x7f3cb2ffd700):[email protected][email protected]: Client environment:user.dir=/tmp/mesos/slaves/20150925-135709-503717292-5050-2136-S0/frameworks/20150925-144548-503717292-5050-5066-0001/executors/cassandra-dev-test.51620664-63bf-11e5-b350-56847afe9799/runs/e0aaadd9-9c86-47e1-8df8-d2c437f960f4 
2015-09-25 15:56:52,376:8432(0x7f3cb2ffd700):[email protected][email protected]: Initiating client connection, host=172.29.6.30:2181 sessionTimeout=10000 watcher=0x7f3cee4ceeb0 sessionId=0 sessionPasswd=<null> context=0x7f3c9c000930 flags=0 
2015-09-25 15:56:52,377:8432(0x7f3cb17fa700):[email protected][email protected]3: initiated connection to server [172.29.6.30:2181] 
2015-09-25 15:56:52,382:8432(0x7f3cb17fa700):[email protected][email protected]: session establishment complete on server [172.29.6.30:2181], sessionId=0x15005d328430014, negotiated timeout=10000 

標準輸出輸出:

Registered executor on vcmms.domain.com 
Starting task cassandra-dev-test.51620664-63bf-11e5-b350-56847afe9799 
Forked command at 8432 
sh -c '$(pwd)/jre*/bin/java $JAVA_OPTS -classpath cassandra-mesos-framework.jar io.mesosphere.mesos.frameworks.cassandra.framework.Main' 
Command exited with status 10 (pid: 8432) 

簇描述: 個mesos主人:1個 mesos從站:3 SLAVE1 4 CPU 6.8 GB RAM 139.9 GB DISK SLAVE2 4 CPU 6.8 GB RAM 139.9 GB DISK slave3 4 CPU 6.8 GB RAM 31.6 GB DISK

+0

如果你正在考慮使用C *和mesos生產手錶這個JIRA https://issues.apache.org/jira/browse/MESOS-1554 – phact

+0

我這裏看不到任何錯誤,可以你共享Mesos主日誌(至少相關位)? –

+0

它的主要問題是:框架從未被註冊,並且應用程序一再重新部署。 – kikicarbonell

回答

1

的問題得到解決變化環境變量CASSANDRA_SEED_COUNT,因爲默認情況下CASSANDRA_SEED_COUNT = 2並且我配置了app.json以僅使用一個節點部署cassandra(CASSANDRA_NODE_COUNT = 1)。

如果您嘗試使用所有默認配置,它可以很好地與環境變量一起工作,但只有您需要確保mesos羣集中有3個或更多的從屬節點可用。

# The number of nodes in the cluster (default 3) 
CASSANDRA_NODE_COUNT=3 

# The number of seed nodes in the cluster (default 2) 
# set this to 1, if you only want to spawn one node 
CASSANDRA_SEED_COUNT=2