[Mac&ubuntu] Mesos Installation Tutorials

Source: Internet
Author: User
Tags install homebrew

Write in front: This thing installs really slow, slow, slow ... Is my method wrong? Well, if it is my method is not correct, please expert message pointing.

Mesos:

Baidu Encyclopedia

Official documents

Installation steps:

1. Download Mesos

Execute command:

wget http://www.apache.org/dist/mesos/0.28.1/mesos-0.28.1.tar.gz

2. After the download is complete:

Execute command:

#解压文件tar-zxf mesos-0.28.1.tar.gz# Rename the extracted folder mv mesos-0.28.1 Mesos

#在mesos下面创建build文件夹cd Mesosmkdir Build

3.Ubuntu 16.04 Users

Install the following dependencies

#------------------------------------------#在做此事情前请配置好你们的JAVA_HOME #------------------------------------------# Execute the following command in turn sudo apt-get updatesudo apt-get install-y autoconf libtoolsudo apt-get-y install build-essential python-dev PYT Hon-boto Libcurl4-nss-dev libsasl2-dev libsasl2-modules maven Libapr1-dev libsvn-dev# If the compilation process is not found libz ... Please come back and execute the following command sudo apt-get install Zlib1g-dev

Dependent upon end of installation

#进入到之前创建好的build文件夹中cd build# execute configure. /configure# Please be patient, this process is very dangerous, a little attention to naught, for example, can not find Java_home, libz and so on   ... #顺利通过后, execute commands sequentially, make command is very pit, my Ubuntu is still smooth one go, but Mac Terminal 3 times, download things timeout, VPN may be better ... Makemake checkmake install# above command may require sudo, for example: sudo make check

Mac users

Installation steps

1. Make sure your xcode is up to date, of course I'm not sure if the old version will be problematic, my xcode is up to date

2. Open Terminal execution

Xcode-select--install

3, check whether you install homebrew, if not installed no problem, execute the following command:

Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"

4. Install Java (not sure if you have installed the java_home of the students need to reinstall)

Brew Install Caskroom/cask/java

5, similar to Ubuntu, also need to install a bunch of libraries

Brew install wget git autoconf automake libtool subversion maven

If all is well, then congratulations you can use Mesos, here is the official example:

# Change to build directory.$ CD build# Start Mesos Master (ensure work directory exists and have proper permissions). $. /bin/mesos-master.sh--ip=127.0.0.1--work_dir=/var/lib/mesos# Start mesos slave.$/bin/mesos-slave.sh--master=  127.0.0.1:5050# Visit the Mesos web page.$ http://127.0.0.1:5050# Run C + + framework (Exits after successfully running some Tasks.). $./src/test-framework--master=127.0.0.1:5050# Run Java Framework (Exits after successfully running some tasks.). $./src/examples/java/test-framework 127.0.0.1:5050# Run Python Framework (Exits after successfully running some tasks.). $./src/examples/python/test-framework 127.0.0.1:5050

[Mac&ubuntu] Mesos Installation Tutorials

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.