Mesos编译安装的问题
Contact me
或者用邮件交流 jacky.wucheng@foxmail.com
问题1
[root@vagrant-centos65 build]# ./bin/mesos-slave.sh --master=127.0.0.1:5050
*** glibc detected *** /vagrant/mesos-0.22.1/build/src/.libs/lt-mesos-slave: double free or corruption (out): 0x00007f67193e5050 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x76166)[0x7f6714bab166]
/lib64/libc.so.6(+0x78c93)[0x7f6714badc93]
/lib64/libc.so.6(freeaddrinfo+0x20)[0x7f6714c048d0]
/vagrant/mesos-0.22.1/build/src/.libs/libmesos-0.22.1.so(_ZN3net5getIPERKSst+0xe1)[0x7f67185b63c3]
/vagrant/mesos-0.22.1/build/src/.libs/libmesos-0.22.1.so(_ZN7process10initializeERKSs+0x99f)[0x7f67186028e7]
/vagrant/mesos-0.22.1/build/src/.libs/lt-mesos-slave[0x4b0ec7]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x7f6714b53d1d]
/vagrant/mesos-0.22.1/build/src/.libs/lt-mesos-slave[0x4b00e9]
在这两个版本上编译都有如上问题
- mesos-0.22.0
- mesos-0.22.1
暂时没有找到问题根源.
使用github上的master分支代码,编译后,可以运行, 但是会遇到问题2
, 问题3
.
问题2
依赖于gcc-4.7以及更高版本. os版本为: Centos6.5
解决方法: 安装更新版本的gcc
参考资料:
- http://people.centos.org/tru/devtools-2/readme
- http://superuser.com/questions/381160/how-to-install-gcc-4-7-x-4-8-x-on-centos
问题3
[root@vagrant-centos65 build]# ./bin/mesos-slave.sh --master=localhost:5050
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0617 05:19:32.495462 24704 process.cpp:865] Name or service not known
*** Check failure stack trace: ***
Aborted
将问题怀疑到hostname没有解析的问题, 解决方法
[root@vagrant-centos65 build]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1 vagrant-centos65.vagrantup.com mesos
[root@vagrant-centos65 build]# hostname
vagrant-centos65.vagrantup.com