1 | var Client = require('./index.js').Client;
|
2 | var _ = require('lodash');
|
3 |
|
4 | var client = new Client(process.env.HBASE_URL);
|
5 |
|
6 | var fs = client._hbase.buildSingleColumnValueFilters([
|
7 | {family:'s', qualifier: 'uptime', comparator: "=", value: 262786},
|
8 | {family:'s', qualifier: 'pubkey', comparator: "=", value: 'n94s5V53w1g4HdEdHdUU1FVrqHTVDbcb7bt44ib9JcM3c281LoDr'},
|
9 | ]);
|
10 | var table = 'crawl_node_stats';
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | var key = '1442611874311_1442611876311';
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | client.getCrawlNodeStats(key)
|
27 | .then(console.log)
|
28 | .catch(console.log);
|