Skip to content

Instantly share code, notes, and snippets.

@butlermh
Created December 23, 2011 11:24
Show Gist options
  • Save butlermh/1513925 to your computer and use it in GitHub Desktop.
Save butlermh/1513925 to your computer and use it in GitHub Desktop.
A Spring friendly wrapper for HBaseConfiguration
package org.apache.hadoop.hbase;
import java.util.Map;
import org.apache.hadoop.conf.Configuration;
public class HBaseConfigurationSpringWrapper extends HBaseConfiguration {
public HBaseConfigurationSpringWrapper(Configuration config,
Map<String, String> configParams) {
super(config);
for (String key : configParams.keySet()) {
set(key, configParams.get(key));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment