[Photon] Help, please, photon install, "Version is a pre-release version of Elasticsearch and is not suitable for production"

Scholam Instituto de Ensino scholam at loja.net
Fri Aug 21 20:28:12 UTC 2020


Sarah, hi, it still didn't work, I am very grateful for your gratifying
help, please, Sarah, I present a summary of what I did to try to solve the
problem that is now affecting me:

1. REMOVED photon_data/elasticsearch/modules/lang-painless/*jar, WARNINGs
2. REMOVED, IF INSTALLED, ELASTICSEARCH, not installed
3. REMOVED photon_data, OK
4. UNCOMPRESSED AND EXTRACTED, AGAIN, THE 66GB DATABASE
photon-db-latest.tar.bz2, new photon_data OK
5. STARTED photon-0.3.3.jar, "not suitable for production ..."
6. JAVA VERSION, 11
7. CHECKING IF ELASTICSEARCH INSTALLED, not installed

Details ...

1. REMOVING photon_data/elasticsearch/modules/lang-painless/*jar

administrador at administrador-SM-3330:~$ sudo rm
photon_data/elasticsearch/modules/lang-painless/*jar
administrador at administrador-SM-3330:~$ sudo java -jar photon-0.3.3.jar
2020-08-21 10:52:18,586 [main] WARN  org.elasticsearch.node.Node - version
[5.5.0-SNAPSHOT] is a pre-release version of Elasticsearch and is not
suitable for production
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil
(file:/home/administrador/photon-0.3.3.jar) to constructor
java.nio.DirectByteBuffer(long,int)
WARNING: Please consider reporting this to the maintainers of
io.netty.util.internal.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future release
2020-08-21 10:52:27,711 [main] INFO  de.komoot.photon.elasticsearch.Server
- started elastic search node
2020-08-21 10:52:29,345 [Thread-0] WARN
 org.eclipse.jetty.server.AbstractConnector - Ignoring deprecated socket
close linger time
administrador at administrador-SM-3330:~$

2. REMOVED, IF INSTALLED, ELASTICSEARCH:
(not installed)
sudo apt-get remove elasticsearch
sudo apt-get --purge autoremove elasticsearch
sudo dpkg --remove elasticsearch
sudo dpkg --purge elasticsearch
sudo dpkg --purge --force-all elasticsearch
sudo rm -rf /var/lib/elasticsearch/
sudo rm -rf /etc/elasticsearch

3. REMOVED photon_data, OK

4. UNCOMPRESSING AND EXTRACTING, AGAIN, THE 66GB DATABASE
photon-db-latest.tar.bz2:

administrador at administrador-SM-3330:~$ sudo pbzip2 -cdkq
photon-db-latest.tar.bz2 | tar x
[sudo] password for administrador:
administrador at administrador-SM-3330:~$

5. STARTING photon-0.3.3.jar:

administrador at administrador-SM-3330:~$ pwd
/home/administrador
administrador at administrador-SM-3330:~$ sudo java -jar photon-0.3.3.jar
[sudo] password for administrador:
2020-08-21 16:08:33,116 [main] WARN  org.elasticsearch.node.Node - version
[5.5.0-SNAPSHOT] is a pre-release version of Elasticsearch and is not
suitable for production
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil
(file:/home/administrador/photon-0.3.3.jar) to constructor
java.nio.DirectByteBuffer(long,int)
WARNING: Please consider reporting this to the maintainers of
io.netty.util.internal.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future release
2020-08-21 16:08:40,681 [main] INFO  de.komoot.photon.elasticsearch.Server
- started elastic search node
2020-08-21 16:08:41,139 [Thread-0] WARN
 org.eclipse.jetty.server.AbstractConnector - Ignoring deprecated socket
close linger time
administrador at administrador-SM-3330:~$

6. JAVA VERSION

administrador at administrador-SM-3330:~$ java -version
openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu-0ubuntu118.04.1)
OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0ubuntu118.04.1,
mixed mode, sharing)
administrador at administrador-SM-3330:~$

7. ELASTICSEARCH NOT INSTALLED:

administrador at administrador-SM-3330:~$ jps | grep Elasticsearch
administrador at administrador-SM-3330:~$

Sarah, thanks, Scholam


On Thu, Aug 20, 2020 at 2:10 PM Sarah Hoffmann <lonvia at denofr.de> wrote:

> Hi,
>
> the older version of photon has likely poluted your data directory.
> Try running
>
> rm photon_data/elasticsearch/modules/lang-painless/*jar
>
> and then start photon again.
>
> Sarah
>
> On Thu, Aug 20, 2020 at 12:50:06PM -0300, Scholam Instituto de Ensino
> wrote:
> > Hi Sarah, I used the latest 0.3.3 release of Photon, please, could you
> try
> > to help me again, see what happened:
> >
> > "administrador at administrador-SM-3330:~$ sudo java -jar photon-0.3.3.jar
> > [sudo] password for administrador:
> > 2020-08-20 12:41:31,776 [main] WARN  org.elasticsearch.node.Node -
> version
> > [5.5.0-SNAPSHOT] is a pre-release version of Elasticsearch and is not
> > suitable for production
> > Exception in thread "main" java.lang.IllegalStateException: failed to
> load
> > plugin - Plugin information:
> > Name: lang-painless
> > Description: An easy, safe and fast scripting language for Elasticsearch
> > Version: 5.5.0
> > Native Controller: false
> >  * Classname: org.elasticsearch.painless.PainlessPlugin due to jar hell
> > at
> >
> org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:376)
> > at
> org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:140)
> > at org.elasticsearch.node.Node.<init>(Node.java:312)
> > at de.komoot.photon.elasticsearch.Server$MyNode.<init>(Server.java:59)
> > at de.komoot.photon.elasticsearch.Server.start(Server.java:113)
> > at de.komoot.photon.App.main(App.java:51)
> > Caused by: java.lang.IllegalStateException: jar hell!
> > class: org.antlr.v4.runtime.ANTLRErrorListener
> > jar1:
> >
> /home/administrador/photon_data/elasticsearch/modules/lang-painless/antlr4-runtime-4.5.1-1.jar
> > jar2:
> >
> /home/administrador/photon_data/elasticsearch/modules/lang-painless/antlr4-runtime.jar
> > at org.elasticsearch.bootstrap.JarHell.checkClass(JarHell.java:282)
> > at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:192)
> > at
> >
> org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:374)
> > ... 5 more
> > administrador at administrador-SM-3330:~$"
> >
> > Thanks, Scholam
> >
> > On Thu, Aug 20, 2020 at 9:45 AM Sarah Hoffmann <lonvia at denofr.de> wrote:
> >
> > > Hi,
> > >
> > > please use the latest 0.3.3 release of Photon.
> > >
> > > Kind regards
> > >
> > > Sarah
> > >
> > > On Thu, Aug 20, 2020 at 08:13:37AM -0300, Scholam Instituto de Ensino
> > > wrote:
> > > > I downloaded photon-db-latest.tar.bz2 from
> > > https://github.com/komoot/photon,
> > > > uncompressed and extracted the database: # you can significantly
> speed up
> > > > extracting using pbzip2 (recommended): wget -O -
> > > > http://download1.graphhopper.com/public/photon-db-latest.tar.bz2 |
> > > pbzip2
> > > > -cd | tar x
> > > >
> > > > The photon_data directory OK.
> > > >
> > > > Then, sudo java -jar photon-0.3.0.jar
> > > >
> > > > And the message "WARN org.elasticsearch.node.Node - version
> > > > [5.5.0-SNAPSHOT] is a pre-release version of Elasticsearch and is not
> > > > suitable for production":
> > > >
> > > > administrador at administrador-SM-3330:~$ sudo java -jar
> photon-0.3.0.jar
> > > > [sudo] password for administrador:
> > > > 2020-08-19 09:25:58,543 [main] WARN org.elasticsearch.node.Node -
> version
> > > > [5.5.0-SNAPSHOT] is a pre-release version of Elasticsearch and is not
> > > > suitable for production
> > > > Exception in thread "main" java.lang.IllegalStateException: failed to
> > > load
> > > > plugin - Plugin information:
> > > > Name: lang-painless
> > > > Description: An easy, safe and fast scripting language for
> Elasticsearch
> > > > Version: 5.5.0
> > > > Native Controller: false
> > > > * Classname: org.elasticsearch.painless.PainlessPlugin due to jar
> hell
> > > > at
> > > >
> > >
> org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:376)
> > > > at
> > >
> org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:140)
> > > > at org.elasticsearch.node.Node.<init>(Node.java:312)
> > > > at
> de.komoot.photon.elasticsearch.Server$MyNode.<init>(Server.java:55)
> > > > at de.komoot.photon.elasticsearch.Server.start(Server.java:112)
> > > > at de.komoot.photon.App.main(App.java:47)
> > > > Caused by: java.lang.IllegalStateException: jar hell!
> > > > class: org.antlr.v4.runtime.ANTLRErrorListener
> > > > jar1:
> > > >
> > >
> /home/administrador/photon_data/elasticsearch/modules/lang-painless/antlr4-runtime-4.5.1-1.jar
> > > > jar2:
> > > >
> > >
> /home/administrador/photon_data/elasticsearch/modules/lang-painless/antlr4-runtime.jar
> > > > at org.elasticsearch.bootstrap.JarHell.checkClass(JarHell.java:282)
> > > > at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:192)
> > > > at
> > > >
> > >
> org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:374)
> > > > ... 5 more
> > > > administrador at administrador-SM-3330:~$
> > > >
> > > > Please, could you help me?
> > > >
> > > > Thanks, Scholam
> > >
> > > > _______________________________________________
> > > > Photon mailing list
> > > > Photon at openstreetmap.org
> > > > https://lists.openstreetmap.org/listinfo/photon
> > >
> > >
> > > _______________________________________________
> > > Photon mailing list
> > > Photon at openstreetmap.org
> > > https://lists.openstreetmap.org/listinfo/photon
> > >
>
> > _______________________________________________
> > Photon mailing list
> > Photon at openstreetmap.org
> > https://lists.openstreetmap.org/listinfo/photon
>
>
> _______________________________________________
> Photon mailing list
> Photon at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/photon
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/photon/attachments/20200821/3d588efd/attachment.htm>


More information about the Photon mailing list