[OSM-dev] Osmosis 0.31 doesn't do mysql anymore?

Brett Henderson brett at bretth.com
Tue Jun 2 01:27:33 BST 2009


There are no 0.6 mysql tasks any more.  They are replaced with the apidb 
tasks which accept the same arguments and support both MySQL and 
PostgreSQL.  The apidb tasks default to using PostgreSQL.  They accept 
an additional dbType argument which can be set to postgresql or mysql.  
Details are available here:
http://wiki.openstreetmap.org/wiki/Osmosis/DetailedUsage#API_Database_Tasks

Maarten Deen wrote:
> When I use osmosis 0.31, I get an error on any mysql task I want to perform:
> m$ osmosis-0.31/bin/osmosis --truncate-mysql host="localhost" database="osm06" 
> user="****" password="****"
> Jun 1, 2009 2:38:16 PM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Osmosis Version 0.31
> Jun 1, 2009 2:38:16 PM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Preparing pipeline.
> Jun 1, 2009 2:38:16 PM org.openstreetmap.osmosis.core.Osmosis main
> SEVERE: Execution aborted.
> org.openstreetmap.osmosis.core.OsmosisRuntimeException: Task type truncate-mysql 
> doesn't exist.
>          at 
> org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactoryRegister.getInstance(TaskManagerFactoryRegister.java:60)
>          at 
> org.openstreetmap.osmosis.core.pipeline.common.Pipeline.buildTasks(Pipeline.java:50)
>          at 
> org.openstreetmap.osmosis.core.pipeline.common.Pipeline.prepare(Pipeline.java:112)
>          at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:79)
>          at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:30)
>
> Whereas 0.30.3 still works:
> $ osmosis-0.30.3/bin/osmosis --truncate-mysql host="localhost" database="osm06" 
> user="****" password="****"
> Jun 1, 2009 2:38:02 PM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Osmosis Version 0.30.3
> Jun 1, 2009 2:38:03 PM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Preparing pipeline.
> Jun 1, 2009 2:38:03 PM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Launching pipeline execution.
> Jun 1, 2009 2:38:03 PM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Pipeline executing, waiting for completion.
> Jun 1, 2009 2:38:03 PM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Pipeline complete.
> Jun 1, 2009 2:38:03 PM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Total execution time: 798 milliseconds.
>
> This happens also on write-mysql. Why is that?
>
> Regards,
> Maarten
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
>   





More information about the dev mailing list