Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-5590

MiniMRClientClusterFactory in Hadoop 1.x forces local mode

    XMLWordPrintableJSON

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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            abec Abraham Elmahrek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: