about hbase rowkey and column name design

2013-01-06 Thread
1. On HBase reference guide section 6http://hbase.apache.org/book.html#schema, We know that rowkey design should not using Monotonically Increasing Row Keys/Timeseries Data ,but if we need a time stamp sort data or a top list data, how to design the row key? 2. If I want statistics users' login

Re: how to get the record number from hbase

2013-01-04 Thread
hi hua, using command $ bin/hbase org.apache.hadoop.hbase.mapreduce.RowCounter tablename [column1 column2...] it will report you the ROWS. or you can write a MapReduce tool yourself to count the rows. or you can run command in hbase shell: hbase(main):005:0 scan 't1',FILTER=FirstKeyOnlyFilter()

Re: how can thrift connect to hbase?

2012-12-28 Thread
state, and increase data and load to test. Good luck! Andy Thanks! beatls On Wed, Dec 26, 2012 at 2:52 PM, 周梦想 abloz...@gmail.com wrote: Yes, the first article is the base to install and test thrift, it has nothing to do with HBase. And the second one is how to use thrift

Re: how do you keep the hbase document correct?

2012-12-27 Thread
2012/12/28 Stack st...@duboce.net On Wed, Dec 26, 2012 at 11:11 PM, 周梦想 abloz...@gmail.com wrote: Thank you, Stack! Which edit tool do you use to edit the xml file? just using a vim-style text editor or some WYSWYG rich text editor? I use vim and the online manual figuring stuff out

Re: how do you keep the hbase document correct?

2012-12-27 Thread
OK, I saw it. that's great! A lot of thanks to Stack! Yours, Andy 2012/12/28 Stack st...@duboce.net On Thu, Dec 27, 2012 at 6:06 PM, 周梦想 abloz...@gmail.com wrote: “参考指南” is right. But I think the characters are better to be 中文参考指南(单页),means Chinese Reference Guilde (Single Page

Re: how do you keep the hbase document correct?

2012-12-27 Thread
book.html customization.xsl book.xml warning: failed to load external entity urn:docbkx:stylesheet compilation error: file customization.xsl line 24 element import xsl:import : unable to load urn:docbkx:stylesheet it seems there are some resources missing? Thanks! Andy Zhou 2012/12/28 周梦想 abloz

Re: how do you keep the hbase document correct?

2012-12-26 Thread
Thank you, Stack! Which edit tool do you use to edit the xml file? just using a vim-style text editor or some WYSWYG rich text editor? Please add a link to the Chinese version from off the hbase main page to help more Chinese people, and to do this may attract more people to join the translation

how do you keep the hbase document correct?

2012-12-25 Thread
Hello everyone, I keep a translation of Chinese version of the HBase official reference guide document: http://hbase.apache.org/book.html The translation page is http://abloz.com/hbase/book.html When I try to keep consistent with the english version, I found it's not easy. Because the english

Re: how do you keep the hbase document correct?

2012-12-25 Thread
a maven document or a docbook document. but i might be mistaken. On Tue, Dec 25, 2012 at 10:15 AM, 周梦想 abloz...@gmail.com wrote: Hello everyone, I keep a translation of Chinese version of the HBase official reference guide document: http://hbase.apache.org/book.html The translation page

Re: how can thrift connect to hbase?

2012-12-25 Thread
, but seems the second one if official? which one is better, or both works? Best R. beatls On Mon, Dec 24, 2012 at 7:49 PM, 周梦想 abloz...@gmail.com wrote: hi beatls, for your question, the answer is YES! if you just need a c++ client to access HBase, just run

Re: how do you keep the hbase document correct?

2012-12-25 Thread
/zhouhh/hbsrc/trunk/target/docbkx 2012/12/26 周梦想 abloz...@gmail.com It seems that you're right, the document generated by maven from src/docbkx, [zhouhh@Hadoop48 src]$ cd docbkx/ [zhouhh@Hadoop48 docbkx]$ ls book.xml community.xml customization.xsl external_apis.xml

Re: Hbase Question

2012-12-24 Thread
Hi Dalia, I think you can make a small sample of the table to do the test, then you'll find what's the difference of scan and count. because you can count it by human. Best regards, Andy 2012/12/24 Dalia Sobhy dalia.mohso...@hotmail.com Dear all, I have 50,000 row with diagnosis qualifier

priviledgedactionexception export error in metadata

2012-12-19 Thread
evironment [hbase@h46 bin]$ hadoop version Hadoop 1.0.2 Subversion https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.0.2 -r 1304954 Compiled by hortonfo on Sat Mar 24 23:58:21 UTC 2012 From source with checksum c198b04303cfa626a38e13154d2765a9 [hbase@h46 bin]$ hbase version print

Re: what to do if I have changed the ip and hostname of an existed hbase cluster?

2012-12-17 Thread
will be updated itself. to Zookeeper, if i just remove the zk data, it will be ok? Which version are you using? It's not recommended to do so, I think, but I'm not sure. -Original Message- From: 周梦想 [mailto:abloz...@gmail.com] Sent: Monday, December 17, 2012 12:12 PM To: user

Re: merge local hbase data with production hbase

2012-12-17 Thread
hi tousif, maybe you can first export the data to hdfs,and import the data to your production hbase table. or write some code to do this, or just using hive to complete this! best regards! andy 2012/12/17 Tousif tousif.pa...@gmail.com Hi, Can anyone help me identify a tool or best method to

what to do if I have changed the ip and hostname of an existed hbase cluster?

2012-12-16 Thread
hi, I have a several nodes hbase cluster, there have been a lot of datas, but I have to change the ip and hostname, what can i do? thank you! andy zhou

Re: what to do if I have changed the ip and hostname of an existed hbase cluster?

2012-12-16 Thread
(We encountered one issue long time before. The cluster was recovered after we deleted the directory of dataDir/version.). I think there will be no impact from Hbase side. Jieshan -Original Message- From: 周梦想 [mailto:abloz...@gmail.com] Sent: Monday, December 17, 2012 11:44 AM