java 连接 pipelinedb,基于PostgreSQL的流式计算数据库PipelineDB--安装

原文发表于天善智能

PipelineDB是基于PostgreSQL的一个流式计算数据库,

看一下官方文档的定义:

PipelineDB is built to run SQL queries continuously on

streaming data. The output of these continuous queries is stored in

regular tables which can be queried like any other table or view.

Thus continuous queries can be thought of as very high-throughput,

incrementally updated materialized views. As with any data

processing system, PipelineDB is built to shine under particular

workloads, and simply not intended for others.

我的理解就是row base

的trigger,数据可以不停的增量更新,而不用批量去跑。而且传统的流处理都需要写程序,PipelineDB的方便之处是流的处理可以使用SQL语句,这个对我这种传统的BI人员很方便。

今天先介绍一下具体的安装准备工作:

操作系统准备:

CentOS 7.1 with basic development

关闭防火墙,使用seng的用户安装。

需要增加seng用户的sudo权限。

pipelinedb安装:

安装命令:

mkdir /postgre/pipelinedb/v096/

cd /postgre/installfiles

sudo rpm -ivh --prefix=/postgre/pipelinedb/v096/ pipelinedb-0.9.6-centos7-x86_64.rpm

a4c26d1e5885305701be709a3d33442f.png

数据库初始化:

mkdir /postgre/pipelinedb/v096/testpipe

mkdir /postgre/pipelinedb/v096/logs/testpipe/

pipeline-init -D /postgre/pipelinedb/v096/testpipe

a4c26d1e5885305701be709a3d33442f.png

启动/关闭命令:

pipeline-ctl -D /postgre/pipelinedb/v096/testpipe -l

/postgre/pipelinedb/v096/logs/testpipe/pipelinedb.log start

pipeline-ctl -D

/postgre/pipelinedb/v096/testpipe stop

修改配置:

由于需要远程访问,测试也不需要太多权限控制

修改pg_hba.conf

加一行

host all all ip(如192.168.1.1)/24 password

host all all 10.8.29.1/24 password

修改pipelinedb.conf

#listen_addresses =

'localhost' # what IP address(es) to listen on;

listen_addresses = '*'

访问pipeline :

就是普通的postgre 的数据库,但是提供了一个pipeline的简化命令。

pipeline pipeline

psql -p 5432 -h localhost pipeline

通过\l命令可以看到就是一个pg的数据库^-^

a4c26d1e5885305701be709a3d33442f.png

创建测试用户:

CREATE USER pgtest PASSWORD 'abc123' ;

alter role pgtest superuser;

PS.

今年继续看,看了道德经和新闻标题2段,都很有感触。里面谈了一下新闻如何讲故事,这个对所有人都适用啊,是人的基本技能。这句话叶恒有意思,细节才会感动人。

还在听猫腻,喜马拉雅上有姜维说的,说得不错。猫腻大大的书整个架构偏向于黑暗的,但是具体的故事还是很正的。这几天听到周园那段,细节写的不错。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值