hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Lucene-hadoop Wiki] Update of "Hbase" by udanax
Date Sun, 29 Apr 2007 02:36:38 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lucene-hadoop Wiki" for change notification.

The following page has been changed by udanax:
http://wiki.apache.org/lucene-hadoop/Hbase

------------------------------------------------------------------------------
  the architecture to which the comment is directed. Thank you.
  
  ----
+ By udanax
  
- ''insert comments here''
+ I'm not in the implementation group of HBase.
+ [[BR]]So far, I haven't fully figured out how your view/understand the ideas of BigTable
or 
+ [[BR]]if you are dealing with parallel processing issues when planning strategies/implementing
HBase. 
  
- ----
+ So, I've recently started a similar project.
+ [[BR]]But, I indeed hope that i`ll bring some ideas to your group discussion and learn more
from Hbase.
  
+ please check my "BigTable Simulation Code Source".
+ [[BR]]you can download here.  
+ [[BR]]http://www.hadoop.co.kr/moin.cgi/Maplib?action=AttachFile&do=get&target=maplib-0.0.1-alpha.tgz
+ 
+ I expect can recording of multiple <K,V> maps from Once-through process to parsing
a tab delimited text file.
+ 
+ {{{#!java
+ 	Table t = new Table();
+ 	t.Create("webtable", new String[]{"anchor","language"});
+ 
+ 	//Write a new anchor, language
+ 	RowMutation r1 = new RowMutation(t.OpenOrDie("webtable"), "udanax.org");
+ 		
+ 		r1.Set("anchor:hadoop.co.kr","hadoop korean user group");
+ 		r1.Set("anchor:joinc.co.kr","joinc");
+ 		r1.Set("language:kr", "euc-kr");
+ 		r1.Set("anchor:hadoop.co.kr", "hadoop");
+ 		r1.Set("anchor:naver.com", "naver");
+ 	
+ 	Operation op = new Operation();
+ 	op.Apply(r1);
+ 
+ 	//Reading from table
+ 	Scanner stream = new Scanner("webtable");
+ 	stream.FetchColumnFamily("anchor");
+ 	stream.Lookup("udanax.org");
+ 	
+ 	while(stream.next())
+ 	{
+ 		System.out.print("(RowName):");
+ 		System.out.print(stream.RowName());
+ 		System.out.print(" (ColumnName):");
+ 		System.out.print(stream.ColumnName());
+ 		System.out.print(" (Value):");
+ 		System.out.println(stream.Value());
+ 	}
+ 	
+ 	stream.close();
+ }}}
+ 

Mime
View raw message