Skip to content

Elasticsearch 7.12 #300

Description

@smokris

Hi @jperkin. The current Elasticsearch version is 7.12.0, but the SmartOS base64 package is version 6.8.8. Would it be practical to update that package?

Activity

  1. self-assigned this
    on Apr 15, 2021
  2. jperkin commented on Apr 15, 2021

    @jperkin
    Collaborator

    Yeh I need to take a look at this at some point.

  3. smokris commented on Apr 17, 2021

    @smokris
    Author

    I've been tinkering with it over the past few days, and I was able to get it to build with this patch:
    elasticsearch-7.12.0-sunos.txt

    $ pkgin in openjdk15-15.0.0rc24
    $ curl -OL https://github.com/elastic/elasticsearch/archive/refs/tags/v7.12.0.tar.gz
    $ tar zxf v7.12.0.tar.gz
    $ cd elasticsearch-7.12.0
    $ patch -p1 < ../elasticsearch-7.12.0-sunos.txt
    $ JAVA_HOME=/opt/local/java/openjdk15 RUNTIME_JAVA_HOME=/opt/local ./gradlew localDistro
    $ ln -s /opt/local build/distribution/local/elasticsearch-7.12.0-SNAPSHOT/jdk
    
    $ build/distribution/local/elasticsearch-7.12.0-SNAPSHOT/bin/elasticsearch --version
    warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release
    Version: 7.12.0-SNAPSHOT, Build: default/tar/unknown/2021-04-15T23:00:38.667690Z, JVM: 15-internal

    (I haven't figured out the pkgsrc package build system though.)

    When I launch it in server mode, it complains about not finding JNA (libjnidispatch.so)… but the server finishes launching, and I can create an index and add documents to it, so it seems to basically work at least.

    Edit: The JNA issue can be fixed by following the steps here: #93 (comment)

  4. smokris commented on Apr 18, 2021

    @smokris
    Author

    Correction: in order to talk to other Elasticsearch nodes, it needs to be built from inside the Git source tree. Updated steps:

    $ pkgin in git openjdk15-15.0.0rc24
    $ curl -OL https://github.com/joyent/pkgsrc/files/6328379/elasticsearch-7.12.0-sunos.txt
    $ git clone https://github.com/elastic/elasticsearch
    $ cd elasticsearch
    $ git checkout 78722783c38caa25a70982b5b042074cde5d3b3a  # tagged v7.12.0
    $ patch -p1 < ../elasticsearch-7.12.0-sunos.txt
    $ JAVA_HOME=/opt/local/java/openjdk15 RUNTIME_JAVA_HOME=/opt/local ./gradlew localDistro
    $ ln -s /opt/local build/distribution/local/elasticsearch-7.12.0-SNAPSHOT/jdk
    
    $ build/distribution/local/elasticsearch-7.12.0-SNAPSHOT/bin/elasticsearch --version
    warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release
    Version: 7.12.0-SNAPSHOT, Build: default/tar/78722783c38caa25a70982b5b042074cde5d3b3a/2021-04-18T01:50:41.726304Z, JVM: 15-internal

    (Now the version string includes the Git commit hash instead of "unknown", enabling this Elasticsearch build to confirm compatibility with other 7.12.0 nodes.)

  5. added a commit that references this issue on Aug 25, 2021
  6. smokris commented on Dec 4, 2021

    @smokris
    Author

    Withdrawing this request; see #308 (comment).

  7. added a commit that references this issue on Apr 28, 2022
  8. added a commit that references this issue on Jun 2, 2022
  9. added a commit that references this issue on Jul 4, 2022
  10. 26 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions