I am trying to use bigtable emulator within googleapiclient.discovery.Resource
module of python.
- Bigtable emulator run on
127.0.0.1:8086
Bigtable Client service setup via discovery service:
http = httplib2.Http(None, timeout=http_timeout)
client=discovery.build('bigtableadmin', 'v2', http=_http)
_client._baseUrl = 127.0.0.1:8086
Following post request is sent by discovery:
http://127.0.0.1:8086/v2/projects/my_project/instances/my_instance/tables?alt=json
which eventually returns [Errno 54] Connection reset by peer.
I can utilise bigtable emulator with using google.cloud.bigtable.Client
without any problem.
I can use local pubs emulator with same discovery service, and rest api seems to work fine but fails on bigtable emulator.
Does Bigtable Emulator supports post requests? Or emulator has limited usage with only google.cloud.bigtable.Client
? I could not find any detail on emulator documentation.