adaltas / node-hbase

Asynchronous HBase client for NodeJs using REST

Home Page:https://hbase.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.getTable( 'my_table' ) TypeError: undefined is not a function

jstncno opened this issue · comments

Hi,
I am getting an issue when trying to get a table from my client. My code is as follows:

  hbase({ host: '127.0.0.1', port: 8080 })
  .getTable( 'websites' )
  .getSchema(function(error, schema){
    console.log(schema);
  });

and these are the errors that follow:

.getTable( 'websites' )
   ^
TypeError: undefined is not a function

Is there another way of getting a table?

This code works:

hbase({ host: '127.0.0.1', port: 8080 })
  .table( 'websites' )
  .schema(function(error, schema){
    console.log(schema);
  });

Seems like there aren't anymore 'getters'. Is it possible to get the documentation updated?

I dont have much time at the moment.

No problem, thanks for the update. I will be playing around with your module over the next couple weeks, so I might just submit a pull request.

that would be perfect

Old issue, closing.