You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2014/08/17 06:35:49 UTC

[1/2] git commit: Disabled glog signal handler for mesos tests.

Repository: mesos
Updated Branches:
  refs/heads/master b1f3b9a0e -> bb3d0fa8a


Disabled glog signal handler for mesos tests.

Review: https://reviews.apache.org/r/24780


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/9deaf739
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/9deaf739
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/9deaf739

Branch: refs/heads/master
Commit: 9deaf739351632293c6aaee6a4023529478eb51a
Parents: b1f3b9a
Author: Jie Yu <yu...@gmail.com>
Authored: Sat Aug 16 19:46:14 2014 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Sat Aug 16 19:46:39 2014 -0700

----------------------------------------------------------------------
 src/tests/main.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/9deaf739/src/tests/main.cpp
----------------------------------------------------------------------
diff --git a/src/tests/main.cpp b/src/tests/main.cpp
index 32a2456..442be51 100644
--- a/src/tests/main.cpp
+++ b/src/tests/main.cpp
@@ -89,7 +89,7 @@ int main(int argc, char** argv)
   }
 
   // Initialize logging.
-  logging::initialize(argv[0], flags, true);
+  logging::initialize(argv[0], flags);
 
   // Initialize gmock/gtest.
   testing::InitGoogleTest(&argc, argv);


[2/2] git commit: Updated the upgrades.md for 0.20.0.

Posted by ji...@apache.org.
Updated the upgrades.md for 0.20.0.

Review: https://reviews.apache.org/r/24781


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/bb3d0fa8
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/bb3d0fa8
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/bb3d0fa8

Branch: refs/heads/master
Commit: bb3d0fa8a824d3420569161a738f715f247ec605
Parents: 9deaf73
Author: Jie Yu <yu...@gmail.com>
Authored: Sat Aug 16 20:32:41 2014 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Sat Aug 16 20:32:55 2014 -0700

----------------------------------------------------------------------
 docs/upgrades.md | 50 +++++++++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 47 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/bb3d0fa8/docs/upgrades.md
----------------------------------------------------------------------
diff --git a/docs/upgrades.md b/docs/upgrades.md
index 2d518be..5dee246 100644
--- a/docs/upgrades.md
+++ b/docs/upgrades.md
@@ -3,13 +3,57 @@ layout: documentation
 ---
 
 # Upgrading Mesos
+
 This document serves as a guide for users who wish to upgrade an existing mesos cluster. Some versions require particular upgrade techniques when upgrading a running cluster. Some upgrades will have incompatible changes.
 
 ## Upgrading from 0.19.x to 0.20.x.
 
-* Python bindings have changed their structure. There are now sub-modules which allow you to use either the interfaces and/or the native driver.
-    - `import mesos.native` for the native drivers
-    - `import mesos.interface` for the stub implementations and protobufs
+NOTE: The Mesos API has been changed slightly in this release. The CommandInfo has been changed (see below), which makes launching a command more flexible. The 'value' field has been changed from _required_ to _optional_. However, it will not cause any issue during the upgrade (since the existing schedulers always set this field).
+
+```
+message CommandInfo {
+  ...
+  // There are two ways to specify the command:
+  // 1) If 'shell == true', the command will be launched via shell
+  //    (i.e., /bin/sh -c 'value'). The 'value' specified will be
+  //    treated as the shell command. The 'arguments' will be ignored.
+  // 2) If 'shell == false', the command will be launched by passing
+  //    arguments to an executable. The 'value' specified will be
+  //    treated as the filename of the executable. The 'arguments'
+  //    will be treated as the arguments to the executable. This is
+  //    similar to how POSIX exec families launch processes (i.e.,
+  //    execlp(value, arguments(0), arguments(1), ...)).
+  optional bool shell = 6 [default = true];
+  optional string value = 3;
+  repeated string arguments = 7;
+  ...
+}
+```
+
+NOTE: The Python bindings are also changing in this release. There are now sub-modules which allow you to use either the interfaces and/or the native driver.
+
+* `import mesos.native` for the native drivers
+* `import mesos.interface` for the stub implementations and protobufs
+
+To ensure a smooth upgrade, we recommend to upgrade your python framework and executor first. You will be able to either import using the new configuration or the old. Replace the existing imports with something like the following:
+
+```
+    try:
+        from mesos.native import MesosExecutorDriver, MesosSchedulerDriver
+        from mesos.interface import Executor, Scheduler
+        from mesos.interface import mesos_pb2
+    except ImportError:
+        from mesos import Executor, MesosExecutorDriver, MesosSchedulerDriver, Scheduler
+        import mesos_pb2
+```
+
+In order to upgrade a running cluster:
+
+* Install the new master binaries and restart the masters.
+* Install the new slave binaries and restart the slaves.
+* Upgrade the schedulers by linking the latest native library (install the latest mesos jar and python egg if necessary).
+* Restart the schedulers.
+* Upgrade the executors by linking the latest native library (install the latest mesos jar and python egg if necessary).
 
 ## Upgrading from 0.18.x to 0.19.x.