lamber-ken edited a comment on issue #1083: [SUPPORT] getting error in 
KafkaOffsetGen,
URL: https://github.com/apache/incubator-hudi/issues/1083#issuecomment-563279470
 
 
   @Neo2007 , sorry for delay. You can use add param `--checkpoint 
topic_account_hudi,0:0`, it will work through. By the way, if topic 
`topic_account_hudi` has more than one partition, the param will like 
`--checkpoint topic_account_hudi,0:0,1:0...`
   
   The reason for the null pointer exception is `earliestOffsets` don't 
contains the key `sbx-frb1-dell-onep-account`, so when try to get offset from 
`earliestOffsets`, it causes NPE.
   ```
   boolean checkpointOffsetReseter = checkpointOffsets.entrySet()
           .stream()
           .anyMatch(offset -> offset.getValue().offset() < 
earliestOffsets.get(offset.getKey()).offset());
   ```
   
   
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to