Comments (4)
I see that this can be done through REST. But not really sure where to start. An example would be great.
from geoportal-server-harvester.
I tried POSTing to the endpoint using Postman:
http://calwgist08:8080/geoharvest/rest/harvester/tasks/cf144d6a-05a2-450d-a9d0-e985ba1571bc/schedule
{"uuid":"57d0e78f-4b10-4087-89e3-eaaabf6032ab","taskId":"cf144d6a-05a2-450d-a9d0-e985ba1571bc","triggerDefinition":{"type":"PERIOD","taskDefinition":{"processor":null,"source":{"type":"UNC","label":"GOM","properties":{"unc-root-folder":"C:\\Harvest","unc-pattern":""},"keywords":[]},"destinations":[{"action":{"type":"FOLDER","label":"xmls","properties":{"folder-root-folder":"c:\\harvest","folder-cleanup":"false"},"keywords":[]},"drains":null}],"keywords":[],"incremental":false,"ignoreRobotsTxt":false},"properties":{"t-period":"R/20170726T02/P1D"},"keywords":[]}}
I get this error:
26-Jul-2017 16:36:16.645 SEVERE [http-apr-8080-exec-8] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [spring] in context with path [/geoharvest] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause java.lang.NullPointerException at com.esri.geoportal.harvester.engine.defaults.DefaultTriggersService.schedule(DefaultTriggersService.java:177) at com.esri.geoportal.harvester.rest.TaskController.scheduleTask(TaskController.java:434)
from geoportal-server-harvester.
Any clues on how this works? Thanks
from geoportal-server-harvester.
If you are interested only in harvesting daily (not weekly, monthly, etc.) then why not to choose to "harvest at"? It allows to exactly what you need: harvesting at the particular hour every day.
from geoportal-server-harvester.
Related Issues (20)
- Failed to remove task/execute task HOT 5
- PyCSW harvest ESRI Geoportal 2.6.5 (CSW) failed HOT 1
- Harvester not removing content from geoportal that has been removed from source WAF HOT 5
- Item type of tiled image layers in ArcGIS Image not properly maintained when harvesting into ArcGIS Portal/Online HOT 1
- Harvester Issue to ArcGIS Portal - The size of each typeKeyword cannot be more than 256 characters
- Translation for AGOL/Portal HOT 1
- Harvester CKAN Broker Iterator Error for Data.gov
- Upgrading to 2.7 issue HOT 2
- Parse markdown to HTML in metadata XML
- Associate harvested metadata to existing sub-layers HOT 1
- Enable ArcGIS Online/Portal authentication in the harvester HOT 2
- Support for records in ISO 19115-3? HOT 2
- Enable layers option on ArcGIS Portal input broker. HOT 2
- Use title as output file name
- include reference to source metadata when publishing fails
- Harvest full XML from ArcGIS Server services and layers when available HOT 1
- Use ArcGIS Server layer metadata if available
- translate metadata when harvesting into geoportal
- translate locale information when harvesting to ArcGIS Online/Portal HOT 1
- support harvesting from OGC API: Records
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geoportal-server-harvester.