HADOOP-2753 Back out 2718; programmatic config works but

hbase*xml conf is overridden


git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk/src/contrib/hbase@617025 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2008-01-31 07:03:33 +00:00
parent 6e22739796
commit d374f82519
2 changed files with 5 additions and 5 deletions

View File

@ -155,6 +155,8 @@ Trunk (unreleased changes)
HADOOP-2718 Copy Constructor HBaseConfiguration(Configuration) will override HADOOP-2718 Copy Constructor HBaseConfiguration(Configuration) will override
hbase configurations if argumant is not an instance of hbase configurations if argumant is not an instance of
HBaseConfiguration. HBaseConfiguration.
HADOOP-2753 Back out 2718; programmatic config works but hbase*xml conf
is overridden
HADOOP-2631 2443 breaks HTable.getStartKeys when there is more than one HADOOP-2631 2443 breaks HTable.getStartKeys when there is more than one
table or table you are enumerating isn't the first table table or table you are enumerating isn't the first table
Delete empty file: src/contrib/hbase/src/java/org/apache/hadoop/hbase/mapred/ Delete empty file: src/contrib/hbase/src/java/org/apache/hadoop/hbase/mapred/

View File

@ -19,8 +19,6 @@
*/ */
package org.apache.hadoop.hbase; package org.apache.hadoop.hbase;
import java.util.Map.Entry;
import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.conf.Configuration;
/** /**
@ -38,9 +36,9 @@ public class HBaseConfiguration extends Configuration {
* @param c Configuration to clone. * @param c Configuration to clone.
*/ */
public HBaseConfiguration(final Configuration c) { public HBaseConfiguration(final Configuration c) {
super(); super(c);
for (Entry<String, String>e: c) { if (!(c instanceof HBaseConfiguration)) {
set(e.getKey(), e.getValue()); addHbaseResources();
} }
} }