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
9) Note that you don't need the kibana section - as it just creates more junk in the logs to have to look at, so it is commented out.
122
+
I included here so that others may see how to bring up both if they need it sometime in the future.
123
+
124
+
10) Open up another termial window to the same directory. In this new termainal and in the same directory where docker-compose.yml exists run the command:
125
+
docker compose up
126
+
127
+
This will load up the elastic search 8.15.5 image from the web and store it in your docker image. Then will will start up elastic search 8.15.5.
128
+
It will also create a new directory called esdata in your directory. This is where elastic search will store its data so that the data is retained
129
+
after elastic search is stopped and restarted. This window will also print the elastic search logs.
130
+
131
+
11) Once it has started, go back INTO your zip directory (mine is called zip8.15) and zip up the files using the following command:
132
+
zip -r cmr-es-spatial-plugin-8.15.5.zip \
133
+
clojure-1.11.2.jar \
134
+
spec.alpha-0.3.218.jar \
135
+
cmr-common-lib-0.1.1-SNAPSHOT.jar \
136
+
cmr-spatial-lib-0.1.0-SNAPSHOT.jar \
137
+
jackson-dataformat-cbor-2.13.3.jar \
138
+
jackson-core-2.13.3.jar \
139
+
jackson-dataformat-smile-2.13.3.jar \
140
+
joda-time-2.8.1.jar \
141
+
primitive-math-0.1.4.jar \
142
+
jafama-2.3.1.jar \
143
+
core.matrix-0.54.0.jar \
144
+
vectorz-clj-0.28.0.jar \
145
+
clojure-utils-0.6.1.jar \
146
+
vectorz-0.44.0.jar \
147
+
mathz-0.3.0.jar \
148
+
randomz-0.3.0.jar \
149
+
edn-java-0.4.4.jar \
150
+
assertions-0.2.0.jar \
151
+
math.combinatorics-0.1.4.jar \
152
+
cheshire-5.12.0.jar \
153
+
cmr-es-spatial-plugin-0.1.0-SNAPSHOT.jar \
154
+
plugin-descriptor.properties
155
+
156
+
12) copy cmr-es-spatial-plugin-8.15.5.zip to your working directory
157
+
158
+
13) run the following to get the plugin into the docker container - my docker container name is es-spatial-plugin-elasticsearch-1.
159
+
if yours is different then you will need to modify the command to use your container name. You will get an error when trying to copy if
160
+
your container name is wrong. You can find your container name in docker desktop.
17) restart Elastic search: in the docker desktop click on the vertical ... on the right side of the elastic search container and select restart
176
+
177
+
18) Bring up your external CMR database
178
+
179
+
19) bring up CMR
180
+
since I am using an external database and elastic, after the first time I ran the CMR, I needed to comment out (bootstrap/bootstrap started-system)
181
+
from access-control-app/src/cmr/access_control/system.clj because the ACLs already exist. The CMR won't come up because access control fails because the ACLs
182
+
already exist.
183
+
184
+
20) ingest a collection record that contains a spatial extent - mine used a bounding box.
185
+
186
+
21) search for that record using a spatial extent search ( a spatial extent search will invoke the spatial plugin.) You should get your search
187
+
response back without crashing elastic search.
188
+
189
+
During the process of figuring out the libraries, elastic search would crash. In the elastic search logs, either from the container or the terminal
190
+
where I ran docker compose up, look for Cause and also ClassNotFoundException. Then I figured out which library contained that class. Then I copied
191
+
that jar file into my zip directory, zipped up my file. Then I had to delete my elastic search container, delete the esdata directory, bring down CMR.
192
+
Then I had to follow the above instructions to bring everything back up and try again. I kept up this process, until I got search results back without
0 commit comments