Skip to content

Instantly share code, notes, and snippets.

View nqn's full-sized avatar

Niklas Nielsen nqn

  • San Francisco, CA
View GitHub Profile
../../3rdparty/libprocess/include/process/c++11/dispatch.hpp:248:25: error: binding of reference to type 'function<[...]>' to a value of type 'function<[...]>' drops qualifiers
REPEAT_FROM_TO(1, 11, TEMPLATE, _) // Args A0 -> A9.
^
../3rdparty/libprocess/3rdparty/boost-1.53.0/boost/preprocessor/repetition/repeat_from_to.hpp:36:125: note: expanded from macro 'BOOST_PP_REPEAT_FROM_TO_1'
# define BOOST_PP_REPEAT_FROM_TO_1(f, l, m, dt) BOOST_PP_REPEAT_FROM_TO_D_1(BOOST_PP_AUTO_REC(BOOST_PP_WHILE_P, 256), f, l, m, dt)
^
../3rdparty/libprocess/3rdparty/boost-1.53.0/boost/preprocessor/repetition/repeat_from_to.hpp:54:136: note: expanded from macro 'BOOST_PP_REPEAT_FROM_TO_D_1'
# define BOOST_PP_REPEAT_FROM_TO_D_1(d, f, l, m, dt) BOOST_PP_REPEAT_1(BOOST_PP_SUB_D(d, l, f), BOOST_PP_REPEAT_FROM_TO_M_1, (d, f, m, dt))
commit 61a882908b6512551b1e2ab96edeb56854e28d60
Author: Niklas Q. Nielsen <niklas@mesosphere.io>
Date: Tue Apr 15 14:36:14 2014 -0700
Updated CHANGELOG for 0.18.1-rc1.
commit a153e7ad6ce162974feb8066e0610da21b2a0b1c
Author: Bernd Mathiske <bernd@mesosphere.io>
Date: Mon Mar 10 13:14:44 2014 -0700
In file included from ../../src/local/local.cpp:45:
../../src/slave/slave.hpp:231:44: error: no member named 'Termination' in 'mesos::internal::slave::Containerizer'
const process::Future<Containerizer::Termination>& termination,
~~~~~~~~~~~~~~~^
../../src/local/local.cpp:195:26: error: cannot initialize object parameter of type 'const process::Process<mesos::internal::slave::Slave>' with an expression of type 'mesos::internal::slave::Slave'
process::terminate(slave->self());
^~~~~
../../src/local/local.cpp:196:21: error: cannot initialize object parameter of type 'const process::Process<mesos::internal::slave::Slave>' with an expression of type 'mesos::internal::slave::Slave'
process::wait(slave->self());
^~~~~
diff --git a/src/examples/test_containerizer.cpp b/src/examples/test_containerizer.cpp
index c5b3c4e..f1c057b 100644
--- a/src/examples/test_containerizer.cpp
+++ b/src/examples/test_containerizer.cpp
@@ -477,7 +477,7 @@ public:
//Try<std::string> directory = environment->mkdtemp();
flags.work_dir = "/tmp/mc-test";
- flags.launcher_dir = "/Users/till/Development/mesos-till/build/src";
+ flags.launcher_dir = "/Users/nnielsen/scratchpad/mesos/build/src";
(gdb) bt full
#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
No locals.
#1 0x00007ffff6d5560b in mesos::MesosExecutorDriver::join (this=0x7fffffffe160) at ../../src/exec/exec.cpp:769
lock = {mutex = 0x7fffffffe178, locked = true}
#2 0x000000000040bb67 in main (argc=<optimized out>, argv=<optimized out>) at ../../src/launcher/executor.cpp:508
flags = {<flags::FlagsBase> = {_vptr.FlagsBase = 0x4258b0 <vtable for Flags+16>, flags = {_M_t = {
_M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, flags::Flag> > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, flags::Flag> > >> = {<No data fields>}, <No data fields>},
_M_key_compare = {<std::binary_function<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_st
@nqn
nqn / next_interviewer.sh
Created July 14, 2014 18:15
./next_interviewer.sh niklas tim bernd yifan
#!/bin/bash
ARGS=( "$@" )
TMP=`od -A n -t d -N 1 /dev/urandom`
echo ${ARGS[$((TMP % ${#ARGS[*]}))]}
I0819 18:33:58.211746 26882 leveldb.cpp:343] Persisting action (18 bytes) to leveldb took 5.597417ms
I0819 18:33:58.211858 26882 leveldb.cpp:401] Deleting ~2 keys from leveldb took 38839ns
I0819 18:33:58.211894 26882 replica.cpp:676] Persisted action at 8
I0819 18:33:58.211920 26882 replica.cpp:661] Replica learned TRUNCATE action at position 8
I0819 18:33:58.316694 26883 master.cpp:1315] Received registration request from scheduler-984cda3d-4008-4421-b56d-969776499c21@144.76.223.227:43310
I0819 18:33:58.316841 26883 master.cpp:1374] Registering framework 20140819-183357-3823062160-43310-26842-0000 at scheduler-984cda3d-4008-4421-b56d-969776499c21@144.76.223.227:43310
I0819 18:33:58.316962 26882 sched.cpp:409] Framework registered with 20140819-183357-3823062160-43310-26842-0000
I0819 18:33:58.316983 26877 hierarchical_allocator_process.hpp:326] Added framework 20140819-183357-3823062160-43310-26842-0000
Registered with framework ID 20140819-183357-3823062160-43310-26842-0000
I0819 18:33:58.317519 26882 maste
@nqn
nqn / gist:c4b70b907115e2304861
Created August 27, 2014 17:08
printenv.json
{
"id": "env-test",
"executor": "/usr/bin/printenv",
"mem": 100,
"cpus": 1.0,
"instances": 1,
"env": {
"FOOBAR": "1"
}
}
# slurm.conf file generated by configurator.html.
# Put this file on all nodes of your cluster.
# See the slurm.conf man page for more information.
#
ControlMachine=development-374-2f9
#ControlAddr=
#BackupController=
#BackupAddr=
#
AuthType=auth/munge
#!/usr/bin/env python
# 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
#