Skip to content

Instantly share code, notes, and snippets.

View rmetzger's full-sized avatar

Robert Metzger rmetzger

View GitHub Profile
@rmetzger
rmetzger / read_kmem.c
Last active December 19, 2015 04:58
Kernel/Physical Memory Dumper
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
/**
Author:
Robert Metzger metrobert@gmail.com
build:
clang -m32 read_kmem.c -o read
@rmetzger
rmetzger / e
Created September 22, 2013 09:30
Maven Assembly / Profiles Bug Example
e
@rmetzger
rmetzger / .zshrc
Created October 21, 2013 12:50 — forked from anonymous/.zshrc
# Filename: /etc/zsh/zshrc
# Purpose: config file for zsh (z shell)
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
################################################################################
# This file is sourced only for interactive shells. It
# should contain commands to set up aliases, functions,
# options, key bindings, etc.
#
-------------------------------------------------------------------------------
Test set: eu.stratosphere.test.exampleScalaPrograms.TPCHQuery3ITCase
-------------------------------------------------------------------------------
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 8.182 sec <<< FAILURE!
testJob[0](eu.stratosphere.test.exampleScalaPrograms.TPCHQuery3ITCase) Time elapsed: 8.062 sec <<< FAILURE!
arrays first differed at element [0]; expected:<5|0|147828[.]97> but was:<5|0|147828[,]97>
at org.junit.internal.ComparisonCriteria.arrayEquals(ComparisonCriteria.java:54)
at org.junit.Assert.internalArrayEquals(Assert.java:414)
at org.junit.Assert.assertArrayEquals(Assert.java:166)
at org.junit.Assert.assertArrayEquals(Assert.java:183)
-------------------------------------------------------------------------------
Test set: eu.stratosphere.test.exampleScalaPrograms.IterativeKMeansITCase
-------------------------------------------------------------------------------
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 10.275 sec <<< FAILURE!
testJob[0](eu.stratosphere.test.exampleScalaPrograms.IterativeKMeansITCase) Time elapsed: 10.155 sec <<< FAILURE!
java.lang.AssertionError: Post-submit work caused an error: For input string: "38,25"
at org.junit.Assert.fail(Assert.java:91)
at eu.stratosphere.test.util.TestBase2.testJob(TestBase2.java:145)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
@rmetzger
rmetzger / gist:8975283
Created February 13, 2014 13:49
Jar with dependencies
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
@rmetzger
rmetzger / gist:8979018
Last active August 29, 2015 13:56
Fedora 19
[rmetzger@ibm-power-1 ~]$ uname -r
3.11.7-200.fc19.ppc64p7
[rmetzger@ibm-power-1 ~]$ java -version
java version "1.7.0_45"
OpenJDK Runtime Environment (fedora-2.4.3.0.fc19-ppc64 u45-b15)
OpenJDK 64-Bit Zero VM (build 24.45-b08, interpreted mode)
[rmetzger@ibm-power-1 ~]$ mvn archetype:generate
Exception in thread "process reaper" Exception in thread "process reaper" Exception in thread "process reaper" java.lang.StackOverflowError
at java.util.concurrent.SynchronousQueue$TransferStack.snode(SynchronousQueue.java:316)
at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:358)
2014-05-07 08:29:12,065 WARN org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.LeafQueue: Node : hadoop1.local:58626 does not have sufficient resource for request : {Priority: 0, Capability: <memory:2048, vCores:1>, # Containers: 1, Location: *, Relax Locality: true} node total capability : <memory:1024, vCores:8>
2014-05-07 08:29:12,394 WARN org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.LeafQueue: Node : hadoop3.local:35224 does not have sufficient resource for request : {Priority: 0, Capability: <memory:2048, vCores:1>, # Containers: 1, Location: *, Relax Locality: true} node total capability : <memory:1024, vCores:8>
2014-05-07 08:29:12,562 WARN org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.LeafQueue: Node : hadoop2.local:52355 does not have sufficient resource for request : {Priority: 0, Capability: <memory:2048, vCores:1>, # Containers: 1, Location: *, Relax Locality: true} node total capability : <memory:1024, vCores:8>
2014-05-07 08:29:13,068 WARN or
13:41:45,088 INFO eu.stratosphere.nephele.jobmanager.JobManager - Creating initial execution graph from job graph Large Test Plan
13:41:45,635 INFO eu.stratosphere.nephele.executiongraph.ExecutionGraph - Job input vertex DataSource(File hdfs:///user/vagrant/stratosphere-tests/testjob-in/orders.avro) generated 2 input splits
13:41:45,695 INFO eu.stratosphere.nephele.executiongraph.ExecutionGraph - Job input vertex DataSource(region) generated 8 input splits
13:41:45,738 INFO eu.stratosphere.nephele.executiongraph.ExecutionGraph - Job input vertex DataSource(customer) generated 8 input splits
13:41:45,771 INFO eu.stratosphere.nephele.executiongraph.ExecutionGraph - Job input vertex DataSource(lineitem) generated 8 input splits
13:41:45,828 INFO eu.stratosphere.nephele.executiongraph.ExecutionGraph - Job input vertex DataSource(orders) generated 8 input splits
13:41:45,897 INFO eu.stratosphere.nephele.executiongraph.ExecutionGraph - Job input
@rmetzger
rmetzger / gist:cf4d2eba940483d704a2
Created June 20, 2014 18:52
Spark ASF-GitHub-Integration merge tool output
./merge_pull_request.sh
Which pull request would you like to merge? (e.g. 34): 30
=== Pull Request #30 ===
title Added Version and Revision of Stratosphere in Webinterface
source JonathanH5/wi_version
target master
url https://api.github.com/repos/apache/incubator-flink/pulls/30
Proceed with merging pull request #30? (y/n): y