incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject git commit: Adding a dep to testing scope and some code change in reflection logic for obtaining a new counter.
Date Wed, 02 Jul 2014 12:50:02 GMT
Repository: incubator-blur
Updated Branches:
  refs/heads/apache-blur-0.2 e53e35cf4 -> a1f57f4ee


Adding a dep to testing scope and some code change in reflection logic for obtaining a new
counter.


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/a1f57f4e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/a1f57f4e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/a1f57f4e

Branch: refs/heads/apache-blur-0.2
Commit: a1f57f4eec88fdcf4aa5db050a1f8d14e63ea7a4
Parents: e53e35c
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Wed Jul 2 08:50:03 2014 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Wed Jul 2 08:50:03 2014 -0400

----------------------------------------------------------------------
 blur-mapred-hadoop1/pom.xml                                    | 6 ++++++
 .../main/java/org/apache/blur/mapreduce/lib/NullCounter.java   | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/a1f57f4e/blur-mapred-hadoop1/pom.xml
----------------------------------------------------------------------
diff --git a/blur-mapred-hadoop1/pom.xml b/blur-mapred-hadoop1/pom.xml
index 0ea1605..53bf1e3 100644
--- a/blur-mapred-hadoop1/pom.xml
+++ b/blur-mapred-hadoop1/pom.xml
@@ -184,6 +184,12 @@ under the License.
 					<version>${hadoop.version}</version>
 					<scope>test</scope>
 				</dependency>
+                <dependency>
+					<groupId>org.apache.hadoop</groupId>
+					<artifactId>hadoop-minicluster</artifactId>
+					<version>${hadoop.version}</version>
+					<scope>test</scope>
+				</dependency>
 				<dependency>
 				      <groupId>org.apache.mrunit</groupId>
 				      <artifactId>mrunit</artifactId>

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/a1f57f4e/blur-mapred-hadoop1/src/main/java/org/apache/blur/mapreduce/lib/NullCounter.java
----------------------------------------------------------------------
diff --git a/blur-mapred-hadoop1/src/main/java/org/apache/blur/mapreduce/lib/NullCounter.java
b/blur-mapred-hadoop1/src/main/java/org/apache/blur/mapreduce/lib/NullCounter.java
index bddd73c..4b024d6 100644
--- a/blur-mapred-hadoop1/src/main/java/org/apache/blur/mapreduce/lib/NullCounter.java
+++ b/blur-mapred-hadoop1/src/main/java/org/apache/blur/mapreduce/lib/NullCounter.java
@@ -33,7 +33,8 @@ public class NullCounter {
       // Try hadoop 1 version
       try {
         Class<?> clazz2 = Class.forName("org.apache.hadoop.mapreduce.Counter");
-        Constructor<?> constructor = clazz2.getConstructor(new Class[] {});
+        Constructor<?> constructor = clazz2.getDeclaredConstructor(new Class[] {});
+        constructor.setAccessible(true);
         return (Counter) constructor.newInstance(new Object[] {});
       } catch (ClassNotFoundException e2) {
         throw new RuntimeException(e2);


Mime
View raw message