使用Cloud Dataflow写入BigTable时发生错误

时间:2019-03-13 10:27:06

标签: java google-cloud-platform google-cloud-dataflow treemap

将大量记录写入BigTable时出现以下错误。

java.lang.NullPointerException
    at java.util.TreeMap.getEntry(TreeMap.java:347)
    at java.util.TreeMap.get(TreeMap.java:278)
    at com.google.cloud.bigtable.beam.AbstractCloudBigtableTableDoFn.logRetriesExhaustedWithDetailsException(AbstractCloudBigtableTableDoFn.java:58)
    at com.google.cloud.bigtable.beam.AbstractCloudBigtableTableDoFn.logExceptions(AbstractCloudBigtableTableDoFn.java:107)
    at com.google.cloud.bigtable.beam.CloudBigtableIO$BufferedMutatorDoFn$1.onException(CloudBigtableIO.java:840)
    at com.google.cloud.bigtable.hbase.BigtableBufferedMutator.handleExceptions(BigtableBufferedMutator.java:146)
    at com.google.cloud.bigtable.hbase.BigtableBufferedMutator.mutate(BigtableBufferedMutator.java:135)
    at com.google.cloud.bigtable.beam.CloudBigtableIO$CloudBigtableSingleTableBufferedWriteFn.processElement(CloudBigtableIO.java:877)

我认为这与TreeMap类的实现有关。仅当我增加从GCS读取的记录数时,才会发生这种情况。 我该如何解决?

0 个答案:

没有答案