04 2014 档案

摘要:Spark 相关 Apache Mesos总体架构 http://dongxicheng.org/apache-mesos/meso-architecture/ Apache Spark探秘:实现Map-side Join和Reduce-side Joinhttp://dongxicheng... 阅读全文
posted @ 2014-04-19 09:35 lingjip 阅读(200) 评论(0) 推荐(0)
摘要:今天遇到一个程序,使用了printf输出中间的信息,我也懒得去改。由于此进程被其他进程fork之后,dup2 了标识输入输出到了/dev/null,再通过execvp装载进来。于是,为了看到输出的信息,写了一段类似如下的代码:#include #include #include #include #include int main(int argc,char* argv[]){ int fd = open("/dev/null", O_RDWR, 0); if(-1 != fd) { printf("before dup2... 阅读全文
posted @ 2014-04-02 17:39 lingjip 阅读(2199) 评论(0) 推荐(0)