title | layout |
---|---|
Apache Mesos - Operator HTTP API |
documentation |
Mesos 1.0.0 added experimental support for v1 Operator HTTP API.
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Maintainer: | |
" Amir Salihefendic | |
" http://amix.dk - amix@amix.dk | |
" | |
" Version: | |
" 5.0 - 29/05/12 15:43:36 | |
" | |
" Blog_post: | |
" http://amix.dk/blog/post/19691#The-ultimate-Vim-configuration-on-Github |
" Highlight search results | |
set hlsearch | |
" Makes search act like search in modern browsers | |
set incsearch | |
" Don't redraw while executing macros (good performance config) | |
set lazyredraw | |
" For regular expressions turn magic on |
// Given a pair of nodes in a binary tree (not BST), find the distance between the two. Optimize for memory _and_ computational complexity. | |
// | |
// A | |
// B E | |
// C D | |
// | |
// dist(root, v, w) | |
// #1) dist(A, C, E) -> 3 | |
// #2) dist(A, B, C) -> 1 | |
// #3) dist(A, D, E) -> 3 |
diff --git a/src/slave/slave.cpp b/src/slave/slave.cpp | |
index c3cbdbc..1b1a099 100644 | |
--- a/src/slave/slave.cpp | |
+++ b/src/slave/slave.cpp | |
@@ -2186,7 +2186,22 @@ void Slave::__run( | |
Executor* executor = framework->getExecutor(executorId); | |
if (executor == nullptr) { | |
- executor = launchExecutor(frameworkId, executorInfo, task, taskGroup); | |
+ executor = addExecutor(framework, executorInfo, task, taskGroup); |
In the space of POSITIVE integers... | |
"Increasing" number = from left to right, digits are all >= than previous digit | |
Examples: | |
123 | |
1223 | |
134468 | |
"Decreasing" number = from left to right, digits are all <= than previous digit | |
Examples: |
➜ build git:(mesos-6296_1) ✗ LIBPROCESS_SSL_ENABLED=1 LIBPROCESS_SSL_CERT_FILE=/home/faceoff/work/mesos-priv/build/cert.pem LIBPROCESS_SSL_KEY_FILE=/home/faceoff/work/mesos-priv/build/key.pem ./src/mesos-execute --master=127.0.1.1:5050 --checkpoint --command="mount" --name="foo" | |
WARNING: Logging before InitGoogleLogging() is written to STDERR | |
I0206 19:34:45.204104 31502 openssl.cpp:419] CA file path is unspecified! NOTE: Set CA file path with LIBPROCESS_SSL_CA_FILE=<filepath> | |
I0206 19:34:45.204157 31502 openssl.cpp:424] CA directory path unspecified! NOTE: Set CA directory path with LIBPROCESS_SSL_CA_DIR=<dirpath> | |
I0206 19:34:45.204164 31502 openssl.cpp:429] Will not verify peer certificate! | |
NOTE: Set LIBPROCESS_SSL_VERIFY_CERT=1 to enable peer certificate verification | |
I0206 19:34:45.204169 31502 openssl.cpp:435] Will only verify peer certificate if presented! | |
NOTE: Set LIBPROCESS_SSL_REQUIRE_CERT=1 to require peer certificate verification | |
Enter PEM pass phrase: | |
I0206 19:34:47.259697 31522 scheduler.cpp:184] |
int check_log_history(const vector <string>& events) { | |
stack<string> s; | |
set<string>acquired; // If there is a lock existing for that n. | |
for (int i = 0; i<events.size();i++) { | |
string op, n; | |
stringstream stream; | |
stream << events[i]; | |
stream >> op >> n; |
//Initialize count array. | |
vector<int> cnt_mod(k, 0); | |
cnt_mod[0] = 1; | |
int pref_sum = 0; | |
//Iterate over the input sequence. | |
for (int elem : vec) { | |
pref_sum += elem; | |
pref_sum %= k; | |
cnt_mod[pref_sum]++; | |
} |