[Proposal] Remove `gpcontrib/gpmapreduce` starting from Cloudberry 3.0
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 22/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 领域
- build-system, database
调研方向
Start with the Under Discussion thread and the open question about who still uses gpmapreduce, since the removal is not yet decided. Then read gpcontrib/Makefile, configure.ac, src/include/pg_config.h.in, gpMgmt/doc/Makefile, pom.xml and the build script devops/build/automation/cloudberry/scripts/configure-cloudberry.sh. Done means a build without --enable-mapreduce succeeds and no gpmapreduce binary is installed, but only after maintainers agree to the removal.
由索引模型根据 Issue 内容生成。
描述
Discussed in https://github.com/apache/cloudberry/discussions/2030
Originally posted by tuhaihe September 18, 2026
Proposers
Dianjin Wang (@tuhaihe)
Proposal Status
Under Discussion
Abstract
This proposal suggests removing gpmapreduce from Apache Cloudberry, starting
with the 3.0 development line.
Concretely, on main (currently 3.0.0-devel) we would delete:
- the
gpcontrib/gpmapreduce/directory (44 files, ~13,500 lines), - the
gpmapreduceclient binary that is currently installed into$GPHOME/bin/, - the
--enable-mapreduceconfigure option and the unusedUSE_MAPREDUCEdefine, - the
gpmapreduce_helpfile shipped bygpMgmt/doc/.
The 2.x line (REL_2_STABLE, currently 2.2.0-incubating) would not change.
gpmapreduce keeps building and shipping there for the entire supported life of
2.x, so users who still depend on it have a supported place to stay. The removal
takes effect in 3.0 and remains in effect for 3.x.
Motivation
1. This functionality is no longer needed according to the commit 4d926ede502
Commit 4d926ede502 (2024-09-19) disabled the gpmapreduce regression test in
gpcontrib/Makefile, with the following commit message:
As gpmapreduce is implemented for compatibility of execution of mapreduce,
which is no longer need now, we disable gpmapreduce regress test in this commit.
However, only the test was turned off. The build was not. Our release build
script still passes --enable-mapreduce
(devops/build/automation/cloudberry/scripts/configure-cloudberry.sh), and
gpcontrib/gpmapreduce/Makefile still installs the binary into
$GPHOME/bin/gpmapreduce.
2. Upstream removed it three years ago
Greenplum deleted the same code in 6bc9129c90b (2023-07-13):
It's decided that this functionality will not be provided for GPDB7 and
forward. Hence, deleting the code for the same.
3. The code is effectively frozen
git log gpcontrib/gpmapreduce shows that every commit since the initial
Cloudberry code dump has been mechanical: rebranding, typo fixes, Python 3
migration, and PostgreSQL merge fallout. The last functional change dates back
to the Greenplum era.
4. Users have better alternatives today
The workloads gpmapreduce was designed for in 2008 are well covered by plain SQL
plus UDFs (PL/pgSQL, PL/Python, PL/Perl, PL/Container), external tables /
gpfdist, and FDWs. We are not aware of active users of the YAML job-spec
interface, and this proposal is partly a call for such users to speak up.
Implementation
The change is confined to build glue and one self-contained directory. Proposed
as a single PR with atomic commits:
- Stop building and shipping
gpmapreduce— drop--enable-mapreducefrom
devops/build/automation/cloudberry/scripts/configure-cloudberry.sh(and
update the feature comment at the top of that file), and remove the
mapreducetarget plus theinstall/clean/distcleanbranches from
gpcontrib/Makefile. - Delete
gpcontrib/gpmapreduce/— 44 files, ~13,500 lines. - Remove the configure surface —
--enable-mapreduce,USE_MAPREDUCE, the
libyaml/yaml.hchecks that are specific to mapreduce, and the
mapreduce-specific Perl requirement, inconfigure.ac; regenerate
configure; drop#undef USE_MAPREDUCEfromsrc/include/pg_config.h.in. - Remove the help file —
gpMgmt/doc/gpmapreduce_helpand its entry in
gpMgmt/doc/Makefile. - Drop the RAT exclusion — remove
<exclude>gpcontrib/gpmapreduce/**</exclude>
frompom.xml.
Rollout/Adoption Plan
Version plan
| Line | Behaviour |
|---|---|
2.x (REL_2_STABLE, 2.2.0-incubating and later 2.x releases) |
No change. gpmapreduce continues to be built and shipped. Users who still depend on it stay on 2.x for the supported life of that line. |
3.0 (main, 3.0.0-devel) |
Removed. |
| 3.x | Stays removed; not re-introduced. |
This gives users an explicit, supported landing spot rather than an abrupt
removal, while keeping the 3.x tree clean from the start of the line.
Open questions for the community
- Is anyone still running
gpmapreducein production? If so, on which
Cloudberry version, and what is the migration blocker?
Are you willing to submit a PR?
- Yes I am willing to submit a PR!
- 主要语言
- C
- 星标
- 1.4k
- 派生
- 260
- 平均合并
- 4 天 19 小时
- 30 天内合并 PR
- 54
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/cloudberry 的其他 Issue
-
[Bug] Expand fails to recognize user-defined tablespaces可能已有人在做 @nix-oss 于 58 天前认领。 未关闭type: Bug
难度 2/5 1-3 小时 新手友好度 76/100
apache/cloudberry#1885 · 2 个 reaction ·
维护者通常 3 天内回复
-
gpexpand first stage fails: 'SyncPackages' object has no attribute 'ret' (extension sync never runs; regression)可能已有人在做 @talmacschen-arch 于 120 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 86/100
apache/cloudberry#1825 ·
维护者通常 3 天内回复
-
type: Bug
难度 3/5 半天 新手友好度 58/100
apache/cloudberry#2137 ·
维护者通常 3 天内回复
-
type: Bug
难度 4/5 3-5 天 新手友好度 30/100
apache/cloudberry#2135 ·
维护者通常 3 天内回复
-
[Bug] REINDEX DATABASE CONCURRENTLY breaks temporary PAX tables created with ON COMMIT DELETE ROWS未关闭type: Bug
难度 4/5 3-5 天 新手友好度 32/100
apache/cloudberry#2134 ·
维护者通常 3 天内回复
查看 apache/cloudberry 的全部 Issue
相似的 Issue
-
VIEW_TYPE set for computer players可能已有人在做 @Loobinex 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 2 天内回复
-
bug
难度 2/5 1 小时以内 新手友好度 78/100
brunodev85/winlator-app#90 ·
-
documentation
难度 2/5 1-3 小时 新手友好度 85/100
grayscale-lang/grayscale#3133 ·
维护者通常 1 天内回复