You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enforce development environment instructions to Elasticsearch 8.11.3 (geonetwork#7866)
* docker - missing mentioned kibana configuration
- missing kibana configuration provided by Pierre Mauduit (via geonetwork#6284)
- using latest geonetwork image (rather htan 3.99.0)
- Setup and document docker folder as independent testing environments
* reorder es/README.md to list recommended best practice first
* Use enforcer plugin to check es/README.md and es/docker-compose.yml
* Also enforce version check of es-dashboard/README.md
* Additional troubleshooting advise for low disk space and blocked index read-only
* Apply suggestions from code review
Accept feedback from review
Co-authored-by: Jose García <[email protected]>
---------
Co-authored-by: Jose García <[email protected]>
These docker images are intended for development and debugging. For production we recommend the official GeoNetwork docker images at https://github.com/geonetwork/docker-geonetwork.git repository.
Copy file name to clipboardexpand all lines: docker/gn-cas-ldap/README.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,13 @@
1
-
# Introduction
1
+
# GeoNetwork CAS Test Environment
2
2
3
3
This composition is meant to make runtime testing the CAS integration of
4
4
GeoNetwork easier.
5
5
6
6
This composition also integrates a LDAP, so that testing the
7
7
config-spring-cas-ldap configuration is also possible.
8
8
9
+
These docker images are intended for development and debugging. For production we recommend the official GeoNetwork docker images at https://github.com/geonetwork/docker-geonetwork.git repository.
10
+
9
11
# Prerequisites
10
12
11
13
It requires the GeoNetwork webapp to be built first:
This composition is meant to make runtime testing the PostgreSQL integration of
4
+
GeoNetwork easier.
5
+
6
+
This folder provides a ``docker-compose.yml`` file for local testing.
7
+
8
+
These docker images are intended for development and debugging. For production we recommend the official GeoNetwork docker images at https://github.com/geonetwork/docker-geonetwork.git repository.
Elasticsearch 8 has security enabled by default. To disable this configuration for development, update the file `config/elasticsearch.yml` adding at the end:
Elasticsearch 8 has security enabled by default. To disable this configuration for development, update the file `config/elasticsearch.yml` adding at the end:
3. Check that elasticsearch is running by visiting http://localhost:9200 in a browser
66
-
67
-
## Docker compose installation
68
-
69
-
1. Use docker compose with the provided [docker-compose.yml](docker-compose.yml):
76
+
3. Start ES using:
70
77
71
-
```
72
-
cd es
73
-
docker-compose up
78
+
```shell script
79
+
./bin/elasticsearch
74
80
```
75
81
76
-
3. Check that it is running using your browser:
77
-
78
-
* Elasticsearch: http://localhost:9200
79
-
* Kibana: http://localhost:5601
82
+
4. Check that elasticsearch is running by visiting http://localhost:9200 in a browser
80
83
81
84
# Configuration
82
85
86
+
## Index management
87
+
83
88
Optionally you can manually create index but they will be created by the catalogue when
84
89
the Elastic instance is available and if index does not exist.
85
90
@@ -122,7 +127,7 @@ Don't hesitate to propose a Pull Request with the new language.
122
127
123
128
1. Configure ES to start on server startup. It is recommended to protect `gn-records` index from the Internet access.
124
129
125
-
* Note that for debian-based servers the current deb download (7.3.2) can be installed rather than installing manually and can be configured to run as a service using the instructions here: https://www.elastic.co/guide/en/elasticsearch/reference/current/starting-elasticsearch.html
130
+
* Note that for debian-based servers the current deb download (8.11.3) can be installed rather than installing manually and can be configured to run as a service using the instructions here: https://www.elastic.co/guide/en/elasticsearch/reference/current/starting-elasticsearch.html
126
131
127
132
128
133
# Troubleshoot
@@ -163,3 +168,22 @@ field expansion for [*] matches too many fields, limit: 1024
163
168
An option is to restrict `queryBase` to limit the number of field to query on. `any:(${any}) resourceTitleObject.default:(${any})^2` is a good default. Using `${any}` will probably trigger the error if the number of records is high.
164
169
165
170
The other option is to increase `indices.query.bool.max_clause_count`.
171
+
172
+
173
+
## Disk space threshold
174
+
175
+
The server application will refuse to write new content unless there is enough free space available (by default 1/4 of your hard drive).
Copy file name to clipboardexpand all lines: es/es-dashboards/README.md
+29-26
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,20 @@
1
1
# Install, configure and start Kibana
2
2
3
-
## Manual installation
4
-
5
-
Download Kibana from https://www.elastic.co/downloads/kibana. For Geonetwork 3.8.x download at least version 7.2.1
3
+
## Installation options
6
4
7
-
Set Kibana base path and index name in config/kibana.yml:
5
+
### Docker compose installation (Recommended)
8
6
9
-
```
10
-
server.basePath: "/geonetwork/dashboards"
11
-
server.rewriteBasePath: false
12
-
```
7
+
1. Use docker compose with the provided [docker-compose.yml](es/docker-compose.yml):
13
8
14
-
Adapt if needed ```elasticsearch.url``` and ```server.host```.
15
-
16
-
Start Kibana manually:
9
+
```
10
+
cd es
11
+
docker-compose up
12
+
```
17
13
18
-
```
19
-
cd kibana/bin
20
-
./kibana
21
-
```
14
+
3. Check that it is running using your browser:
15
+
16
+
* Elasticsearch: http://localhost:9200
17
+
* Kabana: http://localhost:5601
22
18
23
19
## Maven installation
24
20
@@ -41,20 +37,26 @@ cd kibana/bin
41
37
mvn exec:exec -Dkb-start
42
38
```
43
39
44
-
## Docker compose installation
40
+
## Manual installation
41
+
42
+
1. Download Kibana 8.11.3 from https://www.elastic.co/downloads/kibana
43
+
44
+
2. Set Kibana base path and index name in config/kibana.yml:
45
+
46
+
```
47
+
server.basePath: "/geonetwork/dashboards"
48
+
server.rewriteBasePath: false
49
+
```
50
+
51
+
3. Adapt if needed ```elasticsearch.url``` and ```server.host```.
45
52
46
-
1. Use docer compose with the provided [docker-compose.yml](docker-compose.yml):
53
+
4. Start Kibana manually:
47
54
48
55
```
49
-
cd es
50
-
docker-compose up
56
+
cd kibana/bin
57
+
./kibana
51
58
```
52
59
53
-
3. Check that it is running using your browser:
54
-
55
-
* Elasticsearch: http://localhost:9200
56
-
* Kabana: http://localhost:5601
57
-
58
60
## Import Configuration
59
61
60
62
1. Kibana should be running from:
@@ -69,16 +71,17 @@ cd kibana/bin
69
71
http://localhost:8080/geonetwork/dashboards
70
72
```
71
73
74
+
72
75
## Troubleshoot
73
76
74
77
If it does not start properly, check Kibana log files (eg. it may fail if Elasticsearch version
75
78
is not compatible with Kibana version).
76
79
77
-
Visit Kibana in a browser using one of the above links and go to 'Saved Objects'. Import export.ndjson from https://github.com/geonetwork/core-geonetwork/blob/4.0.x/es/es-dashboards/data/export.ndjson
80
+
Visit Kibana in a browser using one of the above links and go to 'Saved Objects'. Import export.ndjson from https://github.com/geonetwork/core-geonetwork/blob/main/es/es-dashboards/data/export.ndjson
78
81
79
82
### Production Use
80
83
81
-
Kibana can be installed from the debian files, and 7.3.2 is confirmed as working with Geonetwork 3.8.x.
84
+
Kibana can be installed from the debian files, and Kibana 8.11.3 is confirmed as working with Geonetwork 4.4.x.
82
85
83
86
Set Kibana to start when the server starts up, using the instructions at https://www.elastic.co/guide/en/kibana/current/start-stop.html
0 commit comments