wiki:waue/2012/0120

環境

  • hadoop => /opt/hadoop-1.0.0
    • workspace => /var/hadoop/hadoop100
  • hbase => /opt/hbase-0.90.5
    • workspace => /var/hadoop/hbase0905

hadoop 1.0.0 single node

  • conf/hadoop-env.sh
    export JAVA_HOME=/usr/lib/jvm/java-6-sun
    

hbase 0.90.5 single node

  • conf/hbase-env.sh
    export JAVA_HOME=/usr/lib/jvm/java-6-sun
    
  • conf/hbase-site.xml
    <configuration>
      <property>
        <name>hbase.rootdir</name>
        <value>file:///var/hadoop/hbase0905</value>
      </property>
    </configuration>
    
bin/start-hbase.sh

eclipse

  • 由於 hadoop 與 hbase 的 lib 內有大部分的重複,但其中沒重複到的 library 又很重要,沒引入會出現錯誤。
  1. 引入 hbase => hbase-core.jar
  2. 引入 hbase => lib/*.jar
  3. 移出 hbase => lib/commons-*.jar
  4. 引入 hadoop=> hadoop-core.jar
  5. 引入 hadoop=> lib/commons-*.jar (尤其是 commons-configuration-1.6.jar)

run

  • run as java application
Last modified 12 years ago Last modified on Jan 20, 2012, 6:35:07 PM

Attachments (1)

Download all attachments as: .zip