GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Build out some integration with Cloud Bigtable · Issue #872 · googleapis/google-cloud-python

Build out some integration with Cloud Bigtable #872

New issue
Copy link
New issue
Copy link
Closed
Closed
Build out some integration with Cloud Bigtable#872
Copy link
Assignees
jgeewax
Labels
api: bigtableIssues related to the Bigtable API.
Milestone
Bigtable Beta

Description

@jgeewax
jgeewax
opened on May 12, 2015
Issue body actions

We want to make users of Happybase "just work", so...some ideas:

Option 1: A wrapped import module

from gcloud.bigtable import happybase

Option 2: Some sort of monkey patching?

from gcloud import bigtable
import happybase
happybase = bigtable.monkey_patch(happybase)

Activity

Next
  1. jgeewax
    added
    api: bigtableIssues related to the Bigtable API.
    on May 12, 2015
  2. jgeewax
    added this to the Bigtable Beta milestone on May 12, 2015
  3. jgeewax commented on May 12, 2015

    @jgeewax
    jgeewax
    on May 12, 2015
    ContributorAuthor
    More actions

    /cc @maxluebbe

  4. jgeewax commented on May 12, 2015

    @jgeewax
    jgeewax
    on May 12, 2015
    ContributorAuthor
    More actions

    /cc @dhermes @tseaver : Max might have some spare cycles to work on this, figured you guys should chat.

  5. dhermes commented on May 14, 2015

    @dhermes
    dhermes
    on May 14, 2015
    Contributor
    More actions

    Relevant docs:
    https://happybase.readthedocs.org/en/latest/
    https://cloud.google.com/bigtable/docs/

  6. tseaver commented on May 28, 2015

    @tseaver
    tseaver
    on May 28, 2015
    Contributor
    More actions

    ISTM that monkey-patching the happybase third-party module would be a poor choice. I think we need to think of this as "write a happybase API emulation layer" instead (which may or may not itself even use the real happybase code).

  7. dhermes commented on May 28, 2015

    @dhermes
    dhermes
    on May 28, 2015
    Contributor
    More actions

    Can you elaborate? Why is it a bad idea? (I have yet to look at the happybase code/docs.)

  8. tseaver commented on May 28, 2015

    @tseaver
    tseaver
    on May 28, 2015
    Contributor
    More actions

    I think our goal is that they should be able to port scripts easily (ideally, just changing import happytable to from gcloud.bigtable import happytable and adjusting the connection parameters). I don't see interfering with the actual happytable module's internals as a useful way to approach that goal. For instance, users of gcloud.bigtable might need to interact with a real happybase/Thrift backend (e.g., to move or compare data between it and the bigtable dataset).

  9. jgeewax commented on May 28, 2015

    @jgeewax
    jgeewax
    on May 28, 2015
    ContributorAuthor
    More actions

    I agree that there may be times where someone would want to talk to Cloud Bigtable and HBase at the same time, so monkey-patching happybase sounds like we'd screw over those multi-tenant situations.

    Maybe there's a way to from gcloud import bigtable and then happybase_compatible_client = bigtable.get_happybase_client() which uses the real happybase code, but swaps out a connection of sorts at the lower level...

  10. tseaver commented on May 28, 2015

    @tseaver
    tseaver
    on May 28, 2015
    Contributor
    More actions

    The gcloud.bigtable docs say:

    Cloud Bigtable works with Hadoop 2.4 and higher and is interface compatible with Apache HBase 1.0.

    If that means that it exports the same REST API as HBase / Thrift, then maybe we don't have to do much to enable happybase, beyond ensuring that we set the connection up with gcloud-relevant credentials.

  11. jgeewax commented on May 28, 2015

    @jgeewax
    jgeewax
    on May 28, 2015
    ContributorAuthor
    More actions

    This is the interesting piece. It is not wire-protocol compatible. That is -- it doesn't speak Thrift (AFAIK). Instead, they made the Java code compatible, and swapped out the thing that does serialization and sending of requests underneath.

    I think @maxluebbe can comment more to confirm.

  12. dhermes commented on May 29, 2015

    @dhermes
    dhermes
    on May 29, 2015
    Contributor
    More actions

    Yeah that one is important. I was under the impression from @jgeewax previous comments that the web APIs were the same / close cousins.

  13. brianolson commented on Jun 2, 2015

    @brianolson
    brianolson
    on Jun 2, 2015
    More actions

    The Java "HBase" client to Bigtable appears to be an emulation layer. A Python client should be built on the same protobuf rpc interface as that:
    https://github.com/GoogleCloudPlatform/cloud-bigtable-client/tree/master/bigtable-protos/src/main/proto/google

    I'd imagine that Python client having a native mode that just handles the proto-rpc; and then there could be a happybase emulation layer on top of that.

  14. maxluebbe commented on Jun 2, 2015

    @maxluebbe
    maxluebbe
    on Jun 2, 2015
    More actions

    Sorry have been OOO. Some clarifications.

    1. Additional work item is modernizing Happybase to 1.0 HBase API.
    2. Cloud Bigtable does not support Thrift/Rest interfaces. Part of the work that needs to be done here is decoupling the thrift parts of happybase from the interface provided to the user, so that we can drop in gRPC in place of Thrift.
  15. jgeewax commented on Jun 2, 2015

    @jgeewax
    jgeewax
    on Jun 2, 2015
    ContributorAuthor
    More actions

    gRPC or Protobuf over HTTP 1.0?

    gRPC is not possible right now given the installation process (we need to keep our install to pip install gcloud and can't ask people to do a bunch of Makefile madness to use our library).

  16. 76 remaining items

  17. lesv commented on Jul 23, 2015

    @lesv
    lesv
    on Jul 23, 2015
    More actions

    @dhermes @jgeewax The Cluster Admin API is definitely not supposed to be enabled yet. The cluster proto was open sourced for some testing reasons, but wasn't supposed to be made available externally yet. One reason is that there are some naming issues that have come up, and the proto may have to be changed because of this. That conversation won't take place until next week and we probably won't see any public results for at least a week after that.

  18. dhermes commented on Jul 23, 2015

    @dhermes
    dhermes
    on Jul 23, 2015
    Contributor
    More actions

    @lesv Thanks. I have the entire Cluster Admin API implemented, including

    • an automated generator for the *_pb2.py modules
    • a system test suite that covers every API method (except for UndeleteCluster) with real API calls
    • a unit test suite with 100% code coverage

    Though it's not supposed to be enabled yet, any changes will be quickly picked up by the 3 suites mentioned above.

    Thanks for the heads up though.


    PS ISTM that supporting cloud alpha bigtable clusters * would be impossible without enabling the API.

  19. dhermes commented on Aug 3, 2015

    @dhermes
    dhermes
    on Aug 3, 2015
    Contributor
    More actions

    I have everything implemented except for the stream requests (ReadRows and SampleRowKeys), which I'm not sure how to handle with gRPC Python.

    Golang handles it by using a cancel-able stream.

  20. nathanielmanistaatgoogle commented on Aug 3, 2015

    @nathanielmanistaatgoogle
    nathanielmanistaatgoogle
    on Aug 3, 2015
    More actions

    @dhermes: what's unclear? gRPC Python supports cancellation. (Ping me; I have some time open this afternoon if you'd like to videochat.)

  21. dhermes commented on Aug 3, 2015

    @dhermes
    dhermes
    on Aug 3, 2015
    Contributor
    More actions

    Nothing unclear (that I know of), I just don't know how to do it. Let's chat.

  22. jgeewax commented on Nov 3, 2015

    @jgeewax
    jgeewax
    on Nov 3, 2015
    ContributorAuthor
    More actions

    @dhermes : Looks like we're "done enough" with the Bigtable stuff. I'm going to close this out and open a new issue focused on "what exactly do we need to do to make gcloud_bigtable become gcloud.bigtable"

    Sound reasonable? (Re-open if not)

  23. jgeewax
    closed this as completedon Nov 3, 2015
  24. JustinBeckwith
    assigned
    jgeewax
    on Feb 1, 2021
  25. parthea
    added a commit that references this issue on Oct 21, 2023

    chore: move samples from python-docs-sample (#45)

    d369a34
  26. parthea
    added 4 commits that reference this issue on Nov 24, 2025

    fix: fix incorrectly referenced exceptions, add missing port to tests (…

    This issue will close once commit 5afb22e is merged into the 'main' branch.
    5afb22e

    chore(deps): update all dependencies (#872)

    This issue will close once commit a0560a4 is merged into the 'main' branch.
    a0560a4

    docs: Note that we support Python 3.11 in CONTRIBUTING file (#872)

    This issue will close once commit 916d9cd is merged into the 'main' branch.
    916d9cd

    chore: release 2.2.0 (#872)

    This issue will close once commit 65c3442 is merged into the 'main' branch.
    65c3442
  27. parthea
    added a commit that references this issue on Feb 13, 2026

    chore: remove sync-repo-settings.yaml which is not used (#872)

    0563299
  28. parthea
    added a commit that references this issue on Mar 9, 2026

    chore(deps): update dependency google-cloud-spanner to v3.26.0 (#872)

    f53382c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @jgeewax
    jgeewax

Labels

api: bigtableIssues related to the Bigtable API.

Type

No type

Projects

No projects

    Milestone

    • Bigtable Beta

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.