Skip to content

Instantly share code, notes, and snippets.

View dehowell's full-sized avatar

David Howell dehowell

View GitHub Profile
[junit] Failed construction of Master: class org.apache.hadoop.hbase.MiniHBaseCluster$MiniHBaseClusterMastercom.google.common.collect.ImmutableList.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableList;
[junit] java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.MiniHBaseCluster$MiniHBaseClusterMastercom.google.common.collect.ImmutableList.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableList;
[junit] at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:1166)
[junit] at org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:112)
[junit] at org.apache.hadoop.hbase.MiniHBaseCluster.init(MiniHBaseCluster.java:232)
[junit] at org.apache.hadoop.hbase.MiniHBaseCluster.<init>(MiniHBaseCluster.java:71)
[junit] at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:293)
[junit] at com.wolfram.ca.jobs.sessions.SessionsHBaseTest.setUpBeforeClass
import org.apache.hadoop.hbase.HBaseTestingUtility;
import org.junit.*;
import static org.junit.Assert.*;
public class HBaseTest {
private static final HBaseTestingUtility TEST_UTIL = new HBaseTestingUtility();
@BeforeClass
public static void setUpBeforeClass() throws Exception {
TEST_UTIL.startMiniCluster(1);
public class RepartitionMapper extends MapReduceBase
implements Mapper<LongWritable, Text, ApacheKeyWritable, Text> {
private static final Log LOG = LogFactory.getLog(RepartitionMapper.class);
private static ApacheKeyWritable outputKey = new ApacheKeyWritable();
public MatchResult parseInputFilename(String filename)
throws IllegalArgumentException {
Pattern p = Pattern.compile(
#!/usr/bin/env python
"""Synchronizes bookmarks from http://pinboard.in/
"""
import base64
import datetime
import sys
import urllib2
from appscript import *
# fix_networking.sh
#
# This script automates the steps outlined at:
#
# http://weblog.jamisbuck.org/2008/8/15/cloning-ubuntu-hardy-image-in-vmware-fusion
#
# for fixing the networking on a copied Ubuntu VMWare image.
usage() {
cat <<EOF