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

Mapreduce job fails to run after configuring multiple namespaces [HDFS Federation]

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 0.20.2
    • None
    • mrv1
    • None
    • 2 Standalone Desktop with 360Gb HDD and 4GB RAM - Acting as two Namenodes
      2 Virtual Machine with 60GB HDD and 1GB RAM - Acting as Job tracker and zookeeper

    Description

      I am having setup of 4 nodes with following details -

      Standalone Desktop-1 -> NameNode1,Tasktracker,Zookeeper,Jobtracker,datanode,HMaster

      Standalone Desktop-2 -> NameNode2,Tasktracker,datanode.RegionServer

      Virtual Machine-1 -> Namenode3,Datanode,Tasktracker

      Virtual Machine-2 -> Namenode4,Datanode,Tasktracker

      I have configured HDFS Federation with following name service -
      a) nameservice1
      b) oss-hadoop-nameservice

      While executing Mapreduce job I am getting following error -

      ================================================================
      -bash-4.1$ id
      uid=496(hdfs) gid=496(hdfs) groups=496(hdfs),497(hadoop)
      -bash-4.1$ hadoop jar /usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar wordcount /hbase/install.log.syslog /hbase/testing
      12/10/10 12:30:21 ERROR security.UserGroupInformation: PriviledgedActionException as:hdfs (auth:SIMPLE) cause:java.io.IOException: viewfs://cluster6/
      java.io.IOException: viewfs://cluster6/
      at org.apache.hadoop.fs.viewfs.InodeTree.<init>(InodeTree.java:338)
      at org.apache.hadoop.fs.viewfs.ViewFileSystem$1.<init>(ViewFileSystem.java:178)
      at org.apache.hadoop.fs.viewfs.ViewFileSystem.initialize(ViewFileSystem.java:178)
      at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2150)
      at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:80)
      at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2184)
      at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2166)
      at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:302)
      at org.apache.hadoop.fs.Path.getFileSystem(Path.java:194)
      at org.apache.hadoop.mapreduce.JobSubmissionFiles.getStagingDir(JobSubmissionFiles.java:103)
      at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:850)
      at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:844)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:396)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1232)
      at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:844)
      at org.apache.hadoop.mapreduce.Job.submit(Job.java:481)
      at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:511)
      at org.apache.hadoop.examples.WordCount.main(WordCount.java:67)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:72)
      at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:144)
      at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:64)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:208)
      -bash-4.1$
      ================================================================

      Attachments

        Activity

          People

            Unassigned Unassigned
            sagar.shimpi Sagar Shimpi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: