LoginSignup
0
1

More than 5 years have passed since last update.

FoodMart(OLAP用サンプルデータ)をDBに取り込む

Last updated at Posted at 2017-06-07

やりたいこと

  • FoodMartデータをDB(PostgreSQL)に取り込んでいきます。

FoodMartとは

OLAP用のサンプルデータ
(OLAP等々の話は省略)

サンプルデータの場所

1.サンプルデータをクローン

git clone https://github.com/OSBI/foodmart-data.git

2.DBにfoodmartデータベースを作成

CREATE DATABASE foodmart;

3.CloneしたリポジトリからFoodMartLoader.shを開き、
32行目あたりのDBユーザ名、パスワードを変更

export DBCredentials="-outputJdbcUser=<ユーザー名> -outputJdbcPassword=<パスワード>"  

4.リポジトリ内のdata/DataScript.zipを解凍します。

unzip data/DataScript.zip

5.FoodMartLoader.shをキック

./FoodMartLoader.sh --db postgres

終わりに

このDBとFoodMart.xmlを使ってOLAP分析ができたりするので、デモレベルでBIを導入したいときに便利になります。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1