admin管理员组文章数量:1026674
I am using go lang to connect to gcp bigtable. I am trying to use the data boost profile for this. I am using the latest version of go and Google cloud bigtable. When I read rows from bigtable I get error like client needs to be updated.
When I check the ineligibility metrics in gcp console I see the error like outdated client.
I added the dependency as:
cloud.google/go/bigtable v1.33.0
go version is 1.23.3
My sample code is:
func main() {
projectID := "project-id"
instanceID := "instance-id"
tableID := "table-id"
ctx := context.Background()
client, err := bigtable.NewClientWithConfig(ctx,
projectID, instanceID, bigtable.ClientConfig{
App profile: "data-boost-profile"
})
if err != nil {`enter code here`
log.Fatalf("Failed to create Bigtable client: %v", err)
}
// Open the table.
table := client.Open(tableID)
err = table.ReadRows(ctx, bigtable.PrefixRange(""), func(row bigtable.Row) bool {
log.Printf("Row key: %s", row.Key())
for family, items := range row {
log.Printf("Family: %s", family)
for _, item := range items {
log.Printf(" Column: %s, Value: %s, Timestamp: %d",
item.Column, string(item.Value), item.Timestamp)
}
}
return true // Continue reading rows.
})
if err != nil {
log.Fatalf("Failed to read rows: %v", err)
}
}
Exact error I see in my console is below: "rpc error: code=Unimplemented desc= Client does not support Data boost yet. Please update your client."
I am not sure if data boost is not yet supported for go lang.
I try to use go lang client library for connecting to gcp bigtable and read rows. I need to read rows using the data boost profile.
I am using go lang to connect to gcp bigtable. I am trying to use the data boost profile for this. I am using the latest version of go and Google cloud bigtable. When I read rows from bigtable I get error like client needs to be updated.
When I check the ineligibility metrics in gcp console I see the error like outdated client.
I added the dependency as:
cloud.google/go/bigtable v1.33.0
go version is 1.23.3
My sample code is:
func main() {
projectID := "project-id"
instanceID := "instance-id"
tableID := "table-id"
ctx := context.Background()
client, err := bigtable.NewClientWithConfig(ctx,
projectID, instanceID, bigtable.ClientConfig{
App profile: "data-boost-profile"
})
if err != nil {`enter code here`
log.Fatalf("Failed to create Bigtable client: %v", err)
}
// Open the table.
table := client.Open(tableID)
err = table.ReadRows(ctx, bigtable.PrefixRange(""), func(row bigtable.Row) bool {
log.Printf("Row key: %s", row.Key())
for family, items := range row {
log.Printf("Family: %s", family)
for _, item := range items {
log.Printf(" Column: %s, Value: %s, Timestamp: %d",
item.Column, string(item.Value), item.Timestamp)
}
}
return true // Continue reading rows.
})
if err != nil {
log.Fatalf("Failed to read rows: %v", err)
}
}
Exact error I see in my console is below: "rpc error: code=Unimplemented desc= Client does not support Data boost yet. Please update your client."
I am not sure if data boost is not yet supported for go lang.
I try to use go lang client library for connecting to gcp bigtable and read rows. I need to read rows using the data boost profile.
Share Improve this question edited Nov 17, 2024 at 6:57 Joshy Joseph asked Nov 16, 2024 at 16:45 Joshy JosephJoshy Joseph 192 bronze badges 1- Please provide a minimal repro of your issue so that others may try to replicate the behavior. "I get error like" is unhelpful. Please describe (using commands) exactly what you did and the error that you received. – DazWilkin Commented Nov 16, 2024 at 17:34
1 Answer
Reset to default 0Data Boost is currently in preview and Go client is not yet supported.
I am using go lang to connect to gcp bigtable. I am trying to use the data boost profile for this. I am using the latest version of go and Google cloud bigtable. When I read rows from bigtable I get error like client needs to be updated.
When I check the ineligibility metrics in gcp console I see the error like outdated client.
I added the dependency as:
cloud.google/go/bigtable v1.33.0
go version is 1.23.3
My sample code is:
func main() {
projectID := "project-id"
instanceID := "instance-id"
tableID := "table-id"
ctx := context.Background()
client, err := bigtable.NewClientWithConfig(ctx,
projectID, instanceID, bigtable.ClientConfig{
App profile: "data-boost-profile"
})
if err != nil {`enter code here`
log.Fatalf("Failed to create Bigtable client: %v", err)
}
// Open the table.
table := client.Open(tableID)
err = table.ReadRows(ctx, bigtable.PrefixRange(""), func(row bigtable.Row) bool {
log.Printf("Row key: %s", row.Key())
for family, items := range row {
log.Printf("Family: %s", family)
for _, item := range items {
log.Printf(" Column: %s, Value: %s, Timestamp: %d",
item.Column, string(item.Value), item.Timestamp)
}
}
return true // Continue reading rows.
})
if err != nil {
log.Fatalf("Failed to read rows: %v", err)
}
}
Exact error I see in my console is below: "rpc error: code=Unimplemented desc= Client does not support Data boost yet. Please update your client."
I am not sure if data boost is not yet supported for go lang.
I try to use go lang client library for connecting to gcp bigtable and read rows. I need to read rows using the data boost profile.
I am using go lang to connect to gcp bigtable. I am trying to use the data boost profile for this. I am using the latest version of go and Google cloud bigtable. When I read rows from bigtable I get error like client needs to be updated.
When I check the ineligibility metrics in gcp console I see the error like outdated client.
I added the dependency as:
cloud.google/go/bigtable v1.33.0
go version is 1.23.3
My sample code is:
func main() {
projectID := "project-id"
instanceID := "instance-id"
tableID := "table-id"
ctx := context.Background()
client, err := bigtable.NewClientWithConfig(ctx,
projectID, instanceID, bigtable.ClientConfig{
App profile: "data-boost-profile"
})
if err != nil {`enter code here`
log.Fatalf("Failed to create Bigtable client: %v", err)
}
// Open the table.
table := client.Open(tableID)
err = table.ReadRows(ctx, bigtable.PrefixRange(""), func(row bigtable.Row) bool {
log.Printf("Row key: %s", row.Key())
for family, items := range row {
log.Printf("Family: %s", family)
for _, item := range items {
log.Printf(" Column: %s, Value: %s, Timestamp: %d",
item.Column, string(item.Value), item.Timestamp)
}
}
return true // Continue reading rows.
})
if err != nil {
log.Fatalf("Failed to read rows: %v", err)
}
}
Exact error I see in my console is below: "rpc error: code=Unimplemented desc= Client does not support Data boost yet. Please update your client."
I am not sure if data boost is not yet supported for go lang.
I try to use go lang client library for connecting to gcp bigtable and read rows. I need to read rows using the data boost profile.
Share Improve this question edited Nov 17, 2024 at 6:57 Joshy Joseph asked Nov 16, 2024 at 16:45 Joshy JosephJoshy Joseph 192 bronze badges 1- Please provide a minimal repro of your issue so that others may try to replicate the behavior. "I get error like" is unhelpful. Please describe (using commands) exactly what you did and the error that you received. – DazWilkin Commented Nov 16, 2024 at 17:34
1 Answer
Reset to default 0Data Boost is currently in preview and Go client is not yet supported.
本文标签:
版权声明:本文标题:google cloud platform - Outdated client error while connecting to gcp bigtable using data boost profile with go - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745651090a2161322.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论