Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 0.22.0
    • Fix Version/s: None
    • Component/s: client
    • Labels:
      None
    • Environment:

      Suse Linux Java 6u15

      Description

      Getting a stack trace on a VM-hosted cluster with an empty queue. Thought maybe it was the -verbose option, but no, remove that and I still see it.

      java org.apache.hadoop.mapred.JobQueueClient -list -showjobs -verbose
        [sshexec] 10/03/10 13:56:21 INFO security.Groups: Group mapping impl=org.apache.hadoop.security.ShellBasedUnixGroupsMapping; cacheTimeout=300000
        [sshexec] 10/03/10 13:56:21 INFO jvm.JvmMetrics: Initializing JVM Metrics with processName=JobTracker, sessionId=
        [sshexec] Exception in thread "main" 
        [sshexec] java.lang.NullPointerException
        [sshexec] 	at org.apache.hadoop.mapred.JobClient.getJobQueueInfoArray(JobClient.java:921)
        [sshexec] 	at org.apache.hadoop.mapred.JobClient.getRootQueues(JobClient.java:937)
        [sshexec] 	at org.apache.hadoop.mapred.JobQueueClient.displayQueueList(JobQueueClient.java:142)
        [sshexec] 	at org.apache.hadoop.mapred.JobQueueClient.run(JobQueueClient.java:96)
        [sshexec] 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
        [sshexec] 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
        [sshexec] 	at org.apache.hadoop.mapred.JobQueueClient.main(JobQueueClient.java:232)
      
      
      

        Activity

        Hide
        steve_l added a comment -

        Once I submit one job, this works

          [sshexec] 10/03/10 14:04:36 WARN conf.Configuration: DEPRECATED: hadoop-site.xml found in the classpath. Usage of hadoop-site.xml is deprecated. Instead use core-site.xml, mapred-site.xml and hdfs-site.xml to override properties of core-default.xml, mapred-default.xml and hdfs-default.xml respectively
          [sshexec] 10/03/10 14:04:37 INFO security.Groups: Group mapping impl=org.apache.hadoop.security.ShellBasedUnixGroupsMapping; cacheTimeout=300000
          [sshexec] Queue Name : default 
          [sshexec] Queue State : running 
          [sshexec] Scheduling Info : N/A 
          [sshexec] ======================
        

        Assumption: until that first job is sent in, you can't ask for queue info

        Show
        steve_l added a comment - Once I submit one job, this works [sshexec] 10/03/10 14:04:36 WARN conf.Configuration: DEPRECATED: hadoop-site.xml found in the classpath. Usage of hadoop-site.xml is deprecated. Instead use core-site.xml, mapred-site.xml and hdfs-site.xml to override properties of core- default .xml, mapred- default .xml and hdfs- default .xml respectively [sshexec] 10/03/10 14:04:37 INFO security.Groups: Group mapping impl=org.apache.hadoop.security.ShellBasedUnixGroupsMapping; cacheTimeout=300000 [sshexec] Queue Name : default [sshexec] Queue State : running [sshexec] Scheduling Info : N/A [sshexec] ====================== Assumption: until that first job is sent in, you can't ask for queue info
        Hide
        Harsh J added a comment -

        No longer an issue with recent releases (for the described problem).

        P.s. Running the command in local framework/runner mode though, does present the NPE.

        Show
        Harsh J added a comment - No longer an issue with recent releases (for the described problem). P.s. Running the command in local framework/runner mode though, does present the NPE.

          People

          • Assignee:
            Unassigned
            Reporter:
            Steve Loughran
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development