Can't load pre-imported graph on different machine

Are you sure this is the right properties file you posted ? It does not really fit the error message (I would have expected graph.ch.weightings=[] and graph.ch.edge.weightings=[fastest|car,shortest|car]).

But anyway I think you are missing the edge_based=true url parameter on your queries.

Btw. did you manage to import the full OSM dataset for Europe, would be interesting to know how long it took and how much memory you had on the machine that did the import.

You can find some documentation of speed mode with turn restrictions here:
https://github.com/graphhopper/graphhopper/blob/master/docs/core/turn-restrictions.md

@easbar, you’re my hero! I should have known about that edge_based flag…
Yes, I did manage to import the full map of Europe, it took about 5 days on a machine with 64GB of RAM…

Anyways, I now get an error from time to time:

ERROR [2019-02-27 08:22:46,573] org.glassfish.jersey.server.ServerRuntime$Responder: An I/O error has occurred while writing a response message entity to the container output stream.
! java.io.IOException: Broken pipe
! at sun.nio.ch.FileDispatcherImpl.writev0(Native Method)
! at sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51)
! at sun.nio.ch.IOUtil.write(IOUtil.java:148)
! at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:504)
! at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:266)

Any ideas?

thanks!

No sorry

Can you paste the full error not just this snippet? And is this the result of a request? If yes, which one? Maybe the client did not close connection before the server could write the response.

It seems there is a dropwizard issue https://github.com/dropwizard/dropwizard/issues/2482
that will be fixed for 2.0.0 https://github.com/dropwizard/dropwizard/pull/2541
See release dates:
https://github.com/dropwizard/dropwizard/releases

1 Like