-
Notifications
You must be signed in to change notification settings - Fork 40
Fix entry point and other things #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
6d3b2a0
6c20d76
582673e
74f1f40
39ac58a
127a554
242c699
4577ab7
de64f41
6107d2c
3fd8faa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# building the current images | ||
|
||
**step 0: clone the repos** | ||
|
||
`git clone https://github.com/geoHeil/geodocker-geomesa.git` | ||
|
||
**step 1: choose correct settings** | ||
|
||
- choose settings for accumulo / geomesa / ... version which fits your environment | ||
- if there are major changes you might need to recompile geomsa as well | ||
``` | ||
git clone https://github.com/locationtech/geomesa.git | ||
cd geomesa | ||
git checkout geomesa_2.11-1.3.0 | ||
update ./build.sh to desired version numbers then | ||
build/mvn clean install -DskipTests=true #test failures otherwise (timeouts on macbook) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. GeoMesa releases are available on LocationTech's Nexus repo. Would it be possible to skip this step? |
||
``` | ||
|
||
**step 2: build the image for the tutorial** | ||
``` | ||
git clone https://github.com/geoHeil/geomesa-tutorials.git | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Eh, we should point to the 'official' GeoMesa-Tutorials repo. |
||
cd geomesa-tutorials/docker-tutorial/ | ||
docker build -t geomesa-tutorial:1.3.0 . | ||
``` | ||
|
||
**step 3: start all the images** | ||
|
||
``` | ||
docker-compose up | ||
``` | ||
|
||
**step 4: run the quickstart** | ||
|
||
- connect into the java container which is already running | ||
``` | ||
docker ps # shows all the containers | ||
e5b2bb33c0b0 geomesa-tutorial:1.3.0 # I see this one | ||
docker exec -ti <id> bash # id is here e5b2bb33c0b0 | ||
``` | ||
|
||
Now run the quickstart. This requires connection credentials as defined in the `docker-compose.yml` file: | ||
|
||
``` | ||
java -cp geomesa-quickstart-accumulo/target/geomesa-quickstart-accumulo-1.3.0.jar \ | ||
com.example.geomesa.accumulo.AccumuloQuickStart \ | ||
-instanceId accumulo \ | ||
-zookeepers zookeeper \ | ||
-user root \ | ||
-password GisPwd \ | ||
-tableName quickstart | ||
``` | ||
- you can monitor accumulo here http://localhost:9995/accumulo | ||
|
||
# TODO | ||
|
||
- currently it is crashing | ||
- checkout geomesas gitter, there are some really interesting notes | ||
- apparently the iterators ore (not yet out of the box) available in the geodocker implementation | ||
- you need to add the jar into `ACCUMULO_HOME/lib` to *globally* install it. Otherwise namespaces are possible as well | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Testing locally is definitely good. Did you have a chance to figure out some of these options? |
||
``` | ||
The version of ZooKeeper being used doesn't support Container nodes. CreateMode.PERSISTENT will be used instead. | ||
Configured server-side iterators do not match client version - client version: 1.3.0, server version: unavailable | ||
Creating new features | ||
Inserting new features | ||
Submitting query | ||
Exception in thread "main" java.lang.RuntimeException: org.apache.accumulo.core.client.impl.AccumuloServerException: Error on server 845c80b29b3a:9997 | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
usage() { echo "Usage: $0 [-t <tag>] [-g <geomesa.version>] [-a <accumulo.version>]" 1>&2; exit 1; } | ||
|
||
ACCUMULO_VERSION=1.7.2 | ||
GEOMESA_VERSION=1.3.0-m3-SNAPSHOT | ||
ACCUMULO_VERSION=1.8.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My preference would be to stick to Accumulo 1.7.2. GeoMesa 1.3.x is built against it. User needing to use Accumulo 1.8.0 need to build GeoMesa with a profile. |
||
GEOMESA_VERSION=1.3.0 | ||
|
||
while getopts ":t:g:a:" o; do | ||
case "${o}" in | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are merging this, it'd be good for the docs to point to the GeoDocker repo.