Coder Social home page Coder Social logo

Comments (5)

fengmk2 avatar fengmk2 commented on May 29, 2024

Current hbase-client only support 0.94.x, 0.95+ you need to use this https://github.com/falsecz/node-hbase.

image

from node-hbase-client.

simonchan2013 avatar simonchan2013 commented on May 29, 2024

hi, i hvae the same problem, and my hbase version is 0.94.16, have you solve it? how do you fix it? thanks

from node-hbase-client.

coolme200 avatar coolme200 commented on May 29, 2024

Can you provide more information to reproduce the problem it is convenient for me?

from node-hbase-client.

simonchan2013 avatar simonchan2013 commented on May 29, 2024

########################the output is:
[Wed Mar 11 2015 17:04:19 GMT+0800 (**标准时间)] [worker:3620] [hbase-client] zookeeper watch error: Exception: NO_NODE[-101]
at ConnectionManager.onSocketData (E:\work\workspace_js\nodejs_test\node_modules\hbase-client\node_modules\zookeeper-watcher\node_modules\node-zookeeper-client\lib\ConnectionManager.js:570:35)
at Socket.emit (events.js:95:17)
at Socket. (stream_readable.js:764:14)
at Socket.emit (events.js:92:17)
at emitReadable
(_stream_readable.js:426:10)
at emitReadable (_stream_readable.js:422:5)
at readableAddChunk (_stream_readable.js:165:9)
at Socket.Readable.push (_stream_readable.js:127:10)
at TCP.onread (net.js:528:21)
{ [NO_NODE: Exception: NO_NODE[-101]]
code: -101,
name: 'NO_NODE',
path: undefined,
message: 'Exception: NO_NODE[-101]' }
undefined

################and my test program is:
var hbase = require('hbase-client');

var client = hbase.create({
zookeeperHosts: [
'192.168.86.15:2181',
],
zookeeperRoot: "/data/hbase/zookeeper_data_09416"
});

// console.log(client);

var param = new hbase.Get('row1');
param.addColumn('cf', 'a');

// console.log(param);

client.get('test', param, function(err, row) {
console.log(err);
console.log(row);
});

##############################################
HBase Version: 0.94.16

from node-hbase-client.

saintybalboa avatar saintybalboa commented on May 29, 2024

I had a similar problem, after analyzing the Hbase log I foudn the following message:

not start ZK at requested port of 2181. ZK was started at port: 2182.

I specified an incorrect port number, once I changed it from 2181 to 2182 it resolved the issue.

var client = hbase.create({ zookeeperHosts: [ '0.0.0.0:2182', ], zookeeperRoot: "HBASE_ROOT_DIRECTORY,
});
`

from node-hbase-client.

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.