question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NoSuchMethodError when trying to query Bigtable from dataflow

See original GitHub issue

Dependencies:

<dependency>
    <groupId>com.google.cloud.bigtable</groupId>
    <artifactId>bigtable-hbase-beam</artifactId>
    <version>1.3.0</version>
</dependency>

<dependency>
  <groupId>com.google.cloud.bigtable</groupId>
  <artifactId>bigtable-hbase-1.x</artifactId>
  <version>1.3.0</version>
</dependency>

Code to query :

ResultScanner resultScanner = table.getScanner(scan);

Exception :

java.lang.NoSuchMethodError: com.google.bigtable.v2.ReadRowsRequest.getAppProfileId()Ljava/lang/String;
	at com.google.cloud.bigtable.grpc.BigtableDataGrpcClient.readFlatRows(BigtableDataGrpcClient.java:450)
	at com.google.cloud.bigtable.hbase.AbstractBigtableTable.getScanner(AbstractBigtableTable.java:293)
...

Maybe I need to add/update the dependencies?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sduskiscommented, Jun 21, 2018

We do some package renaming, which causes this problem. Please remove bigtable-hbase-1.x, and things will work.

0reactions
sduskiscommented, Jun 27, 2018

Another option is to create RowFilters directly instead of using the adapter.

I’m going to close this for now, since I don’t think that there’s anything actionable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NoSuchMethodError when trying to query Bigtable from dataflow
Code to query : ResultScanner resultScanner = table.getScanner(scan);. Exception : java.lang.NoSuchMethodError: com.google.bigtable.
Read more >
NoSuchMethodError occurs while trying to connect to Cloud ...
I set up a Cloud Dataflow Pipeline in accordance with this article: https://cloud.google.com/bigtable/docs/dataflow-hbase.
Read more >
spotify/scio - Gitter
Hello, I'm trying to use scio-bigtable to write data from a customInput to bigtable. I'm using sbt-pack to create a pack for running...
Read more >
Dataflow Connector for Bigtable - Google Cloud
Stay organized with collections Save and categorize content based on your preferences. The Cloud Dataflow connector for Cloud Bigtable makes it possible to...
Read more >
Bigtable and Dataflow: Database Monitoring Art (HBase Java ...
Load in large amounts of data to Bigtable using Cloud Dataflow; Monitor Bigtable instances and tables as your data is ingested; Query ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found