1 |
2131
|
costa
|
<!--
|
2 |
|
|
* harvester.html
|
3 |
|
|
*
|
4 |
|
|
* Authors: Duane Costa
|
5 |
|
|
* Copyright: 2004 Regents of the University of California and the
|
6 |
|
|
* National Center for Ecological Analysis and Synthesis,
|
7 |
|
|
* and the University of New Mexico.
|
8 |
|
|
* For Details: http://www.nceas.ucsb.edu/
|
9 |
|
|
* Created: 2004 April 9
|
10 |
|
|
* Version:
|
11 |
|
|
* File Info: '$ '
|
12 |
|
|
*
|
13 |
|
|
*
|
14 |
|
|
-->
|
15 |
|
|
<HTML>
|
16 |
|
|
<HEAD>
|
17 |
|
|
<TITLE>Metacat Harvester</TITLE>
|
18 |
|
|
<link rel="stylesheet" type="text/css" href="@docrooturl@default.css">
|
19 |
|
|
</HEAD>
|
20 |
|
|
<BODY>
|
21 |
|
|
<table width="100%">
|
22 |
|
|
<tr>
|
23 |
|
|
<td class="tablehead" colspan="2">
|
24 |
|
|
<p class="label">Metacat Harvester</p>
|
25 |
|
|
</td>
|
26 |
|
|
<td class="tablehead" colspan="2" align="right">
|
27 |
|
|
<a href="./properties.html">Back</a> |
|
28 |
|
|
<a href="./metacattour.html">Home</a> |
|
29 |
|
|
<a href="./unimplem.html">Next</a>
|
30 |
|
|
</td>
|
31 |
|
|
</tr>
|
32 |
|
|
</table>
|
33 |
|
|
<h4>Introduction</h4>
|
34 |
|
|
The Metacat Harvester (henceforth referred to as "Harvester") is a
|
35 |
|
|
program that automates the retrieval of EML documents from one or more sites
|
36 |
|
|
and their subsequent upload (insert or update) to Metacat. Harvester uses pull
|
37 |
|
|
technology to retrieve and upload documents to Metacat on a regularly
|
38 |
|
|
scheduled basis.
|
39 |
|
|
<P>
|
40 |
|
|
Although Harvester is included with a Metacat installation (beginning with
|
41 |
|
|
Metacat version 1.4.0), it is an extention to Metacat's functionality
|
42 |
|
|
that may be used optionally.
|
43 |
|
|
</P>
|
44 |
|
|
<h4>Definitions</h4>
|
45 |
|
|
The following table defines a number of terms that are useful in discussing
|
46 |
|
|
Harvester and its features.
|
47 |
|
|
<br><br>
|
48 |
|
|
<table border="1">
|
49 |
|
|
<tr>
|
50 |
|
|
<td><b>Term</b></td>
|
51 |
|
|
<td><b>Definition</b></td>
|
52 |
|
|
</tr>
|
53 |
|
|
<tr>
|
54 |
|
|
<td>Harvester</td>
|
55 |
|
|
<td>The Harvester program, a Java application that is bundled with the
|
56 |
|
|
Metacat distribution. When a user installs Metacat on a system,
|
57 |
|
|
the Harvester program is automatically included in the
|
58 |
|
|
installation.
|
59 |
|
|
</td>
|
60 |
|
|
</tr>
|
61 |
|
|
<tr>
|
62 |
|
|
<td>Harvester Administrator</td>
|
63 |
|
|
<td>The individual who installs and manages Harvester. Typically, this
|
64 |
|
|
would be the same individual who installs and manages Metacat at a
|
65 |
|
|
given installation.
|
66 |
|
|
</td>
|
67 |
|
|
</tr>
|
68 |
|
|
<tr>
|
69 |
|
|
<td>Harvest Site</td>
|
70 |
|
|
<td>A location from which Harvester can retrieve EML documents. A given
|
71 |
|
|
Harvester can retrieve documents from any number of different
|
72 |
|
|
Harvest Sites.
|
73 |
|
|
</td>
|
74 |
|
|
</tr>
|
75 |
|
|
<tr>
|
76 |
|
|
<td>Harvest</td>
|
77 |
|
|
<td>The act (by Harvester) of visiting a Harvest Site, retrieving a
|
78 |
|
|
number of EML documents, and inserting or updating the documents to
|
79 |
|
|
Metacat.
|
80 |
|
|
</td>
|
81 |
|
|
</tr>
|
82 |
|
|
<tr>
|
83 |
2185
|
costa
|
<td><a name="HarvestList" >Harvest List</a></td>
|
84 |
2131
|
costa
|
<td>An XML document that lists a set of EML documents to be harvested. The
|
85 |
|
|
Harvest List must conform to an XML Schema,
|
86 |
|
|
<a href="../../lib/harvester/harvestList.xsd">harvestList.xsd</a>.
|
87 |
|
|
</td>
|
88 |
|
|
</tr>
|
89 |
|
|
<tr>
|
90 |
|
|
<td>Site Contact</td>
|
91 |
|
|
<td>The individual at a particular Harvest Site who registers with
|
92 |
|
|
Harvester, composes a Harvest List, and periodically prepares
|
93 |
|
|
the site's EML documents for retrieval and upload to Metacat.
|
94 |
|
|
</td>
|
95 |
|
|
</tr>
|
96 |
|
|
<tr>
|
97 |
|
|
<td>Harvest List URL</td>
|
98 |
|
|
<td>A URL to the Harvest List, as specified by the Site Contact.
|
99 |
|
|
Each Harvest Site corresponds to a Harvest List URL. Harvester
|
100 |
|
|
uses the URL to locate and read a site's Harvest List.
|
101 |
|
|
</td>
|
102 |
|
|
</tr>
|
103 |
|
|
<tr>
|
104 |
|
|
<td>Document URL</td>
|
105 |
|
|
<td>A URL to an EML document, as specified in the Harvest List.
|
106 |
|
|
The Harvest List may contain any number of Document URLs. Each
|
107 |
|
|
Document URL provides a locator to a document to be harvested.
|
108 |
|
|
</td>
|
109 |
|
|
</tr>
|
110 |
|
|
<tr>
|
111 |
|
|
<td>Harvester Registration Page</td>
|
112 |
|
|
<td>A web page that provides a means for a Site Contact
|
113 |
|
|
to register with Harvester to schedule regular harvests from the
|
114 |
|
|
site. Registration involves logging in and then specifying various
|
115 |
|
|
settings for the Harvest Site, such as the Harvest List URL, the
|
116 |
|
|
harvest frequency, and the email address of the Site Contact.
|
117 |
|
|
</td>
|
118 |
|
|
</tr>
|
119 |
|
|
</table>
|
120 |
|
|
<h4>Managing Harvester</h4>
|
121 |
|
|
Harvester is managed by the Harvester Administrator. Typically, the same
|
122 |
|
|
individual who manages a Metacat server would also act as the Harvester
|
123 |
|
|
Administrator. The responsibilities of the Harvester Administrator include:
|
124 |
|
|
<ul>
|
125 |
|
|
<li><a href="#Configuring Harvester">Configuring Harvester</a></li>
|
126 |
|
|
<li><a href="#Running Harvester">Running Harvester</a></li>
|
127 |
|
|
<li><a href="#Reviewing Harvester">Reviewing Harvester reports to
|
128 |
|
|
the Harvester Administrator</a></li>
|
129 |
|
|
</ul>
|
130 |
|
|
<h5><a name="Configuring Harvester">Configuring Harvester</a></h5>
|
131 |
|
|
<p>Harvester must be configured to interact with a working Metacat
|
132 |
|
|
installation. Thus, a Metacat installation that has been properly
|
133 |
|
|
configured and installed is a pre-requisite to running Harvester.
|
134 |
|
|
Additionally, Harvester has a number of settable properties that
|
135 |
|
|
control its behavior. All Harvester configuration information is managed
|
136 |
|
|
in a single file,
|
137 |
2157
|
costa
|
<a href=../../lib/metacat.properties>metacat.properties</a>,
|
138 |
2131
|
costa
|
located at:
|
139 |
2157
|
costa
|
<pre> METACAT_HOME/lib/metacat.properties</pre>
|
140 |
2131
|
costa
|
where METACAT_HOME is the top-level directory that Metacat is
|
141 |
2157
|
costa
|
installed in.
|
142 |
2131
|
costa
|
</p>
|
143 |
2157
|
costa
|
<p>Harvester properties are grouped together in
|
144 |
|
|
<a href=../../lib/metacat.properties>metacat.properties</a>, beginning
|
145 |
|
|
after the comment line:
|
146 |
|
|
<pre><code> # Harvester properties</code></pre>
|
147 |
|
|
</p>
|
148 |
2131
|
costa
|
<p>The Harvester Administrator should edit
|
149 |
2157
|
costa
|
<a href=../../lib/metacat.properties>metacat.properties</a>,
|
150 |
|
|
setting appropriate values for the <code><b>harvesterAdministrator</b></code>
|
151 |
|
|
property, the <code><b>smtpServer</b></code> property, and possibly other
|
152 |
|
|
properties. The following table is a summary of each property and its function.
|
153 |
2131
|
costa
|
</p>
|
154 |
|
|
<table border="1">
|
155 |
|
|
<tr>
|
156 |
|
|
<td><b>Property</b></td>
|
157 |
|
|
<td><b>Description</b></td>
|
158 |
|
|
<td><b>Possible or default value</b></td>
|
159 |
|
|
</tr>
|
160 |
|
|
<tr>
|
161 |
|
|
<td>connectToMetacat</td>
|
162 |
|
|
<td>This property determines whether Harvester should connect to
|
163 |
|
|
Metacat to upload documents. It should be set to <code>true</code>
|
164 |
|
|
under most circumstances. Setting this property to <code>false</code>
|
165 |
|
|
can be useful for testing whether Harvester is able to retrieve
|
166 |
|
|
documents from a site without actually connecting to Metacat to
|
167 |
|
|
upload the documents.</td>
|
168 |
|
|
<td><code>true</code> | <code>false</code><br>
|
169 |
|
|
Default: <code>true</code>
|
170 |
|
|
</tr>
|
171 |
|
|
<tr>
|
172 |
|
|
<td>delay</td>
|
173 |
|
|
<td>The number of hours that Harvester will wait before beginning its
|
174 |
|
|
first harvest. For example, if Harvester is run at 1:00 p.m., and
|
175 |
|
|
the delay is set to 12, Harvester will begin its first harvest at
|
176 |
|
|
1:00 a.m.</td>
|
177 |
|
|
<td>Default: 0</td>
|
178 |
|
|
</tr>
|
179 |
|
|
<tr>
|
180 |
|
|
<td>harvesterAdministrator</td>
|
181 |
|
|
<td>The email address of the Harvester Administrator. Harvester will
|
182 |
|
|
send email reports to this address after every harvest.
|
183 |
|
|
</td>
|
184 |
|
|
<td>An email address</td>
|
185 |
|
|
</tr>
|
186 |
|
|
<tr>
|
187 |
|
|
<td>logPeriod</td>
|
188 |
|
|
<td>The number of days that Harvester should retain log entries of harvest
|
189 |
|
|
operations in the database. Harvester log entries record information
|
190 |
|
|
such as which documents were harvested, from which sites, and
|
191 |
|
|
whether any errors were encountered during the harvest. Log entries
|
192 |
|
|
older than <code>logPeriod</code> number of days are purged from the
|
193 |
|
|
database at the end of each harvest.</td>
|
194 |
|
|
<td>Default: 90</td>
|
195 |
|
|
</tr>
|
196 |
|
|
<tr>
|
197 |
|
|
<td>maxHarvests</td>
|
198 |
|
|
<td>The maximum number of harvests that Harvester should execute before
|
199 |
|
|
shutting down. When the Harvester program is executed, it will
|
200 |
|
|
continue running until it has executed <code>maxHarvests</code>
|
201 |
|
|
number of harvests and then the program will terminate.</td>
|
202 |
|
|
<td>Default: 30</td>
|
203 |
|
|
</tr>
|
204 |
|
|
<tr>
|
205 |
|
|
<td>period</td>
|
206 |
|
|
<td>The number of hours between harvests. Harvester will run a new
|
207 |
|
|
harvest every <code>period</code> number of hours, until the
|
208 |
|
|
<code>maxHarvests</code> number of harvests have been run.</td>
|
209 |
|
|
<td>Default: 24</td>
|
210 |
|
|
</tr>
|
211 |
|
|
<tr>
|
212 |
|
|
<td>smtpServer</td>
|
213 |
|
|
<td>The SMTP server that Harvester uses for sending email messages
|
214 |
|
|
to the Harvester Administrator and to Site Contacts.</td>
|
215 |
|
|
<td>A host name, for example: <code>somehost.institution.edu</code>
|
216 |
|
|
<br><br>
|
217 |
|
|
Default: <code>localhost</code>
|
218 |
|
|
<br><br>
|
219 |
|
|
Note that the default value will only work if the Harvester
|
220 |
|
|
host machine has been configured as a SMTP server.
|
221 |
|
|
</td>
|
222 |
|
|
</tr>
|
223 |
|
|
<tr>
|
224 |
|
|
<td>Harvester Operation Properties (GetDocError, GetDocSuccess, etc.)</td>
|
225 |
|
|
<td>This group of properties is used by Harvester to report information
|
226 |
|
|
about the operations it performs for inclusion in log
|
227 |
|
|
entries and email messages. Under most circumstances the values
|
228 |
|
|
of these properties should not be modified.</td>
|
229 |
|
|
<td> </td>
|
230 |
|
|
</tr>
|
231 |
|
|
</table>
|
232 |
|
|
<br>
|
233 |
|
|
<h5><a name="Running Harvester">Running Harvester</a></h5>
|
234 |
|
|
After Harvester has been appropriately
|
235 |
|
|
<a href="#Configuring Harvester">configured</a>,
|
236 |
|
|
it can be run as follows:
|
237 |
|
|
<ol>
|
238 |
|
|
<li>Open a system command window or terminal window.</li>
|
239 |
|
|
<li>Set the METACAT_HOME environment variable to the value of the Metacat
|
240 |
|
|
installation directory. Some examples follow:
|
241 |
|
|
<ul>
|
242 |
|
|
<li>On Windows:
|
243 |
|
|
<pre>set METACAT_HOME=C:\somePath\metacat</pre></li>
|
244 |
|
|
<li>On Linux/Unix (bash shell):
|
245 |
|
|
<pre>export METACAT_HOME=/home/somePath/metacat</pre></li>
|
246 |
|
|
</ul>
|
247 |
|
|
<li>cd to the following directory:
|
248 |
|
|
<ul>
|
249 |
|
|
<li>On Windows:
|
250 |
|
|
<pre>cd %METACAT_HOME%\lib\harvester</pre></li>
|
251 |
|
|
<li>On Linux/Unix:
|
252 |
|
|
<pre>cd $METACAT_HOME/lib/harvester</pre></li>
|
253 |
|
|
</ul>
|
254 |
|
|
<li>Run the appropriate Harvester shell script, as determined by the
|
255 |
|
|
operating system:
|
256 |
|
|
<ul>
|
257 |
|
|
<li>On Windows:
|
258 |
|
|
<pre>runHarvester.bat</pre></li>
|
259 |
|
|
<li>On Linux/Unix:
|
260 |
|
|
<pre>sh runHarvester.sh</pre></li>
|
261 |
|
|
</ul>
|
262 |
|
|
</li>
|
263 |
|
|
</ol>
|
264 |
|
|
<p>The Harvester application will start executing. It will begin its first
|
265 |
|
|
harvest after <code><b>delay</b></code> number of hours (as specified in the
|
266 |
2157
|
costa
|
<a href=../../lib/metacat.properties>metacat.properties</a>
|
267 |
2131
|
costa
|
file). The application will continue running a new harvest every
|
268 |
|
|
<code><b>period</b></code> number of hours until a <code><b>maxHarvests</b></code>
|
269 |
|
|
number of harvests have been completed.
|
270 |
|
|
</p>
|
271 |
|
|
<h5><a name="Reviewing Harvester">
|
272 |
|
|
Reviewing Harvester Reports to the Harvester Administrator</a></h5>
|
273 |
|
|
<P>
|
274 |
|
|
After every harvest, Harvester will send an email report to the Harvester
|
275 |
|
|
Administrator detailing the operations that were performed during the
|
276 |
|
|
harvest. The report will contain information about each of the Harvest Sites
|
277 |
|
|
that were harvested from, such as which EML documents were
|
278 |
|
|
harvested and whether any errors were encountered.
|
279 |
|
|
</P>
|
280 |
|
|
<p>
|
281 |
|
|
The harvest report will contain a list of log entries, where each log entry
|
282 |
|
|
describes an operation that was performed by Harvester. Log entries that
|
283 |
|
|
show a status value of 1 indicate that an error occurred during the
|
284 |
|
|
operation, while those that show a status value of 0 indicate that the
|
285 |
|
|
operation was completed successfully.
|
286 |
|
|
</p>
|
287 |
|
|
<P>The Harvester Administrator should review the report, paying particularly
|
288 |
|
|
close attention to any errors that are reported and to the accompanying error
|
289 |
|
|
messages that are displayed. When errors are reported at
|
290 |
|
|
a particular site, the Harvester Administrator should contact the Site
|
291 |
|
|
Contact to determine the source of the error and its resolution. See
|
292 |
|
|
<a href=#Reviewing>Reviewing Harvester Reports to the Site Contact</a> for a
|
293 |
|
|
description of common sources of errors at a Harvest Site.
|
294 |
|
|
</P>
|
295 |
|
|
<p>Errors that are independent of a particular site may indicate a problem
|
296 |
|
|
with Harvester itself, Metacat, or the database connection. Refer to the
|
297 |
|
|
error message to determine the source of the error and its resolution.
|
298 |
|
|
</p>
|
299 |
|
|
<h4>Managing a Harvest Site</h4>
|
300 |
|
|
A Harvest Site is managed by a Site Contact.
|
301 |
|
|
The responsibilities of a Site Contact fall into the following categories:
|
302 |
|
|
<ul>
|
303 |
|
|
<li><a href=#Registering>Registering with Harvester</a></li>
|
304 |
|
|
<li><a href=#Composing>Composing a Harvest List</a></li>
|
305 |
|
|
<li><a href=#Preparing>Preparing EML Documents for harvest</a></li>
|
306 |
|
|
<li><a href=#Reviewing>Reviewing Harvester reports to the Site Contact</a></li>
|
307 |
|
|
</ul>
|
308 |
|
|
<h5><a name="Registering">Registering with Harvester</a></h5>
|
309 |
|
|
<p>
|
310 |
|
|
A Site Contact registers a site with Harvester by logging in to the
|
311 |
|
|
Harvester Registration page and entering several items of information
|
312 |
|
|
that Harvester needs to know about the site.
|
313 |
|
|
</p>
|
314 |
|
|
<ol>
|
315 |
|
|
<li>Logging in to the Harvester Registration Page
|
316 |
|
|
<p>
|
317 |
|
|
The Harvester Registration page is accessed from Metacat. For example, if
|
318 |
|
|
the Metacat server that you wish to register with resides at the following
|
319 |
|
|
URL:
|
320 |
|
|
<pre> http://somehost.somelocation.edu:8080/knb/index.jsp</pre>
|
321 |
|
|
then the Harvester Registration page would be accessed at:
|
322 |
2157
|
costa
|
<pre> http://somehost.somelocation.edu:8080/knb/style/skins/knb/harvesterRegistrationLogin.html</pre>
|
323 |
2131
|
costa
|
</p>
|
324 |
|
|
<p>
|
325 |
|
|
After bringing up this page in your browser, login to your Metacat account
|
326 |
2166
|
costa
|
by entering your username, organization, and password. For example:
|
327 |
|
|
<table bgcolor="#ffffff" border="0" cellpadding="2" width='100%' >
|
328 |
|
|
<tr >
|
329 |
|
|
<td colspan=3 align=center > </td>
|
330 |
|
|
</tr>
|
331 |
|
|
<tr >
|
332 |
|
|
<td colspan=3 align=center >
|
333 |
|
|
<font face=verdana size=1%>
|
334 |
|
|
<b>Please Enter Username, Organization, and Password </b>
|
335 |
|
|
</font>
|
336 |
|
|
</td>
|
337 |
|
|
</tr>
|
338 |
|
|
<tr>
|
339 |
|
|
<td width='10%'> </td>
|
340 |
|
|
<td width="25%" bgcolor="#4682b4">
|
341 |
|
|
<p align="center">
|
342 |
|
|
<font color="white" face=verdana size=2%>
|
343 |
|
|
<b>Username</b>
|
344 |
|
|
</font>
|
345 |
|
|
</td>
|
346 |
|
|
<td><p><input type="text" name="uid" value="jdoe" maxlength="100" size="28"></td>
|
347 |
|
|
</tr>
|
348 |
|
|
<tr>
|
349 |
|
|
<td width='10%'> </td>
|
350 |
|
|
<td width="25%" bgcolor="#4682b4">
|
351 |
|
|
<p align="center">
|
352 |
|
|
<font color="white" face=verdana size=2%>
|
353 |
|
|
<b>Organization</b>
|
354 |
|
|
</font>
|
355 |
|
|
</td>
|
356 |
|
|
<td>
|
357 |
|
|
<input type="radio" name="o" value="NCEAS" checked>NCEAS
|
358 |
|
|
<input type="radio" name="o" value="LTER">LTER
|
359 |
|
|
<input type="radio" name="o" value="NRS">NRS
|
360 |
|
|
<br>
|
361 |
|
|
<input type="radio" name="o" value="PISCO">PISCO
|
362 |
|
|
<input type="radio" name="o" value="OBFS">OBFS
|
363 |
|
|
<input type="radio" name="o" value="Unaffiliated">Unaffiliated
|
364 |
|
|
</tr>
|
365 |
|
|
<tr>
|
366 |
|
|
<td width='10%'> </td>
|
367 |
|
|
<td bgcolor="#4682b4">
|
368 |
|
|
<p align="center">
|
369 |
|
|
<font color="white" face=verdana size=2%>
|
370 |
|
|
<b>Password</b>
|
371 |
|
|
</font>
|
372 |
|
|
</td>
|
373 |
|
|
<td><p><input type="password" name="passwd" value="*******" maxlength="60" size="28">
|
374 |
|
|
</td>
|
375 |
|
|
</tr>
|
376 |
|
|
<tr>
|
377 |
|
|
<td colspan=3 align=center > </td>
|
378 |
|
|
</tr>
|
379 |
|
|
</table>
|
380 |
2131
|
costa
|
In some cases, a Site Contact may need to login to an anonymous account
|
381 |
|
|
rather than his or her personal account. For example, a LTER Information
|
382 |
|
|
Manager may need to login to a dedicated account, named with a three-letter
|
383 |
2166
|
costa
|
acronym, that has been set up for the LTER site. The username
|
384 |
|
|
"GCE" would be used by the LTER Information Mangager at the GCE (Georgia
|
385 |
|
|
Coastal Ecosystems) site.
|
386 |
2131
|
costa
|
</p>
|
387 |
|
|
</li>
|
388 |
|
|
<li>Registering with Harvester
|
389 |
|
|
<p>
|
390 |
|
|
After logging in, you will be presented with a web form that prompts you
|
391 |
|
|
to enter information about your site and how often you want to schedule
|
392 |
|
|
harvests at your site. For example:
|
393 |
2185
|
costa
|
<table bgcolor="#ffffff" border="0" cellpadding="2" width='100%' >
|
394 |
|
|
<tr >
|
395 |
|
|
<td colspan=3 align=center > </td>
|
396 |
|
|
</tr>
|
397 |
|
|
<tr >
|
398 |
|
|
<td colspan=3 align=center >
|
399 |
|
|
<font face=verdana size=1%>
|
400 |
|
|
<b>Metacat Harvester Registration </b>
|
401 |
|
|
</font>
|
402 |
|
|
</td>
|
403 |
|
|
</tr>
|
404 |
|
|
<tr>
|
405 |
|
|
<td width='10%'> </td>
|
406 |
|
|
<td width="25%" bgcolor="#4682b4">
|
407 |
|
|
<p align="center">
|
408 |
|
|
<font color="white" face=verdana size=2%>
|
409 |
|
|
<b>Email address:</b>
|
410 |
|
|
</font>
|
411 |
|
|
</td>
|
412 |
|
|
<td><p><input type="text" size="55" name="uid" value="myname@institution.edu" maxlength="100" size="28"></td>
|
413 |
|
|
</tr>
|
414 |
|
|
<tr>
|
415 |
|
|
<td width='10%'> </td>
|
416 |
|
|
<td bgcolor="#4682b4">
|
417 |
|
|
<p align="center">
|
418 |
|
|
<font color="white" face=verdana size=2%>
|
419 |
|
|
<b>Harvest List URL:</b>
|
420 |
|
|
</font>
|
421 |
|
|
</td>
|
422 |
|
|
<td><p><input type="text" size="55" name="passwd" value="http://somehost.institution.edu/~myname/harvestList.xml" maxlength="60" size="28">
|
423 |
|
|
</td>
|
424 |
|
|
</tr>
|
425 |
|
|
<tr>
|
426 |
|
|
<td colspan=3 align=center > </td>
|
427 |
|
|
</tr>
|
428 |
|
|
<tr>
|
429 |
|
|
<td width='10%'> </td>
|
430 |
|
|
<td bgcolor="#4682b4">
|
431 |
|
|
<p align="center">
|
432 |
|
|
<font color="white" face=verdana size=2%>
|
433 |
|
|
<b>Harvest Frequency (1-99):</b>
|
434 |
|
|
</font>
|
435 |
|
|
</td>
|
436 |
|
|
<td><p><input type="text" size="3" name="passwd" value="2" maxlength="60" size="28">
|
437 |
|
|
</td>
|
438 |
|
|
</tr>
|
439 |
|
|
<tr>
|
440 |
|
|
<td colspan=3 align=center > </td>
|
441 |
|
|
</tr>
|
442 |
|
|
<tr>
|
443 |
|
|
<td width='10%'> </td>
|
444 |
|
|
<td width="25%" bgcolor="#4682b4">
|
445 |
|
|
<p align="center">
|
446 |
|
|
<font color="white" face=verdana size=2%>
|
447 |
|
|
<b>Unit:</b>
|
448 |
|
|
</font>
|
449 |
|
|
</td>
|
450 |
|
|
<td>
|
451 |
|
|
<input type="radio" name="o" value="days" >day(s)
|
452 |
|
|
<input type="radio" name="o" value="weeks" checked>week(s)
|
453 |
|
|
<input type="radio" name="o" value="months">month(s)
|
454 |
|
|
</tr>
|
455 |
|
|
</table>
|
456 |
|
|
<p>
|
457 |
2131
|
costa
|
After values have been entered for each of these fields, click the Register
|
458 |
|
|
button to register your site with Harvester.
|
459 |
|
|
</p>
|
460 |
|
|
<P>
|
461 |
|
|
In the example shown above, Harvester will attempt to harvest documents from
|
462 |
|
|
the site once every 2 weeks, it will access the site's Harvest List at URL
|
463 |
|
|
"http://somehost.institution.edu/~myname/harvestList.xml", and it will send
|
464 |
|
|
email reports to the Site Contact at email address "myname@institution.edu".
|
465 |
|
|
</P>
|
466 |
|
|
</li>
|
467 |
|
|
<li>Unregistering with Harvester
|
468 |
|
|
<p>
|
469 |
|
|
At any time after you have registered with Harvester, you may discontinue
|
470 |
|
|
harvests at your site by unregistering. Simply login as described above and
|
471 |
|
|
then click the Unregister button. After doing so, Harvester will discontinue
|
472 |
|
|
harvests at the site.
|
473 |
|
|
</p>
|
474 |
|
|
</li>
|
475 |
|
|
</ol>
|
476 |
|
|
<h5><a name="Composing">Composing a Harvest List</a></h5>
|
477 |
|
|
<p>
|
478 |
|
|
A Harvest List is an XML file that holds a list of EML documents to be
|
479 |
|
|
harvested. For each EML document in the list, the following information
|
480 |
|
|
must be specified:
|
481 |
|
|
<ul>
|
482 |
|
|
<li><code>docid</code>, which consists of the:
|
483 |
|
|
<ul>
|
484 |
|
|
<li><code>scope</code>, e.g. "demoDocument". The scope is an identifier
|
485 |
|
|
that indicates which group of documents this document belongs to.
|
486 |
|
|
</li>
|
487 |
|
|
<li><code>identifier</code>, e.g. "1". The identifier is a number that
|
488 |
|
|
uniquely identifies this document within the scope.
|
489 |
|
|
</li>
|
490 |
|
|
<li><code>revision</code>, e.g. "5". The revision is a number that
|
491 |
|
|
indicates the current revision of this document.
|
492 |
|
|
</li>
|
493 |
|
|
</ul>
|
494 |
|
|
</li>
|
495 |
|
|
<li><code>documentType</code>, e.g. "eml://ecoinformatics.org/eml-2.0.0".
|
496 |
|
|
The documentType identifies the document as an EML document.</li>
|
497 |
|
|
<li><code>documentURL</code>, e.g. "http://www.lternet.edu/~dcosta/document1.xml".
|
498 |
|
|
The documentURL specifies a place where Harvester can locate
|
499 |
|
|
and retrieve the document via HTTP.</li>
|
500 |
|
|
</ul>
|
501 |
|
|
</p>
|
502 |
|
|
<p>
|
503 |
|
|
The contents of a Harvest List XML file must conform to a particular
|
504 |
|
|
XML Schema, as defined in file <a href="../../lib/harvester/harvestList.xsd">
|
505 |
|
|
harvestList.xsd</a>. The contents of a valid Harvest List
|
506 |
|
|
can best be illustrated by example. The sample Harvest List
|
507 |
|
|
below contains two <<code>document</code>> elements that specify the
|
508 |
|
|
information that Harvester needs to retrieve a pair of EML documents and
|
509 |
|
|
upload them to Metacat:
|
510 |
|
|
<pre>
|
511 |
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
512 |
|
|
<hrv:harvestList xmlns:hrv="eml://ecoinformatics.org/harvestList" >
|
513 |
|
|
<document>
|
514 |
|
|
<docid>
|
515 |
|
|
<scope>demoDocument</scope>
|
516 |
|
|
<identifier>1</identifier>
|
517 |
|
|
<revision>5</revision>
|
518 |
|
|
</docid>
|
519 |
|
|
<documentType>eml://ecoinformatics.org/eml-2.0.0</documentType>
|
520 |
|
|
<documentURL>http://www.lternet.edu/~dcosta/document1.xml</documentURL>
|
521 |
|
|
</document>
|
522 |
|
|
<document>
|
523 |
|
|
<docid>
|
524 |
|
|
<scope>demoDocument</scope>
|
525 |
|
|
<identifier>2</identifier>
|
526 |
|
|
<revision>1</revision>
|
527 |
|
|
</docid>
|
528 |
|
|
<documentType>eml://ecoinformatics.org/eml-2.0.0</documentType>
|
529 |
|
|
<documentURL>http://www.lternet.edu/~dcosta/document2.xml</documentURL>
|
530 |
|
|
</document>
|
531 |
|
|
</hrv:harvestList>
|
532 |
|
|
</pre>
|
533 |
|
|
<p>
|
534 |
|
|
After editing the Harvest List, ensure that the Harvest List XML file resides
|
535 |
|
|
at the appropriate location on disk as specified by the URL that was entered
|
536 |
|
|
during the <a href=#Registering>registration</a> process.
|
537 |
|
|
</p>
|
538 |
2185
|
costa
|
<p>
|
539 |
|
|
The <a href=./harvestListEditor.html>Harvest List Editor</a> is a tool that
|
540 |
|
|
assists in composing and editing a Harvest List. (Click
|
541 |
|
|
<a href=./harvestListEditor.html>here</a> for additional details.)
|
542 |
|
|
</p>
|
543 |
2131
|
costa
|
<h5><a name="Preparing">Preparing EML Documents for harvest</a></h5>
|
544 |
|
|
<p>
|
545 |
|
|
To prepare a set of EML documents for harvest, ensure that the following is
|
546 |
|
|
true for each document:
|
547 |
|
|
<ul>
|
548 |
|
|
<li>The document contains valid EML</li>
|
549 |
|
|
<li>The document is specified in a <document> element in the
|
550 |
|
|
site's Harvest List, as described above</li>
|
551 |
|
|
<li>The file resides at the appropriate location on disk as specified
|
552 |
|
|
by its URL in the Harvest List</li>
|
553 |
|
|
</ul>
|
554 |
|
|
</p>
|
555 |
|
|
<h5><a name="Reviewing" >Reviewing Harvester Reports to the Site Contact</a></h5>
|
556 |
|
|
<P>
|
557 |
|
|
After every scheduled harvest that takes place at a particular Harvest
|
558 |
|
|
Site, Harvester will send an email report to the Site Contact detailing the
|
559 |
|
|
operations that were performed during the harvest.
|
560 |
|
|
The report will contain information about the operations that were
|
561 |
|
|
performed by Harvester at that site, such as
|
562 |
|
|
which EML documents were harvested and whether any errors were encountered.
|
563 |
|
|
</P>
|
564 |
|
|
<P>
|
565 |
|
|
The Site Contact should review the report, paying particularly
|
566 |
|
|
close attention to any errors that are reported. Errors are indicated
|
567 |
|
|
by operations that display a status value of 1, while operations that
|
568 |
|
|
display a status value of 0 indicate that the operation completed
|
569 |
|
|
successfully.
|
570 |
|
|
</P>
|
571 |
|
|
<p>
|
572 |
|
|
When errors are reported,
|
573 |
|
|
the Site Contact should try to determine whether the source of the error
|
574 |
|
|
is something that can be corrected at the site. Common causes of errors
|
575 |
|
|
might be:
|
576 |
|
|
<ul>
|
577 |
|
|
<li>A document URL specified in the Harvest List does not match
|
578 |
|
|
the location of the actual EML file on the disk</li>
|
579 |
|
|
<li>The Harvest List does not contain valid XML as specified in
|
580 |
|
|
the <a href=../../lib/harvester/harvestList.xsd>harvestList.xsd</a> schema</li>
|
581 |
|
|
<li>The URL to the Harvest List that was specified during
|
582 |
|
|
registration with Harvester does not match the actual location of
|
583 |
|
|
the Harvest List on the disk</li>
|
584 |
|
|
<li>An EML document that Harvester attempted to upload to Metacat does
|
585 |
|
|
not contain valid EML</li>
|
586 |
|
|
</ul>
|
587 |
|
|
</P>
|
588 |
|
|
<p>
|
589 |
|
|
If the Site Contact is unable to determine the cause of the error and its
|
590 |
|
|
resolution, he or she should contact the Harvester Administrator for assistance.
|
591 |
|
|
</p>
|
592 |
|
|
<a href="./properties.html">Back</a> |
|
593 |
|
|
<a href="./metacattour.html">Home</a> |
|
594 |
|
|
<a href="./unimplem.html">Next</a>
|
595 |
|
|
</BODY>
|
596 |
|
|
</HTML>
|