Apache Mesos环境搭建
2014-05-12 11:49
295 查看
Getting Started with Apache Mesos
Downloading Mesos
There are different ways you can get Mesos:Download the latest stable release from Apache (Recommended)
$ wget http://www.apache.org/dist/mesos/0.18.0/mesos-0.18.0.tar.gz $ tar -zxf mesos-0.18.0.tar.gz
Clone the Mesos git repository (Advanced
Users Only)
$ git clone http://git-wip-us.apache.org/repos/asf/mesos.git
System Requirements
Mesos runs on Linux (64 Bit) and Mac OSX (64 Bit).Following are the instructions for stock Ubuntu 12.04 64 Bit. If you are using a different OS please install the packages accordingly.
# Ensure apt-get is up to date. $ sudo apt-get update # Install build tools. $ sudo apt-get install build-essential # Install OpenJDK java. $ sudo apt-get install openjdk-6-jdk # Install devel python. $ sudo apt-get install python-dev python-boto # Install devel libcurl $ sudo apt-get install libcurl4-nss-dev # Install devel libsasl (***Only required for Mesos 0.14.0 or newer***). $ sudo apt-get install libsasl2-dev
If you are building from git repository, you will need to additionally install the following packages.
# Install autotoconf and automake. $ sudo apt-get install autoconf # Install libtool. $ sudo apt-get install libtool
Building Mesos
# Change working directory. $ cd mesos # Bootstrap (***Skip this if you are not building from git repo***). $ ./bootstrap # Configure and build. $ mkdir build $ cd build $ sudo ../configure $ sudo make # Run test suite. $ sudo make check # Install (***Optional***). $ sudo make install
Examples
Mesos comes bundled with example frameworks written in C++,
Javaand
Python.
# Change into build directory. $ cd build # Start mesos master. $ ./bin/mesos-master.sh --ip=127.0.0.1 # 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
相关文章推荐
- 使用 Apache Lucene 和 Solr 4 实现下一代搜索和分析
- apache修改默认端口号
- linux ant 解决 错误: 找不到或无法加载主类 org.apache.tools.ant.launch.Launcher
- Apache安全配置之禁止目录访问的配置方法
- Apache Shiro
- Apache的编译安装error: APR not found. Please read the documentation
- Apache多站点配置教程
- Apache Hadoop生态系统
- Apache 整合 Acitve Directory 達成 one single signon
- APACHE + LDAP 的权限认证配置方法
- XAMPP:Apache shutdown unexpectedly
- Error in metadata: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastor
- linux+django+apache+mod_wsgi+eclipse+python2.7 环境的搭建
- Linux apache 默认目录结构
- fedora(cent os) +Apache+PHP+MySQL服务器环境
- 让Apache支持PHP语言
- Mybatis缓存报错org.apache.ibatis.exceptions.PersistenceException
- Apache安装和问题解决
- apache配置多站点
- 如何查看Apache的连接数和当前连接数