Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-6846

fix a bug of consistent bucket index clustering

    XMLWordPrintableJSON

Details

    Description

      Error Stack

      23/09/07 15:43:05 INFO [shutdown-hook-0] ApplicationMaster: Unregistering ApplicationMaster with FAILED (diag message: User class threw exception: org.apache.spark.SparkException: Job aborted due to stage failure: Task 10 in stage 2.0 failed 4 times, most recent failure: Lost task 10.3 in stage 2.0 (TID 1013) (executor 42): java.lang.IllegalArgumentException: At least two file groups should be provided for merging
      	at org.apache.hudi.common.util.ValidationUtils.checkArgument(ValidationUtils.java:40)
      	at org.apache.hudi.index.bucket.ConsistentBucketIdentifier.mergeBucket(ConsistentBucketIdentifier.java:115)
      	at org.apache.hudi.client.clustering.plan.strategy.SparkConsistentBucketClusteringPlanStrategy.buildMergeClusteringGroup(SparkConsistentBucketClusteringPlanStrategy.java:279)
      	at org.apache.hudi.client.clustering.plan.strategy.SparkConsistentBucketClusteringPlanStrategy.buildClusteringGroupsForPartition(SparkConsistentBucketClusteringPlanStrategy.java:142)
      	at org.apache.hudi.table.action.cluster.strategy.PartitionAwareClusteringPlanStrategy.lambda$generateClusteringPlan$4e6aac78$1(PartitionAwareClusteringPlanStrategy.java:95)
      	at org.apache.hudi.client.common.HoodieSparkEngineContext.lambda$flatMap$7d470b86$1(HoodieSparkEngineContext.java:144)
      	at org.apache.spark.api.java.JavaRDDLike.$anonfun$flatMap$1(JavaRDDLike.scala:125)
      	at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
      	at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
      	at scala.collection.Iterator.foreach(Iterator.scala:941)
      	at scala.collection.Iterator.foreach$(Iterator.scala:941)
      	at scala.collection.AbstractIterator.foreach(Iterator.scala:1429)
      	at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:62)
      	at scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:53)
      	at scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:105)
      	at scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:49)
      	at scala.collection.TraversableOnce.to(TraversableOnce.scala:315)
      	at scala.collection.TraversableOnce.to$(TraversableOnce.scala:313)
      	at scala.collection.AbstractIterator.to(Iterator.scala:1429)
      	at scala.collection.TraversableOnce.toBuffer(TraversableOnce.scala:307)
      	at scala.collection.TraversableOnce.toBuffer$(TraversableOnce.scala:307)
      	at scala.collection.AbstractIterator.toBuffer(Iterator.scala:1429)
      	at scala.collection.TraversableOnce.toArray(TraversableOnce.scala:294)
      	at scala.collection.TraversableOnce.toArray$(TraversableOnce.scala:288)
      	at scala.collection.AbstractIterator.toArray(Iterator.scala:1429)
      	at org.apache.spark.rdd.RDD.$anonfun$collect$2(RDD.scala:1030)
      	at org.apache.spark.SparkContext.$anonfun$runJob$5(SparkContext.scala:2255)
      	at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:90)
      	at org.apache.spark.scheduler.Task.run(Task.scala:131)
      	at org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$3(Executor.scala:497)
      	at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1509)
      	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:500)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hbgstc123 HBG
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: