在hbase shell中我可以
scan 't1', { LIMIT=>10, REVERSED => TRUE}
我可以看到最后10条记录加载到表中 当我通过thrift在node.js中尝试逻辑上相同的函数时,返回的结果是前10个
thrift logs at trace level
2014-12-30 21:23:31,652 TRACE org.apache.hadoop.hbase.client.ClientScanner: Scan table=t1, startRow=000000030000
2014-12-30 21:23:31,652 DEBUG org.apache.hadoop.ipc.RpcClient: Use SIMPLE authentication for service ClientService, sasl=false
2014-12-30 21:23:31,652 DEBUG org.apache.hadoop.ipc.RpcClient: Connecting to hdpnode1/127.0.0.1:60020
2014-12-30 21:23:31,653 DEBUG org.apache.hadoop.ipc.RpcClient: IPC Client (2037671159) connection to hdpnode1/127.0.0.1:60020 from hbase: starting, connections 1
2014-12-30 21:23:31,653 DEBUG org.apache.hadoop.ipc.RpcClient: IPC Client (2037671159) connection to hdpnode1/127.0.0.1:60020 from hbase: wrote request header call_id: 45 method_name: "Scan" request_param: true
2014-12-30 21:23:31,654 DEBUG org.apache.hadoop.ipc.RpcClient: IPC Client (2037671159) connection to hdpnode1/127.0.0.1:60020 from hbase: got response header call_id: 45, totalSize: 14 bytes
2014-12-30 21:23:31,654 TRACE org.apache.hadoop.ipc.RpcClient: Call: Scan, callTime: 2ms
2014-12-30 21:23:31,736 DEBUG org.apache.hadoop.hbase.thrift.ThriftServerRunner$HBaseHandler: scannerGetList: id=23
2014-12-30 21:23:31,737 DEBUG org.apache.hadoop.ipc.RpcClient: IPC Client (2037671159) connection to hdpnode1/127.0.0.1:60020 from hbase: wrote request header call_id: 46 method_name: "Scan" request_param: true
2014-12-30 21:23:31,738 DEBUG org.apache.hadoop.ipc.RpcClient: IPC Client (2037671159) connection to hdpnode1/127.0.0.1:60020 from hbase: got response header call_id: 46 cell_block_meta { length: 47600 }, totalSize: 47821 bytes
2014-12-30 21:23:31,738 TRACE org.apache.hadoop.ipc.RpcClient: Call: Scan, callTime: 2ms
2014-12-30 21:23:41,737 DEBUG org.apache.hadoop.ipc.RpcClient: IPC Client (2037671159) connection to hdpnode1/127.0.0.1:60020 from hbase: closed
2014-12-30 21:23:41,737 DEBUG org.apache.hadoop.ipc.RpcClient: IPC Client (2037671159) connection to hdpnode1/127.0.0.1:60020 from hbase: stopped, connections 0
问题是
我在
我试图通过thrift(node.js具体)扫描反转选项
Thrift设置为hsha并且每个CM应该是从https://thrift.apache.org/tutorial/nodejs编译的框架nodejs