[英]How can I change the grpc.max_receive_message_length configuration in Google bigtable (nodejs)?
當我調用以下 get 方法時,我收到 8 RESOURCE_EXHAUSTED: Received message greater than max (5014229 vs. 4194304)。
const [ row ] = await table.row(key).get();
我試圖在創建 bigtable 時傳入 grpc.max_receive_message_length 但它不起作用。 任何人都知道如何覆蓋這個 4MB 限制?
const { Bigtable } = require('@google-cloud/bigtable');
const options = {
'grpc.max_send_message_length': -1,
'grpc.max_receive_message_length': -1,
'grpc.max_message_length': -1
}
const bigtable = new Bigtable({
projectId: dbConfig.projectId,
keyFilename: dbConfig.key,
options
});
使用較新版本的 bigtable 解決了問題。 正在使用“@google-cloud/bigtable”:“^2.3.2”,更改為“@google-cloud/bigtable”后可以工作:“^4.0.2”,
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.