Code Monkey home page Code Monkey logo

Comments (5)

sduskis avatar sduskis commented on June 24, 2024

This looks like a subtle dependency issue. Are you using maven? If so, can you post your dependencies?

from java-bigtable-hbase.

yosssi avatar yosssi commented on June 24, 2024

@sduskis Thank you for your reply. Yes, I'm using Maven. Here are my dependencies:

<dependencies>
  <dependency>
    <groupId>com.google.cloud.dataflow</groupId>
    <artifactId>google-cloud-dataflow-java-sdk-all</artifactId>
    <version>1.3.0</version>
  </dependency>
  <dependency>
    <groupId>com.google.cloud.bigtable</groupId>
    <artifactId>bigtable-hbase-dataflow</artifactId>
    <version>0.2.2</version>
  </dependency>
  <dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>3.8.1</version>
    <scope>test</scope>
  </dependency>
</dependencies>

from java-bigtable-hbase.

sduskis avatar sduskis commented on June 24, 2024

This problem is the same as: #613

I think that the problem here is that both Dataflow and Bigtable include io.grpc. Bigtable uses the shading plugin and changes package names, but didn't change the io.grpc package names, as described here: #582

Your best bet to get around the problem is to use the 0.2.3-SNAPSHOT version of bigtable-hbase. You'll have to add the following in your pom.xml to be able to use SNAPSHOTs:

  <repositories>
    <repository>
      <id>snapshots-repo</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
      <releases><enabled>false</enabled></releases>
      <snapshots><enabled>true</enabled></snapshots>
    </repository>
  </repositories>

We'll release an official version ASAP in the new year.

from java-bigtable-hbase.

yosssi avatar yosssi commented on June 24, 2024

@sduskis Thanks a lot! I could put records to Cloud Bigtable successfully by using 0.2.3-SNAPSHOT version of bigtable-hbase-dataflow.

I'm looking forward to getting an official version.

from java-bigtable-hbase.

sduskis avatar sduskis commented on June 24, 2024

As per this stack overflow thread, this issue is resolved in 0.2.3: http://stackoverflow.com/questions/34495233/nosuchmethoderror-occurs-while-trying-to-connect-to-cloud-bigtable-from-a-cloud/34499757#34499757

from java-bigtable-hbase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.