accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject [1/2] git commit: ACCUMULO-1458 - cleaning up warning in code
Date Mon, 04 Nov 2013 18:35:34 GMT
Updated Branches:
  refs/heads/master 4365784b7 -> 8f87c720d


ACCUMULO-1458 - cleaning up warning in code


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/109c1790
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/109c1790
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/109c1790

Branch: refs/heads/master
Commit: 109c1790934c53eb1793c14fdb024e9d6b066109
Parents: ef6ba24
Author: John Vines <jvines@gmail.com>
Authored: Mon Nov 4 13:35:02 2013 -0500
Committer: John Vines <jvines@gmail.com>
Committed: Mon Nov 4 13:35:02 2013 -0500

----------------------------------------------------------------------
 .../accumulo/examples/simple/mapreduce/TokenFileWordCount.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/109c1790/examples/simple/src/main/java/org/apache/accumulo/examples/simple/mapreduce/TokenFileWordCount.java
----------------------------------------------------------------------
diff --git a/examples/simple/src/main/java/org/apache/accumulo/examples/simple/mapreduce/TokenFileWordCount.java
b/examples/simple/src/main/java/org/apache/accumulo/examples/simple/mapreduce/TokenFileWordCount.java
index 15a7765..674d793 100644
--- a/examples/simple/src/main/java/org/apache/accumulo/examples/simple/mapreduce/TokenFileWordCount.java
+++ b/examples/simple/src/main/java/org/apache/accumulo/examples/simple/mapreduce/TokenFileWordCount.java
@@ -66,7 +66,8 @@ public class TokenFileWordCount extends Configured implements Tool {
     String input = args[4];
     String tableName = args[5];
     
-    Job job = new Job(getConf(), TokenFileWordCount.class.getName());
+    Job job = Job.getInstance(getConf());
+    job.setJobName(TokenFileWordCount.class.getName());
     job.setJarByClass(this.getClass());
     
     job.setInputFormatClass(TextInputFormat.class);


Mime
View raw message