Guanpx opened a new issue #5116:
URL: https://github.com/apache/hudi/issues/5116


   **Describe the problem you faced**
   BUCKET index upsert and bulk_insert does not compatible  or bulk_insert does 
not Support BUCKET index
   
   **To Reproduce**
   
   Steps to reproduce the behavior:
   
   1. write history data with bulk_insert  & BUCKET index into COW table, use 
flink
   2. flink write data realtime
   
   
   **Environment Description**
   
   * Hudi version : 0.11 (master in 2022-03-23 UTC+8)
   
   * Flink version : 1.14.3
   
   * Storage (HDFS/S3/GCS..) : HDFS
   
   * Running on Docker? (yes/no) : no
   
   
   **Additional context**
   hdfs file
   
![image](https://user-images.githubusercontent.com/29246713/159852337-2cd80e95-0be3-49f0-b55f-26770766e8a3.png)
   code file BucketIdentifier.java:65
   
![image](https://user-images.githubusercontent.com/29246713/159852450-f2a3e503-3cb6-4703-b2c5-8ccdc4b12726.png)
   
   **Stacktrace**
   
   ```
   java.lang.NumberFormatException: For input string: "465afb1f"
        at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Integer.parseInt(Integer.java:580)
        at java.lang.Integer.parseInt(Integer.java:615)
        at 
org.apache.hudi.index.bucket.BucketIdentifier.bucketIdFromFileId(BucketIdentifier.java:65)
        at 
org.apache.hudi.sink.BucketStreamWriteFunction.bootstrapIndex(BucketStreamWriteFunction.java:152)
        at 
org.apache.hudi.sink.BucketStreamWriteFunction.open(BucketStreamWriteFunction.java:87)
        at 
org.apache.flink.api.common.functions.util.FunctionUtils.openFunction(FunctionUtils.java:34)
        at 
org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator.open(AbstractUdfStreamOperator.java:100)
        at 
org.apache.flink.streaming.api.operators.ProcessOperator.open(ProcessOperator.java:56)
        at 
org.apache.flink.streaming.runtime.tasks.RegularOperatorChain.initializeStateAndOpenOperators(RegularOperatorChain.java:110)
        at 
org.apache.flink.streaming.runtime.tasks.StreamTask.restoreGates(StreamTask.java:711)
        at 
org.apache.flink.streaming.runtime.tasks.StreamTaskActionExecutor$1.call(StreamTaskActionExecutor.java:55)
        at 
org.apache.flink.streaming.runtime.tasks.StreamTask.restoreInternal(StreamTask.java:687)
        at 
org.apache.flink.streaming.runtime.tasks.StreamTask.restore(StreamTask.java:654)
        at 
org.apache.flink.runtime.taskmanager.Task.runWithSystemExitMonitoring(Task.java:958)
        at 
org.apache.flink.runtime.taskmanager.Task.restoreAndInvoke(Task.java:927)
        at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:766)
        at org.apache.flink.runtime.taskmanager.Task.run(Task.java:575)
        at java.lang.Thread.run(Thread.java:748)
   ```
   
   


-- 
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: [email protected]

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


Reply via email to