Skip to content

Instantly share code, notes, and snippets.

View ekoontz's full-sized avatar

Eugene Koontz ekoontz

View GitHub Profile
Agraph_t* graphml_parse(FILE * fp) {
// 1. use libxml2 to (try) to parse contents
// of fp into a DOM.
return (Agraph_t*)NULL;
// 2. if DOM parsing was successful, convert DOM into an Agraph_t*.
}
Agraph_t *agread(FILE * fp)
From be8b9006f136b73aa002e00683ca26cc355268ab Mon Sep 17 00:00:00 2001
From: Eugene Koontz <ekoontz@hiro-tan.org>
Date: Fri, 24 Sep 2010 15:11:35 -0700
Subject: [PATCH] fix for #47
---
src/main/ruby/hbase/admin.rb | 15 ++++-----------
1 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/src/main/ruby/hbase/admin.rb b/src/main/ruby/hbase/admin.rb
From 466ef46b43aec9d1943754c50da7298fd548cdab Mon Sep 17 00:00:00 2001
From: Eugene Koontz <ekoontz@hiro-tan.org>
Date: Thu, 23 Sep 2010 16:23:19 -0700
Subject: [PATCH] my config:
1. allow intellij to attach to hbase shell (hbase client)
2. add SecureRpcEngine support per Gary's info
3. enable RBACCoprocessor in config
---
bin/hbase | 1 +
From fb5ac5b657eee77df539a09d4aa5696ffd19b7c0 Mon Sep 17 00:00:00 2001
From: Eugene Koontz <ekoontz@hiro-tan.org>
Date: Thu, 30 Sep 2010 12:47:34 -0700
Subject: [PATCH] use UGI:getCurrentUser().getUserName(), at creation time, as owner of .META. and -ROOT-
---
.../java/org/apache/hadoop/hbase/HRegionInfo.java | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/src/main/java/org/apache/hadoop/hbase/HRegionInfo.java b/src/main/java/org/apache/hadoop/hbase/HRegionInfo.java
/*
* @(#)SampleServer.java
*
* Copyright (c) 2001, 2002, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions are met:
*
* -Redistributions of source code must retain the above copyright
/*
* @(#)SampleClient.java
*
* Copyright (c) 2001, 2002, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions are met:
*
* -Redistributions of source code must retain the above copyright
import java.util.LinkedList;
public class foo {
class NameValuePair {
String name;
String value;
NameValuePair(String _name, String _value) {
name = _name;
value = _value;
@ekoontz
ekoontz / ZK and SASL
Created January 10, 2011 20:40
zookeeper with SASL: demonstration session
ekoontz@ekoontz:~/zookeeper$ bin/zkCli.sh -server 192.168.56.1:2181
Connecting to 192.168.56.1:2181
2011-01-10 12:37:04,471 [myid:] - INFO [main:Environment@97] - Client environment:zookeeper.version=3.4.0--1, built on 01/09/2011 19:31 GMT
2011-01-10 12:37:04,474 [myid:] - INFO [main:Environment@97] - Client environment:host.name=192.168.0.104
2011-01-10 12:37:04,474 [myid:] - INFO [main:Environment@97] - Client environment:java.version=1.6.0_22
2011-01-10 12:37:04,475 [myid:] - INFO [main:Environment@97] - Client environment:java.vendor=Apple Inc.
2011-01-10 12:37:04,475 [myid:] - INFO [main:Environment@97] - Client environment:java.home=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
2011-01-10 12:37:04,475 [myid:] - INFO [main:Environment@97] - Client environment:java.class.path=bin/../build/classes:bin/../build/lib/netty-3.2.2.Final.jar:bin/../build/lib/log4j-1.2.15.jar:bin/../build/lib/jline-0.9.94.jar:bin/../zookeeper-*.jar:bin/../lib/*.jar:bin/../src/java/lib/ivy-2.1.0.jar:bin/..