allenxyang commented on a change in pull request #4679:
URL: https://github.com/apache/hudi/pull/4679#discussion_r814511291



##########
File path: hudi-flink/src/main/java/org/apache/hudi/sink/utils/Pipelines.java
##########
@@ -189,21 +191,32 @@
   }
 
   public static DataStream<Object> hoodieStreamWrite(Configuration conf, int 
defaultParallelism, DataStream<HoodieRecord> dataStream) {
-    WriteOperatorFactory<HoodieRecord> operatorFactory = 
StreamWriteOperator.getFactory(conf);
-    return dataStream
+    if (OptionsResolver.isBucketIndexType(conf)) {

Review comment:
       After I used this patch, reported this error. I don't know why.
   
   Caused by: java.lang.RuntimeException: The timer service has not been 
initialized.
        at 
org.apache.flink.streaming.api.operators.AbstractStreamOperator.getInternalTimerService(AbstractStreamOperator.java:616)
 
        at 
org.apache.flink.streaming.api.operators.KeyedProcessOperator.open(KeyedProcessOperator.java:62)
        at 
org.apache.flink.streaming.runtime.tasks.OperatorChain.initializeStateAndOpenOperators(OperatorChain.java:428)
        at 
org.apache.flink.streaming.runtime.tasks.StreamTask.lambda$beforeInvoke$2(StreamTask.java:555)
 
        at 
org.apache.flink.streaming.runtime.tasks.StreamTaskActionExecutor$1.runThrowing(StreamTaskActionExecutor.java:50)
 
        at 
org.apache.flink.streaming.runtime.tasks.StreamTask.beforeInvoke(StreamTask.java:545)
        at 
org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:585) 
        at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:765)
        at org.apache.flink.runtime.taskmanager.Task.run(Task.java:580)




-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to