Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-3825

Stats collection needs to be changed for hadoop2 (with auto local mode)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.13.0
    • Fix Version/s: 0.13.0
    • Component/s: None
    • Labels:
      None

      Description

      With auto local mode, hadoop 2 getJob, getMapTaskReports, getReduceTaskReports api cause NumberFormatException with stack similar to following-
      (I have also noticed that getMapTaskReports causes memory leak and OOMs for long running jobs as hadoop 2 map task reports are quite bulky, but that is a separate issue)

      Caused by: java.lang.NumberFormatException: For input string: "local154006779"
              at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
              at java.lang.Long.parseLong(Long.java:410)
              at java.lang.Long.parseLong(Long.java:468)
              at org.apache.hadoop.mapreduce.JobID.toClusterTimeStamp(JobID.java:172)
              at org.apache.hadoop.mapreduce.JobID.getAppId(JobID.java:167)
              at org.apache.hadoop.mapreduce.TypeConverter.toYarn(TypeConverter.java:79)
              at org.apache.hadoop.mapred.ClientServiceDelegate.<init>(ClientServiceDelegate.java:114)
              at org.apache.hadoop.mapred.ClientCache.getClient(ClientCache.java:68)
              at org.apache.hadoop.mapred.YARNRunner.getJobStatus(YARNRunner.java:550)
              at org.apache.hadoop.mapreduce.Cluster.getJob(Cluster.java:182)
              at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:586)
              at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:584)
              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:1478)
              at org.apache.hadoop.mapred.JobClient.getJobUsingCluster(JobClient.java:584)
              at org.apache.hadoop.mapred.JobClient.getTaskReports(JobClient.java:638)
              at org.apache.hadoop.mapred.JobClient.getMapTaskReports(JobClient.java:632)
              at org.apache.pig.tools.pigstats.mapreduce.MRJobStats.addMapReduceStatistics(MRJobStats.java:318)
              at org.apache.pig.tools.pigstats.mapreduce.MRPigStatsUtil.addSuccessJobStats(MRPigStatsUtil.java:308)
              at org.apache.pig.tools.pigstats.mapreduce.MRPigStatsUtil.accumulateStats(MRPigStatsUtil.java:240)
              at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:363)
              at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.launchPig(HExecutionEngine.java:374)
              ... 16 more
      

        Attachments

        1. PIG-3825.patch
          7 kB
          Aniket Mokashi

          Issue Links

            Activity

              People

              • Assignee:
                aniket486 Aniket Mokashi
                Reporter:
                aniket486 Aniket Mokashi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: