accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r1482445 - /accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/mock/MockInstance.java
Date Tue, 14 May 2013 16:46:37 GMT
Author: vines
Date: Tue May 14 16:46:36 2013
New Revision: 1482445

URL: http://svn.apache.org/r1482445
Log:
ACCUMULO-974 - Applying Tim Reardon's patch for Mock


Modified:
    accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/mock/MockInstance.java

Modified: accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/mock/MockInstance.java
URL: http://svn.apache.org/viewvc/accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/mock/MockInstance.java?rev=1482445&r1=1482444&r2=1482445&view=diff
==============================================================================
--- accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/mock/MockInstance.java
(original)
+++ accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/mock/MockInstance.java
Tue May 14 16:46:36 2013
@@ -34,6 +34,7 @@ import org.apache.accumulo.core.conf.Acc
 import org.apache.accumulo.core.util.ByteBufferUtil;
 import org.apache.accumulo.core.util.CachedConfiguration;
 import org.apache.accumulo.core.util.TextUtil;
+import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.fs.FileSystem;
 import org.apache.hadoop.io.Text;
 
@@ -62,6 +63,9 @@ public class MockInstance implements Ins
   
   static FileSystem getDefaultFileSystem() {
     try {
+      Configuration conf = CachedConfiguration.getInstance();
+      conf.set("fs.file.impl", "org.apache.hadoop.fs.LocalFileSystem");
+      conf.set("fs.default.name", "file:///");
       return FileSystem.get(CachedConfiguration.getInstance());
     } catch (IOException ex) {
       throw new RuntimeException(ex);



Mime
View raw message