You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gora.apache.org by le...@apache.org on 2013/11/08 18:08:58 UTC

svn commit: r1540124 - in /gora/branches/GORA_94: gora-core/ gora-core/src/test/conf/ gora-hbase/src/test/conf/ gora-hbase/src/test/java/org/apache/gora/hbase/util/

Author: lewismc
Date: Fri Nov  8 17:08:58 2013
New Revision: 1540124

URL: http://svn.apache.org/r1540124
Log:
update for testing config's

Added:
    gora/branches/GORA_94/gora-core/src/test/conf/hadoop-metrics2.properties
Removed:
    gora/branches/GORA_94/gora-hbase/src/test/conf/zoo.cfg
Modified:
    gora/branches/GORA_94/gora-core/pom.xml
    gora/branches/GORA_94/gora-hbase/src/test/conf/hbase-site.xml
    gora/branches/GORA_94/gora-hbase/src/test/java/org/apache/gora/hbase/util/HBaseClusterSingleton.java

Modified: gora/branches/GORA_94/gora-core/pom.xml
URL: http://svn.apache.org/viewvc/gora/branches/GORA_94/gora-core/pom.xml?rev=1540124&r1=1540123&r2=1540124&view=diff
==============================================================================
--- gora/branches/GORA_94/gora-core/pom.xml (original)
+++ gora/branches/GORA_94/gora-core/pom.xml Fri Nov  8 17:08:58 2013
@@ -99,9 +99,9 @@
                 <version>${build-helper-maven-plugin.version}</version>
                 <executions>
                     <execution>
-                        <phase>generate-sources</phase>
+                        <phase>generate-test-sources</phase>
                         <goals>
-                            <goal>add-source</goal>
+                            <goal>add-test-source</goal>
                         </goals>
                         <configuration>
                             <sources>

Added: gora/branches/GORA_94/gora-core/src/test/conf/hadoop-metrics2.properties
URL: http://svn.apache.org/viewvc/gora/branches/GORA_94/gora-core/src/test/conf/hadoop-metrics2.properties?rev=1540124&view=auto
==============================================================================
--- gora/branches/GORA_94/gora-core/src/test/conf/hadoop-metrics2.properties (added)
+++ gora/branches/GORA_94/gora-core/src/test/conf/hadoop-metrics2.properties Fri Nov  8 17:08:58 2013
@@ -0,0 +1,8 @@
+# Configuration of the "dfs" context for null
+dfs.class=org.apache.hadoop.metrics.spi.NullContext
+
+# Configuration of the "mapred" context for null
+mapred.class=org.apache.hadoop.metrics.spi.NullContext
+
+# Configuration of the "jvm" context for null
+jvm.class=org.apache.hadoop.metrics.spi.NullContext

Modified: gora/branches/GORA_94/gora-hbase/src/test/conf/hbase-site.xml
URL: http://svn.apache.org/viewvc/gora/branches/GORA_94/gora-hbase/src/test/conf/hbase-site.xml?rev=1540124&r1=1540123&r2=1540124&view=diff
==============================================================================
--- gora/branches/GORA_94/gora-hbase/src/test/conf/hbase-site.xml (original)
+++ gora/branches/GORA_94/gora-hbase/src/test/conf/hbase-site.xml Fri Nov  8 17:08:58 2013
@@ -119,7 +119,6 @@
     <description>
     Maximum desired file size for an HRegion.  If filesize exceeds
     value + (value / 2), the HRegion is split in two.  Default: 256M.
-
     Keep the maximum filesize small so we split more often in tests.
     </description>
   </property>
@@ -134,4 +133,9 @@
     The port at which the clients will connect.
     </description>
   </property>
+  <property>
+    <name>hbase.zookeeper.quorum</name>
+    <value>localhost</value>
+    <description>The directory shared by region servers.</description>
+  </property>
 </configuration>

Modified: gora/branches/GORA_94/gora-hbase/src/test/java/org/apache/gora/hbase/util/HBaseClusterSingleton.java
URL: http://svn.apache.org/viewvc/gora/branches/GORA_94/gora-hbase/src/test/java/org/apache/gora/hbase/util/HBaseClusterSingleton.java?rev=1540124&r1=1540123&r2=1540124&view=diff
==============================================================================
--- gora/branches/GORA_94/gora-hbase/src/test/java/org/apache/gora/hbase/util/HBaseClusterSingleton.java (original)
+++ gora/branches/GORA_94/gora-hbase/src/test/java/org/apache/gora/hbase/util/HBaseClusterSingleton.java Fri Nov  8 17:08:58 2013
@@ -85,6 +85,9 @@ public final class HBaseClusterSingleton
 
     htu.getConfiguration().setBoolean("dfs.support.append", true);
     htu.getConfiguration().setInt("zookeeper.session.timeout", 20000);
+    htu.getConfiguration().set("hbase.zookeeper.quorum", "localhost");
+    htu.getConfiguration().setInt("hbase.zookeeper.property.clientPort", 2181);
+    
     try {
       LOG.info("Start HBase mini cluster.");
       hbaseCluster = htu.startMiniCluster(numServers);