Skip to content

Commit

Permalink
[HUDI-1488] Fix Test Case Failure in TestHBaseIndex (#2365)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhiwei authored Dec 23, 2020
1 parent 01ad449 commit 38b9264
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import org.apache.hudi.client.SparkRDDWriteClient;
import org.apache.hudi.client.WriteStatus;
import org.apache.hudi.client.common.HoodieSparkEngineContext;
import org.apache.hudi.common.model.EmptyHoodieRecordPayload;
import org.apache.hudi.common.model.HoodieKey;
import org.apache.hudi.common.model.HoodieRecord;
Expand Down Expand Up @@ -119,6 +120,8 @@ public static void init() throws Exception {
public void setUp() throws Exception {
hadoopConf = jsc().hadoopConfiguration();
hadoopConf.addResource(utility.getConfiguration());
// reInit the context here to keep the hadoopConf the same with that in this class
context = new HoodieSparkEngineContext(jsc());
metaClient = getHoodieMetaClient(hadoopConf, basePath());
dataGen = new HoodieTestDataGenerator();
}
Expand Down

0 comments on commit 38b9264

Please sign in to comment.