Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-7761

Failed to analyze stats with CounterStatsAggregator [SparkBranch]

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Spark
    • Labels:
      None

      Description

      CounterStatsAggregator analyze stats with MR counter, we need to implement another CounterStatsAggregator based on spark speficed counter to analyze table stats. Here is the error information:

      2014-08-17 23:46:34,436 ERROR stats.CounterStatsAggregator (CounterStatsAggregator.java:connect(51)) - Failed to get Job instance for null
      java.lang.ClassCastException: org.apache.hadoop.hive.ql.exec.spark.SparkTask cannot be cast to org.apache.hadoop.hive.ql.exec.mr.MapRedTask
              at org.apache.hadoop.hive.ql.stats.CounterStatsAggregator.connect(CounterStatsAggregator.java:46)
              at org.apache.hadoop.hive.ql.exec.StatsTask.createStatsAggregator(StatsTask.java:282)
              at org.apache.hadoop.hive.ql.exec.StatsTask.aggregateStats(StatsTask.java:142)
              at org.apache.hadoop.hive.ql.exec.StatsTask.execute(StatsTask.java:118)
              at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:161)
              at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:85)
              at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1534)
              at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1301)
              at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1113)
              at org.apache.hadoop.hive.ql.Driver.run(Driver.java:937)
              at org.apache.hadoop.hive.ql.Driver.run(Driver.java:927)
              at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:246)
              at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:198)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                chengxiang li Chengxiang Li
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: