-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added additional configuration parameters for controlling scheduler behaviour: - mesos.offer.filter.seconds - mesos.offer.expiry.multiplier - mesos.prefer.reserved.resources - Implemented combining of reserved & unreserved resources - Improved Docker support, added support for running Storm inside containers. This also introduces the mesos.container.docker.image config param - Added unit tests - Improved port handling, especially with regard to logviewer - Code cleanup/style fixes - Implemented filters & reviveOffers()
- Loading branch information
1 parent
98a831a
commit af8c49b
Showing
19 changed files
with
1,457 additions
and
699 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
# | ||
# Dockerfile for Storm Mesos framework | ||
# | ||
FROM mesosphere/mesos:0.22.0-1.0.ubuntu1404 | ||
FROM mesosphere/mesos:0.25.0-0.2.70.ubuntu1404 | ||
MAINTAINER Timothy Chen <tnachen@gmail.com> | ||
|
||
# build packages | ||
ENV DEBIAN_FRONTEND noninteractive | ||
RUN apt-get update | ||
RUN apt-get install -yq openjdk-7-jdk | ||
RUN apt-get install -yq openjdk-7-jdk maven wget | ||
|
||
# export environment | ||
ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64 | ||
|
||
ENV MESOS_NATIVE_JAVA_LIBRARY /usr/lib/libmesos.so | ||
|
||
# copy local checkout into /opt/storm | ||
ADD . /opt/storm | ||
ADD . /work | ||
|
||
WORKDIR /work | ||
RUN ./bin/build-release.sh main | ||
RUN mkdir -p /opt/storm && tar xf storm-mesos-*.tgz -C /opt/storm --strip=1 && rm -rf /work | ||
WORKDIR /opt/storm | ||
|
||
ENTRYPOINT ["/opt/storm/bin/storm-mesos"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package storm.mesos; | ||
|
||
import org.apache.mesos.Protos; | ||
|
||
import static storm.mesos.PrettyProtobuf.offerToString; | ||
import static storm.mesos.PrettyProtobuf.taskInfoToString; | ||
|
||
class LaunchTask { | ||
public final Protos.TaskInfo task; | ||
public final Protos.Offer offer; | ||
|
||
public LaunchTask(final Protos.TaskInfo task, final Protos.Offer offer) { | ||
this.task = task; | ||
this.offer = offer; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "Offer: " + offerToString(offer) + " TaskInfo: " + taskInfoToString(task); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.