UNPKG

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