Skip to content

Instantly share code, notes, and snippets.

@sambaiz
Last active October 9, 2015 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sambaiz/59f9f93575ac826185fa to your computer and use it in GitHub Desktop.
Save sambaiz/59f9f93575ac826185fa to your computer and use it in GitHub Desktop.
hbase動かすところまでのメモ
http://codezine.jp/article/detail/7128
# hbase起動まで
cd /usr/local
wget http://ftp.kddilabs.jp/infosystems/apache/hbase/stable/hbase-1.1.2-bin.tar.gz
tar -zxvf hbase-1.1.2-bin.tar.gz
cd hbase-1.1.2
echo "export JAVA_HOME=/usr/lib/jvm/jre-openjdk" >> /root/.bashrc
bin/start-hbase.sh
# tableを作る&データの確認
bin/hbase shell
hbase(main):001:0> create "tbl", "fam" # tablename, columnfamily
hbase(main):001:0> scan "tbl"
# mavenのインストール&コンパイル&実行
yum install maven
mvn compile
mvn exec:java
↓pomに追加
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<configuration>
<mainClass>net.sambaiz.Main</mainClass>
</configuration>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment