安装提前:需要安装JDK1.8以上
软件下载地址:
https://metabase.com
还需要下载 ojdbc7.jar,以支持Oracle驱动
下载地址:http://www.oracle.com/technetwork/database/features/jdbc/default-2280470.html
metabse 安装方法:
创建目录:mkdir -p /data/metabase/plugins
metabase 软件放在 /data/metabase 目录
ojdbc7.jar 软件放在 /data/metabase/plugins 目录
运行:
nohup java -jar metabase_0.29.3.jar &
查看nohup输出,出现如下信息Metabase Initialization COMPLETE即安装ok。
[root@ip-10-10-40-8 metabase]# tail -f nohup.out
08-02 11:29:19 INFO sync.util :: STARTING: Cache field values in h2 Database 1 'Sample Dataset'
08-02 11:29:19 DEBUG sync.field-values :: Looking into updating FieldValues for Field 2 'RATING'
08-02 11:29:19 DEBUG sync.field-values :: Looking into updating FieldValues for Field 6 'CATEGORY'
08-02 11:29:19 DEBUG sync.field-values :: Looking into updating FieldValues for Field 14 'QUANTITY'
08-02 11:29:20 DEBUG sync.field-values :: Looking into updating FieldValues for Field 24 'SOURCE'
08-02 11:29:20 DEBUG sync.field-values :: Looking into updating FieldValues for Field 28 'STATE'
08-02 11:29:20 DEBUG sync.field-values :: Looking into updating FieldValues for Field 36 'RATING'
08-02 11:29:20 INFO sync.util :: FINISHED: Cache field values in h2 Database 1 'Sample Dataset' (865 ms)
08-02 11:29:20 INFO sync.util :: FINISHED: Sync h2 Database 1 'Sample Dataset' (7 s)
08-02 11:29:20 INFO metabase.core :: Metabase Initialization COMPLETE
打开浏览器进行设置(127.0.0.1 换成对应服务器的IP):
127.0.0.1:3000
以下填相应的信息即可:
下图中Oracle service name不用填,其他根据实际情况填写。
设置metabase 定时任务
打开 “Admin Panel” =>“Email”
设置如下所示:
参考文档:https://metabase.com/docs/latest/administration-guide/databases/oracle.html