[Photon] Newbie Installation Issue

Peter graphhopper at gmx.de
Wed Apr 18 19:34:37 UTC 2018


Hello Richard,

Have updated the readme and included your suggestions regarding the
waiting as well:

https://github.com/komoot/photon/commit/3dbe29bfbbd9e906598f0e124966471457d88971

Regards
Peter


On 18.04.2018 18:31, Richard Marsden wrote:
> Thanks for the quick reply Peter.
> Yes it could be a little clearer. I've also found the "-h" option
> which is helpful going forward.
>
> I have it going now and was on the right track, but as is so often the
> case with these complete-newbie-with-the-app situations, minor quirks
> conspire to make it appear "un-runnable"!
>
> The first time I ran it, it had no idea where the data was (actually a
> different disk), and so it failed.
> The next attempt, I'd actually guessed the default location correctly
> before sending that email, but it still failed.
> When photon starts it displays a few lines of log info (a warning
> about the ElasticSearch node and then an INFO that the search node is
> starting). It would appear it takes a few more seconds beyond that
> before photon is ready to handle requests. I suspect disk caching also
> played a part, and I do hear a few seconds of disk thrashing (which is
> now shorter). [yes my test install is on a hard-disk - if I choose to
> use this route for production then I would use or recommend an SSD]
>
> So the answer: use the right directory, and wait a few seconds after
> the log lines are printed before sending a test request!
>
>
> Thanks again for your help!
>
> Richard
>
>
>
>
>
>
> On Wed, Apr 18, 2018 at 11:00 AM, Peter <graphhopper at gmx.de> wrote:
>> Hi Richard,
>>
>> We should make it more clear. After you download the data a new folder
>> photon_data is created and one directory higher you execute java -jar
>> photon-*.jar
>>
>> Does this help?
>>
>>> I have never used Elasticsearch before - how does photon / elasticsearch
>>> know where to find the data?
>> Default searches at 'photon_data' or you specify -data-dir
>>
>> Regards
>> Peter
>>
>>
>> On 18.04.2018 17:56, Richard Marsden wrote:
>>
>> I'm trying to install and run Photon on a Ubuntu 16.04 system.
>>
>> I've downloaded photo-0.3.0 and the data (photon-db-latest.tar.bz2) as
>> per the README.md instructions on github.
>>
>> Are there any other pre-requisites?
>>
>> I have never used Elasticsearch before - how does photon /
>> elasticsearch know where to find the data?
>>
>> When I run the photon-0.3.0.jar I get a
>> "org.elasticsearch.index.IndexNotFoundException: no such index"
>> exception
>> when I try opening the example "http://localhost:2322/api?q=berlin"
>>  in
>> a browser.
>>
>> Regards,
>>
>> Richard Marsden
>>
>> _______________________________________________
>> Photon mailing list
>> Photon at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/photon
>>

-- 
GraphHopper.com - fast and flexible route planning




More information about the Photon mailing list