satishkotha commented on a change in pull request #2263:
URL: https://github.com/apache/hudi/pull/2263#discussion_r545553305



##########
File path: 
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/config/HoodieClusteringConfig.java
##########
@@ -0,0 +1,165 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hudi.config;
+
+import org.apache.hudi.common.config.DefaultHoodieConfig;
+
+import java.io.File;
+import java.io.FileReader;
+import java.io.IOException;
+import java.util.Properties;
+
+/**
+ * Clustering specific configs.
+ */
+public class HoodieClusteringConfig extends DefaultHoodieConfig {
+
+  public static final String ASYNC_CLUSTERING_ENABLED = 
"hoodie.clustering.enabled";
+  public static final String DEFAULT_ASYNC_CLUSTERING_ENABLED = "false";
+
+  public static final String SCHEDULE_CLUSTERING_STRATEGY_CLASS = 
"hoodie.clustering.schedule.strategy.class";
+  public static final String DEFAULT_SCHEDULE_CLUSTERING_STRATEGY_CLASS =
+      
"org.apache.hudi.client.clustering.schedule.strategy.SparkBoundedDayBasedScheduleClusteringStrategy";
+
+  public static final String RUN_CLUSTERING_STRATEGY_CLASS = 
"hoodie.clustering.run.strategy.class";
+  public static final String DEFAULT_RUN_CLUSTERING_STRATEGY_CLASS =
+      
"org.apache.hudi.client.clustering.run.strategy.SparkBulkInsertBasedRunClusteringStrategy";
+
+  // Turn on inline clustering - after few commits an inline clustering will 
be run
+  public static final String INLINE_CLUSTERING_PROP = 
"hoodie.clustering.inline";
+  private static final String DEFAULT_INLINE_CLUSTERING = "false";
+
+  public static final String INLINE_CLUSTERING_NUM_COMMIT_PROP = 
"hoodie.clustering.inline.num.commits";

Review comment:
       Added

##########
File path: 
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/table/action/commit/SparkBulkInsertHelper.java
##########
@@ -59,25 +58,39 @@ public static SparkBulkInsertHelper newInstance() {
   }
 
   @Override
-  public HoodieWriteMetadata<JavaRDD<WriteStatus>> 
bulkInsert(JavaRDD<HoodieRecord<T>> inputRecords,
-                                                              String 
instantTime,
-                                                              HoodieTable<T, 
JavaRDD<HoodieRecord<T>>, JavaRDD<HoodieKey>, JavaRDD<WriteStatus>> table,
-                                                              
HoodieWriteConfig config,
-                                                              
BaseCommitActionExecutor<T, JavaRDD<HoodieRecord<T>>, JavaRDD<HoodieKey>, 
JavaRDD<WriteStatus>, R> executor,
-                                                              boolean 
performDedupe,
-                                                              
Option<BulkInsertPartitioner<T>> userDefinedBulkInsertPartitioner) {
+  public HoodieWriteMetadata<JavaRDD<WriteStatus>> bulkInsert(final 
JavaRDD<HoodieRecord<T>> inputRecords, final String instantTime, final 
HoodieTable<T, JavaRDD<HoodieRecord<T>>, JavaRDD<HoodieKey>, 
JavaRDD<WriteStatus>> table, final HoodieWriteConfig config, final 
BaseCommitActionExecutor<T, JavaRDD<HoodieRecord<T>>, JavaRDD<HoodieKey>, 
JavaRDD<WriteStatus>, R> executor, final boolean performDedupe, final 
Option<BulkInsertPartitioner<T>> userDefinedBulkInsertPartitioner) {

Review comment:
       Done




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to