Questions tagged [mesos]

Apache Mesos is a cluster manager that provides an efficient, scalable, and robust way to share resources (CPUs, memory, disk, ports, et.) across frameworks or applications that are distributed across a cluster of machines. Mesos can be thought of as a kernel for the data center that provides a unified view of resources on all nodes and seamless access to these resources.

Apache Mesos is a cluster manager that provides efficient resource isolation and sharing across distributed applications, or frameworks.

Getting Started

How Does It Work?

Apache Mesos is based on a master-worker relationship, but there are other important components:

  • Mesos workers "own" the resources (CPU, memory, network ports, etc.) being managed by Mesos.
  • The Mesos master is responsible for scheduling and allocating the resources to various frameworks and managing the task life cycle. It is the resource broker.
  • Frameworks - distributed applications that run using the resources Mesos provides (run on top of Mesos). Frameworks require tasks to be performed, and tasks consume resources.
  • Communication - components of Mesos communicate with frameworks over HTTP or an HTTP-like protocol using APIs.
  • Auxiliary resources - these are resources required by, but not managed by, Mesos (e.g., network file system, client connections to services running on Mesos, etc.)

Examples of What Mesos Can Do

Some examples of things that you can do with Mesos:

  • Run a Hadoop cluster (or any frameworks built on top of Hadoop, e.g., Giraph, Hive, etc.) while sharing the resources of the cluster with another framework
  • Run a Spark cluster while sharing the resources of the cluster with another framework
  • Run a NoSQL database cluster (e.g., Hive, Shark, Spark SQL, Cassandra, Hypertable) while sharing the resources of the cluster with another framework
  • Run a real-time data streaming service (e.g., Spark Streaming, Storm)
  • Run elastic YARN clusters (see Myriad)
  • Run a standalone HDFS (see Mesosphere HDFS)

Who Uses Mesos?

Mesos helps power a large number of companies; the Mesos Project maintains a long list of companies using Mesos.

Related Tags

1240 questions
12
votes
5 answers

Spark Streaming from Kafka has error numRecords must not be negative

Its kind of strange error because I still push data to kafka and consume message from kafka and Exception in thread "main" java.lang.IllegalArgumentException: requirement failed: numRecords must not be negative is kind of strange too. I search and…
giaosudau
  • 2,211
  • 6
  • 33
  • 64
12
votes
2 answers

How to understand CPU allocation in Mesos?

I am reading Building Applications on Mesos, and come across the following statements: cpus This resource expresses how many CPU cores are available. Tasks may use fractional parts of a CPU—this is possible because Mesos slaves use CPU…
Nan Xiao
  • 16,671
  • 18
  • 103
  • 164
12
votes
3 answers

Docker, CoreOS and fleet based deployments

I am trying to wrap my head around CoreOS and I perused their official docs, some random articles, and even watched this excellent presentation by their CTO. My understanding of CoreOS is that its a stripped down, bare bones Linux distribution that…
smeeb
  • 27,777
  • 57
  • 250
  • 447
12
votes
2 answers

Restore deleted container docker

I have a docker container that was running postgresql db but it was accidentally deleted by my Apache Mesos Marathon. Is there any way I can restore the container or at least, get the database files? Thanks
eugene
  • 638
  • 2
  • 9
  • 19
12
votes
1 answer

Setting up a docker / fig Mesos environment

I'm trying to set up a docker / fig Mesos cluster. I'm new to fig and Docker. Docker has plenty of documentation, but I find myself struggling to understand how to work with fig. Here's my fig.yaml at the moment: zookeeper: image:…
JRun
  • 3,328
  • 6
  • 27
  • 41
11
votes
1 answer

Spark shell connect to Mesos hangs: No credentials provided. Attempting to register without authentication

I installed Mesos in an OpenStack environment using these instructions from Mesosphere: https://open.mesosphere.com/getting-started/datacenter/install/. I ran the verification test as described and it was successful. UI for both Mesos and Marathon…
tww
  • 111
  • 1
  • 4
11
votes
1 answer

mesos-dns, best practice for working with ports

I am quite new to Service Discovery and clustered systems. I started experimenting with Mesos and Marathon for the deployment of Docker containers, the Marathon REST API and UI seem to do a good job. My problem is the actual discovery of deployed…
ummecasino
  • 347
  • 1
  • 11
10
votes
4 answers

How to pre-package external libraries when using Spark on a Mesos cluster

According to the Spark on Mesos docs one needs to set the spark.executor.uri pointing to a Spark distribution: val conf = new SparkConf() .setMaster("mesos://HOST:5050") .setAppName("My app") .set("spark.executor.uri", "
Tobi
  • 31,405
  • 8
  • 58
  • 90
10
votes
4 answers

How to run a one-off task with Apache Mesos/Marathon?

I'm trying to run a one-off task with Marathon. I'm able to get the task container running, but after the task command completes, marathon runs another task, and so on. How can I prevent Marathon from running more than one task/command? Or, if this…
Sander Smits
  • 2,051
  • 3
  • 18
  • 16
10
votes
4 answers

How to use volumes-from in marathon

I'm working with mesos + marathon + docker quite a while but I got stuck at some point. At the moment I try to deal with persistent container and I tried to play around with the "volumes-from" parameter but I can't make it work because I have no…
hammi
  • 161
  • 1
  • 8
9
votes
5 answers

Accessing HDFS HA from spark job (UnknownHostException error)

I have Apache Mesos 0.22.1 cluster (3 masters & 5 slaves), running Cloudera HDFS (2.5.0-cdh5.3.1) in HA configuration and Spark 1.5.1 framework. When I try to spark-submit compiled HdfsTest.scala example app (from Spark 1.5.1 sources) - it fails…
kyarovoy
  • 163
  • 1
  • 1
  • 9
9
votes
2 answers

marathon does not delete a docker container after destroying the job

when I run a docker container as a marathon job, it creates a docker container in the active mesos slave system. when suspend or destroy the docker job what I expect that marathon should delete the docker container as its no longer required. But…
psaha4
  • 339
  • 3
  • 17
9
votes
2 answers

Mesos real world use-cases

I'm trying to figure out what would be the reasons for using Mesos. Can you come up with other ones? Running all of your services in the same cluster instead of dedicated clusters (your end-applications + DevOps such as Jenkins) Running different…
user1340582
  • 19,151
  • 35
  • 115
  • 171
9
votes
5 answers

Kill a framework in Mesos

I have a Mesos cluster and was running a Spark shell connected to it. I shut down the client, but Mesos still believes the framework should be active. I am trying to have Mesos drop the framework by using DELETE with…
Aaron
  • 442
  • 1
  • 5
  • 14
8
votes
3 answers

Running Spark driver program in Docker container - no connection back from executor to the driver?

UPDATE: The problem is resolved. The Docker image is here: docker-spark-submit I run spark-submit with a fat jar inside a Docker container. My standalone Spark cluster runs on 3 virtual machines - one master and two workers. From an executor log on…
tashoyan
  • 418
  • 1
  • 3
  • 12
1
2
3
82 83