| 95 | === 下載並解壓縮Hbase到/opt/ === |
| 96 | === 修改 /opt/hbase-0.90.6/conf/hbase-env.sh === |
| 97 | {{{ |
| 98 | #!text |
| 99 | export HBASE_MANAGES_ZK=false |
| 100 | export JAVA_HOME=/usr/lib/jvm/java-6-openjdk |
| 101 | export HBASE_HEAPSIZE=256 |
| 102 | export HBASE_CLASSPATH=/opt/hadoop-1.0.3/conf |
| 103 | }}} |
| 104 | === 修改 /opt/hbase-0.90.6/conf/hbase-site.xml === |
| 105 | {{{ |
| 106 | #!text |
| 107 | <configuration> |
| 108 | <property> |
| 109 | <name>hbase.rootdir</name> |
| 110 | <value>hdfs://localhost:54310/hbase</value> |
| 111 | </property> |
| 112 | <property> |
| 113 | <name>hbase.zookeeper.property.dataDir</name> |
| 114 | <value>/var/zookeeper</value> |
| 115 | </property> |
| 116 | <property> |
| 117 | <name>dfs.support.append</name> |
| 118 | <value>true</value> |
| 119 | </property> |
| 120 | <property> |
| 121 | <name>hbase.cluster.distributed</name> |
| 122 | <value>true</value> |
| 123 | </property> |
| 124 | <property> |
| 125 | <name>hbase.zookeeper.property.clientPort</name> |
| 126 | <value>2181</value> |
| 127 | </property> |
| 128 | </configuration> |
| 129 | }}} |
| 130 | === 啟動 === |
| 131 | {{{ |
| 132 | ~$ /opt/hbase-0.90.6/bin/start-hbase.sh |
| 133 | }}} |