测试集群简介:一共有4台机器:10.10.244.136、10.10.244.137、10.10.244.138、10.10.244.139。10.10.244.136是管理节点,另外3台是存储节点。准备工作详情如下:
1 在四台机器上安装CentOS release 6.5 (Final) 64位(管理节点需要安装Mysql\Postgresql\redhat_lsb)
2 CDH5.2(...
分类:
其他好文 时间:
2014-11-03 10:10:27
阅读次数:
133
近日,需要用到postgresql数据库。 我搭建的环境为: azure平台,操作系统为azure平台自带的openlogic centos7.0。 搭建过程: 1,使用系统自带postgresql包。如果仅仅搭建postgresql数据库,仅仅安装pos...
分类:
数据库 时间:
2014-11-02 13:58:17
阅读次数:
272
1、use pgbouncer可以利用pgbouncer的server_idle_timeout参数server_idle_timeout:;; Close server connection if its not been used in this time.;; Allows to clean ...
分类:
数据库 时间:
2014-11-02 12:21:09
阅读次数:
296
1、PostgreSQL 9.1 and below:SELECT pg_terminate_backend(pg_stat_activity.procpid)FROM pg_stat_activityWHERE pg_stat_activity.datname = 'TARGET_DB' AND....
分类:
数据库 时间:
2014-11-01 20:27:22
阅读次数:
298
为了生产库释放部分资源,需要将API模块迁移到mysql中,及需要导数据。
尝试了oracle to mysql工具,迁移时报错不说,这么大的数据量,用这种简陋的工具不大可靠。
意外发现平时用的数据库视图工具Navicat Premium中有数据迁移工具,意外的好用。这个工具本身支持mysql,oracle,sqlLite,PostgreSql数据库,因此而也提供了在不同数据库之间迁移数据的功...
分类:
数据库 时间:
2014-10-31 11:58:56
阅读次数:
158
sudo apt-get install graphviz ghostscript postgresql-client \ python-dateutil python-feedparser python-gdata \ python-ldap python-libxslt1 python-lxml...
分类:
编程语言 时间:
2014-10-31 09:55:57
阅读次数:
337
删除psql数据库:(以数据库Django名为例:)dropdbDjango;新建数据库并属于django:createdbDjango-Odjango当我们在Django中用了pythonmanage.pysyncdb后,会在PostgreSQL中新建了对应的应用的表,但是有时候会发现在admin管理平台时添加数据时出现CSRF错误。这时候,我们要采..
分类:
数据库 时间:
2014-10-31 06:29:20
阅读次数:
206
create or replace function refresh_product_usage() returns void as $$declare rec record; sub_rec record; init_pro_id integer; parent_product_id integ....
分类:
数据库 时间:
2014-10-30 09:20:25
阅读次数:
275
代码如下:#!/usr/bin/envpythonimportsmtplibfromemail.mime.textimportMIMETextimportpsycopg2importdatetimemail_host="smtp.XXX.com"
mail_user="XXX"
mail_pass="XXX"
mail_postfix="XXX.com"defsend_mail(to_list,sub,content):
me="RemindEmail"+"<"+mail_user+"@"+..
分类:
数据库 时间:
2014-10-30 02:02:55
阅读次数:
251
gearman is a good thinggearman client --------------> gearman server <------------------------gearman workerclients are requesting to handler somethin...
分类:
数据库 时间:
2014-10-29 00:08:10
阅读次数:
250