Skip to content

Instantly share code, notes, and snippets.

View InputNeuron's full-sized avatar

Kevin Burton InputNeuron

View GitHub Profile
package io.netty.buffer;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
public class Test {
@InputNeuron
InputNeuron / gist:5846854
Created June 23, 2013 23:03
test map reduce
String desc = String.format( "Iteration %s of %s", step, iterations );
merge( new Job().setDelegate( IterJob.Map.class )
.setInput( graph_by_source ,
"/pr/out/rank_vector" ,
"/pr/out/dangling" ,
"/pr/out/nonlinked" ,
"broadcast:/pr/out/nr_nodes" )
.setOutput( "shuffle:default",
@InputNeuron
InputNeuron / gist:5674363
Created May 29, 2013 22:31
powerset testing...
public void test1() throws Exception {
List<Long> delayOptions = Longs.asList( 0, 1000 );
List<Boolean> chunkOptions = Booleans.asList( true, false );
for( long delay : delayOptions ) {
for ( boolean chunked : chunkOptions ) {
@InputNeuron
InputNeuron / gist:1602152
Created January 12, 2012 18:13
peregrine.conf
###
# Main peregrine configuration file. All values here can be overridden on the
# command line by running --param=value. For example to change the default
# basedir you can run with --basedir=/d0/peregrine-fs
#
###
###
#
# The controller which will send and receive RPC messages and handle job