apache spark - Failed to find agents in Mesos-Master -


i'm running sample spark job via mesos-cluster(1 master , 2 salves) runs on ubuntu 16.10

mesos-master ui agents tab cant see resource allocation particular agent. dont see confirmation in masters logs when new agent added.

master logs

[15:58:25 master.cpp:4836] processing decline call offers: [ e9377bc9-92a2-47bd-b12b-1525c1233371-o786 ] framework e9377bc9-92a2-47bd-b12b-1525c1233371-0000 (wordcount) @ scheduler-8c865905-3329-41e9-bb80-7638a5c54a40@192.168.1.237:42131 [15:58:27 http.cpp:1115  ] http /master/state?jsonp=angular.callbacks._8 192.168.1.237:54674 user-agent='mozilla/5.0 (x11; ubuntu; linux x86_64; rv:54.0) gecko/20100101 firefox/54.0' [15:58:28 master.cpp:7305] sending 1 offers framework e9377bc9-92a2-47bd-b12b-1525c1233371-0000 (wordcount) @ scheduler-8c865905-3329-41e9-bb80-7638a5c54a40@192.168.1.237:42131 [15:58:28 master.cpp:4836] processing decline call offers: [ e9377bc9-92a2-47bd-b12b-1525c1233371-o787 ] framework e9377bc9-92a2-47bd-b12b-1525c1233371-0000 (wordcount) @ scheduler-8c865905-3329-41e9-bb80-7638a5c54a40@192.168.1.237:42131 [15:58:29 http.cpp:1115  ] http /master/state?jsonp=angular.callbacks._a 192.168.1.237:54674 user-agent='mozilla/5.0 (x11; ubuntu; linux x86_64; rv:54.0) gecko/20100101 firefox/54.0' [15:58:30 master.cpp:7305] sending 1 offers framework e9377bc9-92a2-47bd-b12b-1525c1233371-0000 (wordcount) @ scheduler-8c865905-3329-41e9-bb80-7638a5c54a40@192.168.1.237:42131 [15:58:30 master.cpp:4836] processing decline call offers: [ e9377bc9-92a2-47bd-b12b-1525c1233371-o788 ] framework e9377bc9-92a2-47bd-b12b-1525c1233371-0000 (wordcount) @ scheduler-8c865905-3329-41e9-bb80-7638a5c54a40@192.168.1.237:42131 [15:58:33 master.cpp:7305] sending 1 offers framework e9377bc9-92a2-47bd-b12b-1525c1233371-0000 (wordcount) @ scheduler-8c865905-3329-41e9-bb80-7638a5c54a40@192.168.1.237:42131 [15:58:33 master.cpp:4836] processing decline call offers: [ e9377bc9-92a2-47bd-b12b-1525c1233371-o789 ] framework e9377bc9-92a2-47bd-b12b-1525c1233371-0000 (wordcount) @ scheduler-8c865905-3329-41e9-bb80-7638a5c54a40@192.168.1.237:42131 [15:58:34 http.cpp:1115  ] http /master/state?jsonp=angular.callbacks._c 192.168.1.237:54674 user-agent='mozilla/5.0 (x11; ubuntu; linux x86_64; rv:54.0) gecko/20100101 firefox/54.0' [15:58:35 http.cpp:1115  ] http /master/state?jsonp=angular.callbacks._6 192.168.1.237:54674 user-agent='mozilla/5.0 (x11; ubuntu; linux x86_64; rv:54.0) gecko/20100101 firefox/54.0' [15:58:35 master.cpp:7305] sending 1 offers framework e9377bc9-92a2-47bd-b12b-1525c1233371-0000 (wordcount) @ scheduler-8c865905-3329-41e9-bb80-7638a5c54a40@192.168.1.237:42131 [15:58:35 master.cpp:4836] processing decline call offers: [ e9377bc9-92a2-47bd-b12b-1525c1233371-o790 ] framework e9377bc9-92a2-47bd-b12b-1525c1233371-0000 (wordcount) @ scheduler-8c865905-3329-41e9-bb80-7638a5c54a40@192.168.1.237:42131 [15:58:37 http.cpp:1115  ] http /master/state?jsonp=angular.callbacks._a 192.168.1.237:54674 user-agent='mozilla/5.0 (x11; ubuntu; linux x86_64; rv:54.0) gecko/20100101 firefox/54.0' [15:58:38 master.cpp:7305] sending 1 offers framework e9377bc9-92a2-47bd-b12b-1525c1233371-0000 (wordcount) @ scheduler-8c865905-3329-41e9-bb80-7638a5c54a40@192.168.1.237:42131 [15:58:38 master.cpp:4836] processing decline call offers: [ e9377bc9-92a2-47bd-b12b-1525c1233371-o791 ] framework e9377bc9-92a2-47bd-b12b-1525c1233371-0000 (wordcount) @ scheduler-8c865905-3329-41e9-bb80-7638a5c54a40@192.168.1.237:42131 [15:58:39 http.cpp:1115  ] http /master/state?jsonp=angular.callbacks._c 192.168.1.237:54674 user-agent='mozilla/5.0 (x11; ubuntu; linux x86_64; rv:54.0) gecko/20100101 firefox/54.0' [15:58:40 master.cpp:6990] performing explicit task state reconciliation 1 tasks of framework 417e3708-25d8-46fd-9896-51bcdb750f03-0 

slave logs

failed fetch '/usr/local/spark-2.1.0-bin-hadoop2.7': failed copy '/usr/local/spark-2.1.0-bin-hadoop2.7': exited status 1 end fetcher log container 11ab854c-590e-49da-937b-e5dd5084f36e [fetcher.cpp:558] failed run mesos-fetcher: failed fetch uris container '11ab854c-590e-49da-937b-e5dd5084f36e' exit status: 256 [slave.cpp:5048] container '11ab854c-590e-49da-937b-e5dd5084f36e' executor '1' of framework e9377bc9-92a2-47bd-b12b-1525c1233371-0000 failed start: failed fetch uris container '11ab854c-590e-49da-937b-e5dd5084f36e' exit status: 256 [containerizer.cpp:2102] destroying container 11ab854c-590e-49da-937b-e5dd5084f36e in fetching state [linux_launcher.cpp:505] asked destroy container 11ab854c-590e-49da-937b-e5dd5084f36e [linux_launcher.cpp:548] using freezer destroy cgroup mesos/11ab854c-590e-49da-937b-e5dd5084f36e [cgroups.cpp:2692] freezing cgroup /sys/fs/cgroup/freezer/mesos/11ab854c-590e-49da-937b-e5dd5084f36e [cgroups.cpp:1405] froze cgroup /sys/fs/cgroup/freezer/mesos/11ab854c-590e-49da-937b-e5dd5084f36e after 2.626816ms [cgroups.cpp:2710] thawing cgroup /sys/fs/cgroup/freezer/mesos/11ab854c-590e-49da-937b-e5dd5084f36e [cgroups.cpp:1434] thawed cgroup /sys/fs/cgroup/freezer/mesos/11ab854c-590e-49da-937b-e5dd5084f36e after 2.189056ms [containerizer.cpp:2508] container 11ab854c-590e-49da-937b-e5dd5084f36e has exited [slave.cpp:5168] executor '1' of framework e9377bc9-92a2-47bd-b12b-1525c1233371-0000 exited status 1 [slave.cpp:4215] handling status update task_failed (uuid: adad1443-e464-462f-b199-7f5545c30ba9) task 1 of framework e9377bc9-92a2-47bd-b12b-1525c1233371-0000 @0.0.0.0:0 [containerizer.cpp:1917] ignoring update unknown container 11ab854c-590e-49da-937b-e5dd5084f36e [status_update_manager.cpp:323] received status update task_failed (uuid: adad1443-e464-462f-b199-7f5545c30ba9) task 1 of framework e9377bc9-92a2-47bd-b12b-1525c1233371-0000 [slave.cpp:4655] forwarding update task_failed (uuid: adad1443-e464-462f-b199-7f5545c30ba9) task 1 of framework e9377bc9-92a2-47bd-b12b-1525c1233371-0000 master@192.168.1.237:5050 [status_update_manager.cpp:395] received status update acknowledgement (uuid: adad1443-e464-462f-b199-7f5545c30ba9) task 1 of framework e9377bc9-92a2-47bd-b12b-1525c1233371-0000 [slave.cpp:5268] cleaning executor '1' of framework e9377bc9-92a2-47bd-b12b-1525c1233371-0000 [gc.cpp:55] scheduling '/var/lib/mesos/slaves/4e98bf77-8b4a-43ab-a79b-12b63c1b18df-s3/frameworks/e9377bc9-92a2-47bd-b12b-1525c1233371-0000/executors/1/runs/11ab854c-590e-49da-937b-e5dd5084f36e' gc 6.99998930747556days in future [slave.cpp:5356] cleaning framework e9377bc9-92a2-47bd-b12b-1525c1233371-0000 [gc.cpp:55] scheduling '/var/lib/mesos/slaves/4e98bf77-8b4a-43ab-a79b-12b63c1b18df-s3/frameworks/e9377bc9-92a2-47bd-b12b-1525c1233371-0000/executors/1' gc 6.99998930613333days in future [gc.cpp:55] scheduling '/var/lib/mesos/slaves/4e98bf77-8b4a-43ab-a79b-12b63c1b18df-s3/frameworks/e9377bc9-92a2-47bd-b12b-1525c1233371-0000' gc 6.99998930488593days in future [status_update_manager.cpp:285] closing status update streams framework e9377bc9-92a2-47bd-b12b-1525c1233371-0000 

what changes made in installation..??

try compare startup settings working settings me:

  • zookeeper running on machine 10.94.40.57 3 instances
  • standalone mesos-master running on machine 10.94.40.35
  • mesos-agent running on machine 10.94.40.20

started mesos-master next parameters:

./bin/mesos-master.sh --ip=10.94.40.35 --zk=zk://10.94.40.57:4181,10.94.40.57:5181,10.94.40.57:6181/mesos --work_dir=/tmp/mesos-master-35 --quorum=1 

started mesos-agent next parameters:

./bin/mesos-agent.sh --ip=10.94.40.20 --master=10.94.40.35:5050 --work_dir=/tmp/mesos-agent --no-systemd_enable_support 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -