当前位置:网站首页>Greenplum [deployment 08] database small version upgrade process and problem handling error: open-source-greenplum-db-6 conflicts with
Greenplum [deployment 08] database small version upgrade process and problem handling error: open-source-greenplum-db-6 conflicts with
2022-07-27 03:59:00 【Kite】
1. Upgrade reason
- Why do you always pay attention to it Greenplum Version information for ?
The project database should be from MySQL Switch to Greenplum The biggest problem is SQL The grammar is different ,MySQL Yes on duplicate key update Implement conflict update ,Greenplum But there was no .
PostgreSQL 9.5 Introduced UPSET function , Its grammar insert on conflict do Very powerful , Support merge write ( When a unique constraint is violated , Update in case of conflict , If there is no conflict, write ), At the same time, it supports streaming Computing .
Currently in use Greenplum The database version is 6.13.0 Its PostgreSQL Version is 9.4.24 Can't use UPSERT grammar :
# select version();
PostgreSQL 9.4.24
(Greenplum Database 6.13.0 build commit:4f1adf8e247a9685c19ea02bcaddfdc200937ecd Open Source)
on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 6.4.0, 64-bit compiled on Dec 18 2020 22:31:16
Unfortunately 20220408 The latest version released 6.20.3 Is still 9.4
PostgreSQL 9.4.26
(Greenplum Database 6.20.3 build commit:24b949d2585cdbe8a157062fb756013e7c2874ab Open Source)
on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 6.4.0, 64-bit compiled on Apr 6 2022 19:59:57
Finally, it is realized by code replace insert or insert on conflict similar on duplicate key update Batch warehousing data ( Merge, insert, add and update if none ) The operation of , The code can be viewed 《Greenplum Code 01》.
PostgreSQL 9.5 The merger of seems to wait until Greenplum7.0,20220714 Released the latest version 6.21.0, Here is a database upgrade operation , Also verify the kernel version .
2. Small version upgrade process
2.1 install GPDB
# 0. First, stop the current database
gpstop -M fast
# 1. install ( Default install to /usr/local) Under the table of contents
yum install -y ./open-source-greenplum-db-6.21.0-rhel7-x86_64.rpm
The error report conflicts with the previous version :
No package matched to upgrade: open-source-greenplum-db-6
--> Finished Dependency Resolution
Error: open-source-greenplum-db-6 conflicts with greenplum-db-6-6.13.0-1.el7.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
# Use rpm install add to --nodeps Indicates no dependency
rpm -ivh open-source-greenplum-db-6.21.0-rhel7-x86_64.rpm --nodeps
# setup script
Preparing... ################################# [100%]
Updating / installing...
1:open-source-greenplum-db-6-6.21.0################################# [100%]
# 2. Empowering gpadmim
chown -R gpadmin:gpadmin /usr/local/greenplum*
2.2 Rebuild or modify the soft connection
# Rebuild soft connection
rm -rf /usr/local/greenplum-db
ln -s /usr/local/greenplum-db-6.21.0 /usr/local/greenplum-db
# Modify the soft connection
ln –snf /usr/local/greenplum-db-6.21.0 /usr/local/greenplum-db
2.3 Start validation
# start-up
gpstart -a
# select version();
PostgreSQL 9.4.26
(Greenplum Database 6.21.0 build commit:d0087e3b24c54d203ca8bb315559205f13cd6393 Open Source)
on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 6.4.0, 64-bit compiled on Jun 10 2022 01:57:17
Database started successfully , The version has also been upgraded to 6.21.0 Of course, the kernel version is still 9.4.26. This is a small version upgrade , The database may need to be reinitialized when upgrading a large version .
边栏推荐
- C. Cypher
- Ming min investment Qiu Huiming: behind the long-term excellence and excess, the test is the team's investment and research ability and the integrity of strategy
- The new version of Alibaba Seata finally solves the idempotence, suspension and empty rollback problems of TCC mode
- Specific use of multithreading
- NLP hotspots from ACL 2022 onsite experience
- Characteristics and experimental suggestions of abbkine abfluor 488 cell apoptosis detection kit
- 数字孪生应用及意义对电力的主要作用,概念价值。
- Plato Farm有望通过Elephant Swap,进一步向外拓展生态
- Permutation and binary (Ji, DA) (day 84)
- URDF_Xcaro
猜你喜欢

Worthington papain dissociation system solution

Specific use of multithreading

Basic concept and essence of Architecture

Feitengtengrui d2000 won the "top ten hard core technologies" award of Digital China

九方智投是正规公司吗?一起聊聊九方智投

Function pointer and callback function

小于等于K的最大子数组累加和

Six determination methods of Worthington peroxidase activity

Use websocket to realize a web version of chat room (fishing is more hidden)

Vector to SVG method
随机推荐
分享当下人生——一个高中毕业生在中央电视台的六星期实习经历
LeetCode 第二十八天
If the detailed explanation is generated according to the frame code
03.获取网页源代码
Have you encountered the situation that CDC reads incomplete MySQL fields? How to deal with it?
[untitled] JDBC connection database read timeout
Permutation and binary (Ji, DA) (day 84)
Characteristics and experimental suggestions of abbkine abfluor 488 cell apoptosis detection kit
Interview question: the difference between three instantiated objects in string class
Detailed tutorial of typera
Ring counting (Northern Polytechnic machine test questions) (day 83)
Do you really understand code rollback?
第六周复习
Vector to SVG method
04. Detailed steps for installing the simulated browser chromedriver in Google browser
URDF_ Xcaro
Contour detection based on OpenCV (1)
DataX无法连接对应的数据库(windows下可以,linux下失败)
The fifth strong network cup national network security challenge Title reappearance (with title attachment, detailed explanation)
Debug mode in pycharm for detailed debugging