Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.0.4
-
None
-
None
-
None
Description
Noticed the following in the 1.x branches:
public class MiniMRClientClusterFactory { public static MiniMRClientCluster create(Class<?> caller, int noOfNMs, Configuration conf) throws IOException { FileSystem fs = FileSystem.getLocal(new Configuration()); MiniMRCluster miniMRCluster = new MiniMRCluster(noOfNMs, fs.getUri() .toString(), 1); return new MiniMRClusterAdapter(miniMRCluster); } }
The 2.x branches allow you to set what hadoop configuration to use (and which DFS cluster to connect to). For instance, in the Sqoop project we are using the MiniDFSCluster in conjunction with the MiniMRCluster.