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
NB: This step is only required, because the GeoMesa artifacts have not yet been published to a public Maven repository. With the upcoming 1.0 release of GeoMesa, these artifacts will be available at LocationTech's Nexus server, and this download-and-build step will become obsolete.
30
+
Before you begin, it is assumed that at this point you have successfully completed the [GeoMesa-Deployment](/geomesa-deployment/) tutorial.
31
+
The deployment tutorial provides instructions for building and deploying GeoMesa to Accumulo and GeoServer, and is a prerequisite to the quickstart.
54
32
55
33
### DOWNLOAD AND BUILD THE TUTORIAL CODE
56
34
@@ -70,19 +48,13 @@ mvn clean install
70
48
71
49
When this is complete, it should have built a JAR file that contains all of the code you need to run the tutorial.
72
50
73
-
### INSTALL GEOMESA ACCUMULO ITERATORS
74
-
75
-
After 'mvn clean install' finishes, you should have a JAR in geomesa-distributed-runtime/target/ named geomesa-distributed-runtime-accumulo1.5-VERSION.jar.
76
-
77
-
This JAR contains the GeoMesa Accumulo Iterators which are necessary to query GeoMesa. This JAR needs to be copied to $ACCUMULO_HOME/lib/ext on each tablet server.
8. Bierce|343|Wed Aug 06 04:59:22 EDT 2014|POINT (-76.66826220670282 -37.44503877750368)|null
82
+
9. Bierce|259|Thu Aug 28 15:59:30 EDT 2014|POINT (-76.90122194030118 -37.148525741002466)|null
83
+
{% endhighlight %}
110
84
111
85
### INSIGHT INTO HOW THE TUTORIAL WORKS
112
86
113
87
The source code is meant to be accessible for this tutorial, but here is a high-level breakdown of the sections that are relevant:
114
88
115
-
* lines 3-30: package imports
116
-
* lines 65-109: helper code to establish the command-line parser for Accumulo options
117
-
* lines 111-118: create a `HashMap` of Accumulo parameters that will be used to fetch a `DataStore`
118
-
* lines 120-142: defines the custom `FeatureType` used in the tutorial. There are five fields: Who, What, When, Where, and Why.
119
-
* lines 144-192: creates a collection of new features, each of which is initialized to some randomized set of values
120
-
* lines 194-201: instructs the `DataStore` to write the collection of new features to the GeoMesa-managed Accumulo table
121
-
* lines 203-226: given a set of geometric bounds, temporal bounds, and an optional attribute-only expression, construct a common query language (CQL) filter that embodies these constraints. This filter will be used to query data.
122
-
* lines 228-256: query for records; for each, print out the five field (attribute) values
123
-
* lines 258-293: this is the main entry point; it collects command-line parameters, builds the `DataStore`, creates and inserts new records, and then kicks off a single query
89
+
* lines 3-31: package imports
90
+
* lines 65-110: helper code to establish the command-line parser for Accumulo options
91
+
* lines 112-119: create a `HashMap` of Accumulo parameters that will be used to fetch a `DataStore`
92
+
* lines 121-143: defines the custom `FeatureType` used in the tutorial. There are five fields: Who, What, When, Where, and Why.
93
+
* lines 145-193: creates a collection of new features, each of which is initialized to some randomized set of values
94
+
* lines 195-202: instructs the `DataStore` to write the collection of new features to the GeoMesa-managed Accumulo table
95
+
* lines 204-227: given a set of geometric bounds, temporal bounds, and an optional attribute-only expression, construct a common query language (CQL) filter that embodies these constraints. This filter will be used to query data.
96
+
* lines 229-257: query for records; for each, print out the five field (attribute) values
97
+
* lines 259-294: this is the main entry point; it collects command-line parameters, builds the `DataStore`, creates and inserts new records, and then kicks off a single query
124
98
125
99
### VISUALIZE DATA WITH GEOSERVER
126
100
127
-
You should have an instance of GeoServer, version 2.5.2, running somewhere that has access to your Accumulo instance.
128
-
129
-
#### Geoserver Setup
130
-
131
-
Be sure that you have installed the optional [WPS](http://docs.geoserver.org/stable/en/user/extensions/wps/install.html) package installed for your version of GeoServer.
132
-
133
-
Copy the the `geomesa-plugin-accumulo1.5-1.0.0-rc.4-SNAPSHOT-geoserver-plugin.jar` library file from the GeoMesa directory you built into your GeoServer's library directory.
There are additional JARs that are specific to your installation that you will also need to copy to GeoServer's `lib` directory. These may include (the specific JARs
148
-
are included only for reference, and only apply if you are using Accumulo 1.5.1 and Hadoop 2.2):
149
-
150
-
* Accumulo
151
-
* accumulo-core-1.5.1.jar
152
-
* accumulo-fate-1.5.1.jar
153
-
* accumulo-trace-1.5.1.jar
154
-
* Zookeeper
155
-
* zookeeper-3.4.5.jar
156
-
* Hadoop core
157
-
* hadoop-auth-2.2.0.jar
158
-
* hadoop-client-2.2.0.jar
159
-
* hadoop-common-2.2.0.jar
160
-
* hadoop-hdfs-2.2.0.jar
161
-
* hadoop-mapreduce-client-app-2.2.0.jar
162
-
* hadoop-mapreduce-client-common-2.2.0.jar
163
-
* hadoop-mapreduce-client-core-2.2.0.jar
164
-
* hadoop-mapreduce-client-jobclient-2.2.0.jar
165
-
* hadoop-mapreduce-client-shuffle-2.2.0.jar
166
-
* Thrift
167
-
* libthrift-0.9.1.jar
168
-
169
-
There are also GeoServer JARs that need to be updated for Accumulo (also in the lib directory):
170
-
171
-
* commons-configuration: Accumulo requires commons-configuration 1.6 and previous versions should be replaced
172
-
* commons-lang: GeoServer ships with commons-lang 2.1, but Accumulo requires replacing that with version 2.4
173
-
174
-
Restart GeoServer.
175
-
176
101
#### Register the GeoMesa store with GeoServer
177
102
178
103
Log into GeoServer using your user and password credentials. Click "Stores" and "Add new Store".
Copy file name to clipboardExpand all lines: _posts/2014-05-16-geomesa-tubeselect.md
+3-29Lines changed: 3 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: WPS -- Tube Select
2
+
title: WPS Tube Select
3
3
author: andrew
4
4
layout: tutorial
5
5
redirect_from:
@@ -26,35 +26,9 @@ Imagine you are traveling from Washington, DC to New York City and are intereste
26
26
27
27
Time-interpolated queries are more complex than normal spatial or temporal queries as the input is a sequence of points or lines with an increasing time attribute. Time-interpolated queries are colloquially known as **_tube-selects_**.
28
28
29
-
### Configuring Geoserver
30
-
To get started, install the latest stable release of [2.5.x Geoserver](http://geoserver.org/release/stable/). You'll also need to install the [WPS Plugin](http://docs.geoserver.org/stable/en/user/extensions/wps/install.html). Depending on your hardware, it may be important to set the limits for your WMS plugin to be higher or disable them completely by clicking "WMS" under "Services" on the left side of the admin page of Geoserver. Check with your server administrator to determine the correct settings. For massive queries, the standard 60 second timeout may be too short.
You'll also need to install various provided dependencies that are needed by GeoMesa but are marked provided. This allows your server administrators to manage dependencies and upgrade for bugfixes. We have tried to include all the necessary jars. Be careful that you don't stomp any other dependencies when installing provided jars:
To complete this tutorial you will have needed to follow the instructions in the [geomesa-deployment](http://www.geomesa.org/geomesa-deployment/) tutorial first to deploy GeoMesa and the GeoServer Plugin.
58
32
59
33
Once everything is installed you should see "geomesa:TubeSelect" appear in the [WPS Request Builder](http://docs.geoserver.org/stable/en/user/extensions/wps/requestbuilder.html)
0 commit comments