-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1479 from EnterpriseDB/content/mongo_data_adapter…
…/5.2.9/upcoming_release Content for upcoming MongoDB FDW release 5.2.9 Former-commit-id: 9714189
- Loading branch information
Showing
23 changed files
with
1,120 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
product_docs/docs/mongo_data_adapter/5.2.9/01_whats_new.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: "What’s New" | ||
--- | ||
|
||
<div id="whats_new" class="registered_link"></div> | ||
|
||
The following features are added to create MongoDB Foreign Data Wrapper `5.2.9`: | ||
|
||
- Updated mongo-c-driver to 1.17.3 | ||
- Updated json-c to 0.15 |
23 changes: 23 additions & 0 deletions
23
product_docs/docs/mongo_data_adapter/5.2.9/02_requirements_overview.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: "Requirements Overview" | ||
--- | ||
|
||
## Supported Versions | ||
|
||
The MongoDB Foreign Data Wrapper is certified with EDB Postgres Advanced Server 9.6 and above. | ||
|
||
## Supported Platforms | ||
|
||
The MongoDB Foreign Data Wrapper is supported on the following platforms: | ||
|
||
**Linux x86-64** | ||
|
||
> - RHEL 8.x/7.x | ||
> - CentOS 8.x/7.x | ||
> - OL 8.x/7.x | ||
> - Ubuntu 20.04/18.04 LTS | ||
> - Debian 10.x/9.x | ||
**Linux on IBM Power8/9 (LE)** | ||
|
||
> - RHEL 7.x |
9 changes: 9 additions & 0 deletions
9
product_docs/docs/mongo_data_adapter/5.2.9/03_architecture_overview.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: "Architecture Overview" | ||
--- | ||
|
||
<div id="architecture_overview" class="registered_link"></div> | ||
|
||
The MongoDB data wrapper provides an interface between a MongoDB server and a Postgres database. It transforms a Postgres statement (`SELECT`/`INSERT`/`DELETE`/`UPDATE`) into a query that is understood by the MongoDB database. | ||
|
||
![Using MongoDB FDW with Postgres](images/mongo_server_with_postgres.png) |
291 changes: 291 additions & 0 deletions
291
...uct_docs/docs/mongo_data_adapter/5.2.9/04_installing_the_mongo_data_adapter.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,291 @@ | ||
--- | ||
title: "Installing the MongoDB Foreign Data Wrapper" | ||
--- | ||
|
||
|
||
<div id="installing_the_MongoDB_data_adapter" class="registered_link"></div> | ||
|
||
The MongoDB Foreign Data Wrapper can be installed with an RPM package. During the installation process, the installer will satisfy software prerequisites. If yum encounters a dependency that it cannot resolve, it will provide a list of the required dependencies that you must manually resolve. | ||
|
||
<div id="using_an_rpm_package_to_install_the_data_adapter" class="registered_link"></div> | ||
|
||
## Installing the MongoDB Foreign Data Wrapper using an RPM Package | ||
|
||
You can install the MongoDB Foreign Data Wrapper using an RPM package on the following platforms: | ||
|
||
- [RHEL or CentOS 7 PPCLE](#rhel_centos7_PPCLE) | ||
- [RHEL 7](#rhel7) | ||
- [RHEL 8](#rhel8) | ||
- [CentOS 7](#centos7) | ||
- [CentOS 8](#centos8) | ||
|
||
<div id="rhel_centos7_PPCLE" class="registered_link"></div> | ||
|
||
### On RHEL or CentOS 7 PPCLE | ||
|
||
1. Use the following command to create a configuration file and install Advance Toolchain: | ||
|
||
```text | ||
rpm --import https://public.dhe.ibm.com/software/server/POWER/Linux/toolchain/at/redhat/RHEL7/gpg-pubkey-6976a827-5164221b | ||
cat > /etc/yum.repos.d/advance-toolchain.repo <<EOF | ||
# Begin of configuration file | ||
[advance-toolchain] | ||
name=Advance Toolchain IBM FTP | ||
baseurl=https://public.dhe.ibm.com/software/server/POWER/Linux/toolchain/at/redhat/RHEL7 | ||
failovermethod=priority | ||
enabled=1 | ||
gpgcheck=1 | ||
gpgkey=ftp://public.dhe.ibm.com/software/server/POWER/Linux/toolchain/at/redhat/RHELX/gpg-pubkey-6976a827-5164221b | ||
# End of configuration file | ||
EOF | ||
``` | ||
|
||
2. Install the EDB repository: | ||
|
||
```text | ||
yum -y install https://yum.enterprisedb.com/edbrepos/edb-repo-latest.noarch.rpm | ||
``` | ||
|
||
3. Replace ‘USERNAME:PASSWORD’ below with your username and password for the EDB repositories: | ||
|
||
```text | ||
sed -i "s@<username>:<password>@USERNAME:PASSWORD@" /etc/yum.repos.d/edb.repo | ||
``` | ||
|
||
4. Install the EPEL repository: | ||
|
||
```text | ||
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | ||
``` | ||
|
||
5. On RHEL 7 PPCLE, enable the additional repositories to resolve EPEL dependencies: | ||
|
||
```text | ||
subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms" --enable "rhel-ha-for-rhel-*-server-rpms" | ||
``` | ||
|
||
6. Install the selected package: | ||
|
||
```text | ||
dnf install edb-as<xx>-mongo_fdw | ||
``` | ||
|
||
where `xx` is the server version number. | ||
|
||
|
||
<div id="rhel7" class="registered_link"></div> | ||
|
||
### On RHEL 7 | ||
|
||
1. To create the repository configuration file, assume superuser privileges, and invoke the following command: | ||
|
||
```text | ||
yum -y install https://yum.enterprisedb.com/edbrepos/edb-repo-latest.noarch.rpm | ||
``` | ||
|
||
2. Replace ‘USERNAME:PASSWORD’ below with your username and password for the EDB repositories: | ||
|
||
```text | ||
sed -i "s@<username>:<password>@USERNAME:PASSWORD@" /etc/yum.repos.d/edb.repo | ||
``` | ||
|
||
3. Install the EPEL repository: | ||
|
||
```text | ||
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | ||
``` | ||
|
||
4. Enable the additional repositories to resolve dependencies: | ||
|
||
```text | ||
subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms" --enable "rhel-ha-for-rhel-*-server-rpms" | ||
``` | ||
|
||
5. Install the selected package: | ||
|
||
```text | ||
dnf install edb-as<xx>-mongo_fdw | ||
``` | ||
|
||
where `xx` is the server version number. | ||
|
||
|
||
|
||
|
||
<div id="rhel8" class="registered_link"></div> | ||
|
||
### On RHEL 8 | ||
|
||
1. To create the repository configuration file, assume superuser privileges, and invoke the following command: | ||
|
||
```text | ||
dnf -y install https://yum.enterprisedb.com/edbrepos/edb-repo-latest.noarch.rpm | ||
``` | ||
|
||
2. Replace ‘USERNAME:PASSWORD’ below with your username and password for the EDB repositories: | ||
|
||
```text | ||
sed -i "s@<username>:<password>@USERNAME:PASSWORD@" /etc/yum.repos.d/edb.repo | ||
``` | ||
|
||
3. Install the EPEL repository: | ||
|
||
```text | ||
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm | ||
``` | ||
|
||
4. Enable the additional repositories to resolve dependencies: | ||
|
||
```text | ||
ARCH=$( /bin/arch ) subscription-manager repos --enable "codeready-builder-for-rhel-8-${ARCH}-rpms" | ||
``` | ||
|
||
5. Disable the built-in PostgreSQL module: | ||
|
||
```text | ||
dnf -qy module disable postgresql | ||
``` | ||
6. Install the selected package: | ||
|
||
```text | ||
dnf install edb-as<xx>-mongo_fdw | ||
``` | ||
|
||
where `xx` is the server version number. | ||
|
||
|
||
|
||
<div id="centos7" class="registered_link"></div> | ||
|
||
### On CentOS 7 | ||
|
||
1. To create the repository configuration file, assume superuser privileges, and invoke the following command: | ||
|
||
```text | ||
yum -y install https://yum.enterprisedb.com/edbrepos/edb-repo-latest.noarch.rpm | ||
``` | ||
|
||
2. Replace ‘USERNAME:PASSWORD’ below with your username and password for the EDB repositories: | ||
|
||
```text | ||
sed -i "s@<username>:<password>@USERNAME:PASSWORD@" /etc/yum.repos.d/edb.repo | ||
``` | ||
|
||
3. Install the EPEL repository: | ||
|
||
```text | ||
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | ||
``` | ||
|
||
4. Install the selected package: | ||
|
||
```text | ||
dnf install edb-as<xx>-mongo_fdw | ||
``` | ||
|
||
where `xx` is the server version number. | ||
|
||
|
||
<div id="centos8" class="registered_link"></div> | ||
|
||
### On CentOS 8 | ||
|
||
|
||
1. To create the repository configuration file, assume superuser privileges, and invoke the following command: | ||
|
||
```text | ||
dnf -y install https://yum.enterprisedb.com/edbrepos/edb-repo-latest.noarch.rpm | ||
``` | ||
|
||
2. Replace ‘USERNAME:PASSWORD’ below with your username and password for the EDB repositories: | ||
|
||
```text | ||
sed -i "s@<username>:<password>@USERNAME:PASSWORD@" /etc/yum.repos.d/edb.repo | ||
``` | ||
|
||
3. Install the EPEL repository: | ||
|
||
```text | ||
dnf -y install epel-release | ||
``` | ||
|
||
4. Enable the additional repositories to resolve dependencies: | ||
|
||
```text | ||
dnf config-manager --set-enabled PowerTools | ||
``` | ||
|
||
5. Disable the built-in PostgreSQL module: | ||
|
||
```text | ||
dnf -qy module disable postgresql | ||
``` | ||
6. Install the selected package: | ||
|
||
```text | ||
dnf install edb-as<xx>-mongo_fdw | ||
``` | ||
|
||
where `xx` is the server version number. | ||
|
||
|
||
## Installing the MongoDB Foreign Data Wrapper on a Debian or Ubuntu Host | ||
|
||
To install the MongoDB Foreign Data Wrapper on a Debian or Ubuntu host, you must have credentials that allow access to the EDB repository. To request credentials for the repository, visit the [EDB website](https://www.enterprisedb.com/repository-access-request/). | ||
|
||
The following steps will walk you through using the EDB apt repository to install a Debian package. When using the commands, replace the `username` and `password` with the credentials provided by EDB. | ||
|
||
1. Assume superuser privileges: | ||
|
||
```text | ||
sudo su – | ||
``` | ||
|
||
2. Configure the EDB repository: | ||
|
||
On Debian 9 and Ubuntu: | ||
|
||
```text | ||
sh -c 'echo "deb https://username:[email protected]/$(lsb_release -cs)-edb/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/edb-$(lsb_release -cs).list' | ||
``` | ||
|
||
On Debian 10: | ||
|
||
1. Set up the EDB repository: | ||
|
||
```text | ||
sh -c 'echo "deb [arch=amd64] https://apt.enterprisedb.com/$(lsb_release -cs)-edb/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/edb-$(lsb_release -cs).list' | ||
``` | ||
|
||
1. Substitute your EDB credentials for the `username` and `password` in the following command: | ||
|
||
```text | ||
sh -c 'echo "machine apt.enterprisedb.com login <username> password <password>" > /etc/apt/auth.conf.d/edb.conf' | ||
``` | ||
|
||
3. Add support to your system for secure APT repositories: | ||
|
||
```text | ||
apt-get install apt-transport-https | ||
``` | ||
|
||
4. Add the EDB signing key: | ||
|
||
```text | ||
wget -q -O - https://<username>:<password>@apt.enterprisedb.com/edb-deb.gpg.key | apt-key add - | ||
``` | ||
|
||
5. Update the repository metadata: | ||
|
||
```text | ||
apt-get update | ||
``` | ||
|
||
6. Install the Debian package: | ||
|
||
```text | ||
apt-get install edb-as<xx>-mongo-fdw | ||
``` | ||
|
||
where `xx` is the server version number. |
45 changes: 45 additions & 0 deletions
45
product_docs/docs/mongo_data_adapter/5.2.9/05_updating_the_mongo_data_adapter.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
title: "Updating the MongoDB Foreign Data Wrapper" | ||
--- | ||
|
||
<div id="updating_the_mongo_data_adapter" class="registered_link"></div> | ||
|
||
## Updating an RPM Installation | ||
|
||
If you have an existing RPM installation of MongoDB Foreign Data Wrapper, you can use yum or dnf to upgrade your repository configuration file and update to a more recent product version. To update the `edb.repo` file, assume superuser privileges and enter: | ||
|
||
- On RHEL or CentOS 7: | ||
|
||
`yum upgrade edb-repo` | ||
|
||
- On RHEL or CentOS 7 on PPCLE: | ||
|
||
`yum upgrade edb-repo` | ||
|
||
- On RHEL or CentOS 8: | ||
|
||
`dnf upgrade edb-repo` | ||
|
||
yum or dnf will update the `edb.repo` file to enable access to the current EDB repository, configured to connect with the credentials specified in your `edb.repo` file. Then, you can use yum or dnf to upgrade any installed packages: | ||
|
||
- On RHEL or CentOS 7: | ||
|
||
`yum upgrade edb-as<xx>-mongo_fdw edb-libmongoc-libs` | ||
|
||
- On RHEL or CentOS 7 on PPCLE: | ||
|
||
`yum upgrade edb-as<xx>-mongo_fdw edb-libmongoc-libs` | ||
|
||
- On RHEL or CentOS 8: | ||
|
||
`dnf upgrade edb-as<xx>-mongo_fdw` | ||
|
||
where `xx` is the server version number. | ||
|
||
## Updating MongoDB Foreign Data Wrapper on a Debian or Ubuntu Host | ||
|
||
To update MongoDB Foreign Data Wrapper on a Debian or Ubuntu Host, use the following command: | ||
|
||
`apt-get --only-upgrade install edb-as<xx>-mongo-fdw edb-libmongoc` | ||
|
||
where `xx` is the server version number. |
Oops, something went wrong.