| 10 | === 5/29 === |
| 11 | * 已建立 tw.org.nchc. 的 package 檔以供 java import 之用 |
| 12 | * 研究hadoop 1.16.4 的程式碼,(hadoop 1.17.0 已公佈, 有些api有改變) |
| 13 | * 實做HBase 範例 :方法如下 |
| 14 | 1. [http://ftp.twaren.net/Unix/Web/apache/hadoop/hbase/hbase-0.1.2/ 下載原始碼] 解開 |
| 15 | 2. 設定 conf/hbase-site.xml |
| 16 | {{{ |
| 17 | <configuration> |
| 18 | |
| 19 | <property> |
| 20 | <name>hbase.master</name> |
| 21 | <value>example.org:60000</value> |
| 22 | <description>The host and port that the HBase master runs at. |
| 23 | </description> |
| 24 | </property> |
| 25 | |
| 26 | <property> |
| 27 | <name>hbase.rootdir</name> |
| 28 | <value>hdfs://example.org:9000/hbase</value> |
| 29 | <description>The directory shared by region servers. |
| 30 | </description> |
| 31 | </property> |
| 32 | |
| 33 | </configuration> |
| 34 | }}} |
| 35 | 3. 設定 hbase-env.sh |
| 36 | {{{ |
| 37 | JAVA_HOME=/usr/lib/jvm/java-6-sun |
| 38 | ... |
| 39 | CLASSPATH=/home/waue/workspace/hadoop/conf |
| 40 | }}} |
| 41 | 4. set regionserver , slaves about host |
| 42 | 5. bin/start-hbase.sh (執行此程式前,需確認HDFS有開啟) |
| 43 | * 雖然 hbase 有在運作,但sample code仍報錯 |