PipelineDB安装

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u012551524/article/details/86705632

参考:https://github.com/digoal/blog/blob/master/201811/20181101_02.md&nbsp

系统版本:Ubuntu 16.04

Postgresql版本:Postgresql10.0

PipelineDB版本:1 .0


安装步骤:

1、编译zeromq

wget https://github.com/zeromq/libzmq/releases/download/v4.2.5/zeromq-4.2.5.tar.gz  

tar -zxvf zeromq-4.2.5.tar.gz  

cd zeromq-4.2.5  

./configure  

make  

make install

2、编译pipelinedb

wget https://github.com/pipelinedb/pipelinedb/archive/1.0.0rev4.tar.gz  

tar -zxvf 1.0.0rev4.tar.gz   

cd pipelinedb-1.0.0rev4/  

vi Makefile  

修改如下行:

SHLIB_LINK += /usr/local/lib/libzmq.so -lstdc++  

安装依赖:

apt-get install libkrb5-dev python-psycopg2 libpq-dev

编译安装:

USE_PGXS=1 make  

USE_PGXS=1 make install

3、配置postgresql.conf

max_worker_processes = 512  

shared_preload_libraries = 'pipelinedb'  

pipelinedb.stream_insert_level=async

pipelinedb.num_combiners=8

pipelinedb.num_workers=16

pipelinedb.num_queues=16

pipelinedb.fillfactor=75

pipelinedb.continuous_queries_enabled=true

重启

pg_ctl restart -m fast

4、安装插件

postgres=# create extension pipelinedb;

猜你喜欢

转载自blog.csdn.net/u012551524/article/details/86705632