Created
December 23, 2011 11:24
-
-
Save butlermh/1513925 to your computer and use it in GitHub Desktop.
A Spring friendly wrapper for HBaseConfiguration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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