Last active
October 9, 2015 07:43
-
-
Save sambaiz/59f9f93575ac826185fa to your computer and use it in GitHub Desktop.
hbase動かすところまでのメモ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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