node.js hbase“没有方法获取”

时间:2013-03-01 07:34:25

标签: node.js hbase

尝试将node.js与node-hbase模块一起使用时出错:

这是我的代码:

var hbase = require('hbase');
hbase({
  host: '192.168.1.107',
  port: 8000
}).getVersionCluster( function( error, versionCluster ){
  console.log( versionCluster );
})

这是错误:

/home/user1/node.js.server/node_modules/hbase/lib/client.js:117
  return this.connection.get("/version/cluster", callback);

TypeError: Object [object Object] has no method 'get'
     at Client.getVersionCluster       (/home/user1/node.js.server/node_modules/hbase/lib/client.js:117:26)
at Object.<anonymous> (/home/user1/node.js.server/hbTest.js:5:4)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:497:10)
at process._tickCallback (node.js:427:13)

0 个答案:

没有答案