1. 程式人生 > >Mesos和Marathon

Mesos和Marathon

不知道 lead zlib source all figure probably profile 需要

libz is required for mesos to build 需要安裝zlib-devel-1.2.7-17.el7.x86_64.rpm 其實跨Shell的Profile文件同步只要執行source /etc/profile即可 configure: error: Could not link test program to Python. Maybe the main Python library has been installed in some non-standard library path. If so, pass it to configure, via the LDFLAGS environment variable. Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib" ============================================================================ ERROR! You probably have to install the development version of the Python package for your distribution. The exact name of this package varies among them. ============================================================================ 需要安裝python-devel pkg_resources.VersionConflict: (pytz 2012d (/usr/lib/python2.7/site-packages), Requirement.parse(‘pytz>=2010‘)) 通過easy_install安裝pip,然後通過pip install pytz --upgrade來進行升級即可。 easy_install pip pip install pytz --upgrade 安裝完成後,可以通過http:localhost:5050端口進行訪問,但是我的為什麽是 No master is currently leading ... 網上講1.1.1之後版本已經修復了。 但到此時Mesos已經可以用了;可以通過一下測試程序進行測試,看看控制臺是否有相應的輸出 /src/examples/python/test-framework 127.0.0.1:5050 來進行測試,觀察控制臺輸出;這個測試可以直接使用python的來進行,使用Java的會爆出少jar包的錯誤,我覺得應該是make的時候應該打包,但是我在make的時候報錯,所以可能沒有打包;python不需要打包,直接執行就好了。 然後就是marathon,直接在bin目錄下運行start即可;但是marathon是需要zookeeper的,所以必須要安裝上。 sudo ./bin/start --master local --zk zk://localhost:2181/marathon
然後可以通過localhost:8080端口訪問marathon的WebUI,可以在裏面創建任務,觀察任務的狀態,但是在頁面中嘗試kill,destroy task都沒有成功;不知道為什麽,原來是因為我已經把marathon以及mesos都停掉了。

Mesos和Marathon