Added the default volumes for ElasticSearch (#9452)

* Added the default volumes for ElasticSearch

* Added docs for ES Volumes

* Updated as per the comments

* Updated as per the comments

* Added the docs for bare-metal upgrade

* Apply suggestions from code review

* Update docker/local-metadata/docker-compose.yml

* Pylint check addressed

Co-authored-by: “Vijay” <“vijay.l@deuexsolutions.com”>
Co-authored-by: Nahuel <nahuel@getcollate.io>
This commit is contained in:
Vj-L 2022-12-21 23:59:49 +05:30 committed by GitHub
parent 66a6e5e9a9
commit f3855a1909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 45 additions and 4 deletions

View File

@ -48,6 +48,8 @@ services:
ports:
- "9200:9200"
- "9300:9300"
volumes:
- ./docker-volume/es-data:/usr/share/elasticsearch/data
openmetadata-server:
container_name: openmetadata_server

View File

@ -46,6 +46,8 @@ services:
ports:
- "9200:9200"
- "9300:9300"
volumes:
- ./docker-volume/es-data:/usr/share/elasticsearch/data
openmetadata-server:
container_name: openmetadata_server

View File

@ -87,7 +87,6 @@ docker compose -f docker/local-metadata/docker-compose-postgres.yml down
docker compose -f docker/local-metadata/docker-compose.yml down
echo "Starting Local Docker Containers"
mkdir -p docker-volume && mkdir -p docker-volume/db-data
echo "Using ingestion dependency: ${INGESTION_DEPENDENCY:-all}"
if [[ $database == "postgresql" ]]; then

View File

@ -72,8 +72,7 @@ def docker_volume():
# create a main directory
if not os.path.exists(MAIN_DIR):
os.mkdir(MAIN_DIR)
db = "db-data"
path_to_join = [db]
path_to_join = ["db-data", "es-data"]
final_path = []
for path in path_to_join:
temp_path = os.path.join(MAIN_DIR, path)

View File

@ -41,7 +41,20 @@ services:
- ./docker-volume/db:/var/lib/postgresql/data
...
```
## Volumes for Elasticsearch container:
Following are the changes we have to do while mounting the directory for Elasticsearch in OpenMetadata.
- Update or add the volume in the docker-compose.yml file.
Open the file `docker-compose.yml` downloaded from the Release page [Link](https://github.com/open-metadata/OpenMetadata/releases/download/0.13.0-release/docker-compose.yml) .
```commandline
version: "3.9"
services:
elasticsearch:
...
volumes:
- ./docker-volume/es-data:/usr/share/elasticsearch/data
...
```
## Volumes for ingestion container
Following are the changes we have to do while mounting the directory for ingestion in OpenMetadata. Here we will maintaing different directory for dag_generated_configs, dags and secrets.
- Remove the below section from the docker-compose.yml file.

View File

@ -19,7 +19,26 @@ This guide assumes that you have an OpenMetadata deployment that you installed a
It is adviced to go through [openmetadata release notes](/deployment/upgrade/versions/012-to-013) before starting the upgrade process.
</Warning>
### Backup 0.12.3 data
1. Make sure your instance is connected to the Database server
2. Create a virtual environment to install an upgraded `metadata` version to run the backup command:
1. `python -m venv venv`
2. `source venv/bin/activate`
3. `PIP_USER=false pip install openmetadata-ingestion~=0.13.1`
3. Validate the installed `metadata` version with `python -m metadata --version`, which should tell us that we are
indeed at 0.13.1. Notice the `python -m metadata` vs. `metadata`.
4. Run the backup using the updated `metadata` CLI:
```
python -m metadata backup -u openmetadata_user -p openmetadata_password -H mysql -d openmetadata_db --port 3306
```
if using Postgres:
```
python -m metadata backup -u openmetadata_user -p openmetadata_password -H postgresql -d openmetadata_db --port 5432 -s public
```
5. This will generate the .sql file which can be used for the backup
In our case, the backup file was named `openmetadata_202212201528_backup.sql`. You can copy the name from the backup
command output.
### 1. Download the binaries for the release you want to install
OpenMetadata release binaries are maintained as GitHub releases.

View File

@ -29,7 +29,14 @@ If you are upgrading production this is the recommended version to upgrade.
## Breaking Changes from 0.13.0 Feature Release
OpenMetadata Release 0.13.0 introduces below breaking changes -
OpenMetadata Release 0.13.x introduces below breaking changes:
### Docker Volumes
OpenMetadata Release 0.13.x introduces Default Docker Volumes for Databse(MYQSL, PostgreSQL) and ElasticSearch with Docker deployment.
- If you are looking for the fresh deployment of 0.13.x - [here](https://docs.open-metadata.org/deployment/docker)
- If you are looking for upgrading of the new version i.e 0.13.x - [here](https://docs.open-metadata.org/deployment/upgrade/docker)
### dbt Workflow
dbt ingestion has been separated from the metadata ingestion. It can now be configured as a separate workflow after completing the metadata ingestion workflow.