{"action":"created","issue":{"url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/283","labels_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/283/comments","events_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/283/events","html_url":"https://github.com/spark-jobserver/spark-jobserver/issues/283","id":111246651,"number":283,"title":"Problem to integrate SJS with mesos","user":{"login":"kikicarbonell","id":584806,"avatar_url":"https://avatars.githubusercontent.com/u/584806?v=3","gravatar_id":"","url":"https://api.github.com/users/kikicarbonell","html_url":"https://github.com/kikicarbonell","followers_url":"https://api.github.com/users/kikicarbonell/followers","following_url":"https://api.github.com/users/kikicarbonell/following{/other_user}","gists_url":"https://api.github.com/users/kikicarbonell/gists{/gist_id}","starred_url":"https://api.github.com/users/kikicarbonell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kikicarbonell/subscriptions","organizations_url":"https://api.github.com/users/kikicarbonell/orgs","repos_url":"https://api.github.com/users/kikicarbonell/repos","events_url":"https://api.github.com/users/kikicarbonell/events{/privacy}","received_events_url":"https://api.github.com/users/kikicarbonell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-10-13T19:00:33Z","updated_at":"2015-11-03T20:31:17Z","closed_at":null,"body":"I'm trying SJS v0.5.2 and I have a mesos cluster with spark as framework. \r\nI'm using docker to start SJS as follow:\r\n```\r\ndocker run -d -p 8090:8090 -e SPARK_MASTER=mesos://zk://mesos.master:5050 velvia/spark-jobserver:0.5.2-SNAPSHOT \r\n```\r\nBut when I post a job the output show:\r\n```\r\n{ \"status\": \"ERROR\", \"result\": { \"errorClass\": \"java.lang.RuntimeException\", \"cause\": \"no mesos in java.library.path\", \"stack\": [\"java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)\", \"java.lang.Runtime.loadLibrary0(Runtime.java:849)\", \"java.lang.System.loadLibrary(System.java:1088)\", \"org.apache.mesos.MesosNativeLibrary.load(MesosNativeLibrary.java:54)\", \"org.apache.mesos.MesosNativeLibrary.load(MesosNativeLibrary.java:79)\", \"org.apache.spark.SparkContext$.org$apache$spark$SparkContext$$createTaskScheduler(SparkContext.scala:2220)\", \"org.apache.spark.SparkContext.<init>(SparkContext.scala:363)\", \"spark.jobserver.context.DefaultSparkContextFactory$$anon$1.<init>(SparkContextFactory.scala:54)\", \"spark.jobserver.context.DefaultSparkContextFactory.makeContext(SparkContextFactory.scala:54)\", \"spark.jobserver.context.DefaultSparkContextFactory.makeContext(SparkContextFactory.scala:49)\", \"spark.jobserver.context.SparkContextFactory$class.makeContext(SparkContextFactory.scala:38)\", \"spark.jobserver.context.DefaultSparkContextFactory.makeContext(SparkContextFactory.scala:49)\", \"spark.jobserver.JobManagerActor.createContextFromConfig(JobManagerActor.scala:268)\", \"spark.jobserver.JobManagerActor$$anonfun$wrappedReceive$1.applyOrElse(JobManagerActor.scala:106)\", \"scala.runtime.AbstractPartialFunction$mcVL$sp.apply$mcVL$sp(AbstractPartialFunction.scala:33)\", \"scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:33)\", \"scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:25)\", \"ooyala.common.akka.ActorStack$$anonfun$receive$1.applyOrElse(ActorStack.scala:33)\", \"scala.runtime.AbstractPartialFunction$mcVL$sp.apply$mcVL$sp(AbstractPartialFunction.scala:33)\", \"scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:33)\", \"scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:25)\", \"ooyala.common.akka.Slf4jLogging$$anonfun$receive$1$$anonfun$applyOrElse$1.apply$mcV$sp(Slf4jLogging.scala:26)\", \"ooyala.common.akka.Slf4jLogging$class.ooyala$common$akka$Slf4jLogging$$withAkkaSourceLogging(Slf4jLogging.scala:35)\", \"ooyala.common.akka.Slf4jLogging$$anonfun$receive$1.applyOrElse(Slf4jLogging.scala:25)\", \"scala.runtime.AbstractPartialFunction$mcVL$sp.apply$mcVL$sp(AbstractPartialFunction.scala:33)\", \"scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:33)\", \"scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:25)\", \"ooyala.common.akka.ActorMetrics$$anonfun$receive$1.applyOrElse(ActorMetrics.scala:24)\", \"akka.actor.Actor$class.aroundReceive(Actor.scala:465)\", \"ooyala.common.akka.InstrumentedActor.aroundReceive(InstrumentedActor.scala:8)\", \"akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)\", \"akka.actor.ActorCell.invoke(ActorCell.scala:487)\", \"akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)\", \"akka.dispatch.Mailbox.run(Mailbox.scala:220)\", \"akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)\", \"scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)\", \"scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)\", \"scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)\", \"scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)\"], \"causingClass\": \"java.lang.UnsatisfiedLinkError\", \"message\": \"java.lang.UnsatisfiedLinkError: no mesos in java.library.path\" } } (error 500)\r\n```"},"comment":{"url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/comments/153478010","html_url":"https://github.com/spark-jobserver/spark-jobserver/issues/283#issuecomment-153478010","issue_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/283","id":153478010,"user":{"login":"danisla","id":323725,"avatar_url":"https://avatars.githubusercontent.com/u/323725?v=3","gravatar_id":"","url":"https://api.github.com/users/danisla","html_url":"https://github.com/danisla","followers_url":"https://api.github.com/users/danisla/followers","following_url":"https://api.github.com/users/danisla/following{/other_user}","gists_url":"https://api.github.com/users/danisla/gists{/gist_id}","starred_url":"https://api.github.com/users/danisla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danisla/subscriptions","organizations_url":"https://api.github.com/users/danisla/orgs","repos_url":"https://api.github.com/users/danisla/repos","events_url":"https://api.github.com/users/danisla/events{/privacy}","received_events_url":"https://api.github.com/users/danisla/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T20:31:17Z","updated_at":"2015-11-03T20:31:17Z","body":"@kiambogo, sure thing, give this one a try: [`danisla/spark-jobserver:0.6.0.mesos-0.24.1.spark-1.5.1`](https://hub.docker.com/r/danisla/spark-jobserver/tags/)\r\n\r\nAlso, I recently submitted a PR that will let you build your own mesos docker file from sbt. See here: https://github.com/spark-jobserver/spark-jobserver/pull/301\r\n\r\nExample:\r\n```\r\nMESOS_VERSION=0.24.1-0.2.35.ubuntu1404 sbt docker\r\n```"}}