如何在Bigtable查询中增加过滤器限制?

时间:2016-05-16 15:02:46

标签: google-cloud-platform google-cloud-bigtable

我创建了包含多个子过滤器的复杂过滤器(FilterList)。由于

,无法执行该过滤器的查询
BigtableOptionsFactory

我检查了Cloud Bigtable的配额和服务限制:

没有文件定义上述限制。我还检查了java.lang.RuntimeException: com.google.cloud.bigtable.grpc.io.IOExceptionWithStatus: Error in response stream at org.apache.hadoop.hbase.client.AbstractClientScanner$1.hasNext(AbstractClientScanner.java:97) at com.purato.common.dao.hbase.HbaseQuery.execute(HbaseQuery.java:82) Caused by: com.google.cloud.bigtable.grpc.io.IOExceptionWithStatus: Error in response stream at com.google.cloud.bigtable.grpc.scanner.ResultQueueEntry.getResponseOrThrow(ResultQueueEntry.java:67) at com.google.cloud.bigtable.grpc.scanner.ResponseQueueReader.getNextMergedRow(ResponseQueueReader.java:71) at com.google.cloud.bigtable.grpc.scanner.StreamingBigtableResultScanner.next(StreamingBigtableResultScanner.java:64) at com.google.cloud.bigtable.grpc.scanner.StreamingBigtableResultScanner.next(StreamingBigtableResultScanner.java:28) at com.google.cloud.bigtable.grpc.scanner.ResumingStreamingResultScanner.next(ResumingStreamingResultScanner.java:93) at com.google.cloud.bigtable.grpc.scanner.ResumingStreamingResultScanner.next(ResumingStreamingResultScanner.java:40) at com.google.cloud.bigtable.hbase.adapters.BigtableResultScannerAdapter$1.next(BigtableResultScannerAdapter.java:43) at org.apache.hadoop.hbase.client.AbstractClientScanner$1.hasNext(AbstractClientScanner.java:94) ... 39 more Caused by: com.google.bigtable.repackaged.io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Row filter exceeds maximum size of 4096 bytes at com.google.bigtable.repackaged.io.grpc.Status.asRuntimeException(Status.java:431) at com.google.cloud.bigtable.grpc.BigtableDataGrpcClient$5.onClose(BigtableDataGrpcClient.java:308) at com.google.bigtable.repackaged.io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$3.runInContext(ClientCallImpl.java:453) at com.google.bigtable.repackaged.io.grpc.internal.ContextRunnable.run(ContextRunnable.java:54) at com.google.bigtable.repackaged.io.grpc.internal.SerializingExecutor$TaskRunner.run(SerializingExecutor.java:154) ... 3 more ,但没有选择更改该限制。 我怎样才能避免这个限制?

堆栈追踪:

.panel-body {max-height:400px;overflow:scroll;}

1 个答案:

答案 0 :(得分:2)

你做不到。我刚检查过; 4096字节是过滤器长度的系统限制。

您需要找到一种缩短过滤器,设计查询或查看客户端后过滤的方法。