Giter VIP home page Giter VIP logo

Comments (4)

bodo-hugo-barwich avatar bodo-hugo-barwich commented on June 1, 2024 1

The Update is correctly pushed to Production.
The Environment Variable JAVA_HOME is now set to /usr/lib/jvm/default-jvm.
Also, the Operating System is upgraded to Alpine Linux 3.14.3 with Java VM 11.

$ docker pull blacktop/elasticsearch:6.8
6.8: Pulling from blacktop/elasticsearch
97518928ae5f: Already exists 
ba87b9184f76: Pull complete 
acd4118517ce: Pull complete 
a4c7c59dc7df: Pull complete 
f1e8d49d9c9a: Pull complete 
48f0a363b917: Pull complete 
4f4fb700ef54: Pull complete 
b01245d52ccf: Pull complete 
Digest: sha256:c53849d12d2010cc17f2b7147fa368034a2327e2529d528f28b1ae179bae72dd
Status: Downloaded newer image for blacktop/elasticsearch:6.8
docker.io/blacktop/elasticsearch:6.8
$ docker run -dit blacktop/elasticsearch:6.8
e2767cc964cac2b0d9550e43e899f3eda3e1bb5aeca2f2274eabf5f19362c8cb
$ docker logs e2767cc964cac2b0d9550e43e899f3eda3e1bb5aeca2f2274eabf5f19362c8cb
[2021-11-28T18:34:37,881][INFO ][o.e.e.NodeEnvironment    ] [3Mcm_ad] using [1] data paths, mounts [[/usr/share/elasticsearch/data (/dev/mapper/vg_thebrain-lv_root)]], net usable_space [155.3gb], net total_space [182.2gb], types [ext4]
[2021-11-28T18:34:37,885][INFO ][o.e.e.NodeEnvironment    ] [3Mcm_ad] heap size [1gb], compressed ordinary object pointers [true]
[2021-11-28T18:34:37,889][INFO ][o.e.n.Node               ] [3Mcm_ad] node name derived from node ID [3Mcm_adrQnKp8K838kgvZQ]; set [node.name] to override
[2021-11-28T18:34:37,889][INFO ][o.e.n.Node               ] [3Mcm_ad] version[6.8.13], pid[1], build[oss/tar/be13c69/2020-10-16T09:09:46.555371Z], OS[Linux/5.10.0-9-amd64/amd64], JVM[Alpine/OpenJDK 64-Bit Server VM/11.0.11/11.0.11+9-alpine-r0]
[2021-11-28T18:34:37,889][INFO ][o.e.n.Node               ] [3Mcm_ad] JVM arguments [-Xms1g, -Xmx1g, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/usr/share/elasticsearch/tmp, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Djava.locale.providers=COMPAT, -XX:UseAVX=1, -Des.cgroups.hierarchy.override=/, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/usr/share/elasticsearch/config, -Des.distribution.flavor=oss, -Des.distribution.type=tar]
[2021-11-28T18:34:39,194][INFO ][o.e.p.PluginsService     ] [3Mcm_ad] loaded module [aggs-matrix-stats]
[2021-11-28T18:34:39,194][INFO ][o.e.p.PluginsService     ] [3Mcm_ad] loaded module [analysis-common]
[2021-11-28T18:34:39,194][INFO ][o.e.p.PluginsService     ] [3Mcm_ad] loaded module [ingest-common]
[2021-11-28T18:34:39,194][INFO ][o.e.p.PluginsService     ] [3Mcm_ad] loaded module [ingest-geoip]
[2021-11-28T18:34:39,195][INFO ][o.e.p.PluginsService     ] [3Mcm_ad] loaded module [ingest-user-agent]
[2021-11-28T18:34:39,195][INFO ][o.e.p.PluginsService     ] [3Mcm_ad] loaded module [lang-expression]
[2021-11-28T18:34:39,195][INFO ][o.e.p.PluginsService     ] [3Mcm_ad] loaded module [lang-mustache]
[2021-11-28T18:34:39,195][INFO ][o.e.p.PluginsService     ] [3Mcm_ad] loaded module [lang-painless]
[2021-11-28T18:34:39,195][INFO ][o.e.p.PluginsService     ] [3Mcm_ad] loaded module [mapper-extras]
[2021-11-28T18:34:39,195][INFO ][o.e.p.PluginsService     ] [3Mcm_ad] loaded module [parent-join]
[2021-11-28T18:34:39,195][INFO ][o.e.p.PluginsService     ] [3Mcm_ad] loaded module [percolator]
[2021-11-28T18:34:39,195][INFO ][o.e.p.PluginsService     ] [3Mcm_ad] loaded module [rank-eval]
[2021-11-28T18:34:39,196][INFO ][o.e.p.PluginsService     ] [3Mcm_ad] loaded module [reindex]
[2021-11-28T18:34:39,196][INFO ][o.e.p.PluginsService     ] [3Mcm_ad] loaded module [repository-url]
[2021-11-28T18:34:39,196][INFO ][o.e.p.PluginsService     ] [3Mcm_ad] loaded module [transport-netty4]
[2021-11-28T18:34:39,196][INFO ][o.e.p.PluginsService     ] [3Mcm_ad] loaded module [tribe]
[2021-11-28T18:34:39,196][INFO ][o.e.p.PluginsService     ] [3Mcm_ad] no plugins loaded
[2021-11-28T18:34:43,747][INFO ][o.e.d.DiscoveryModule    ] [3Mcm_ad] using discovery type [zen] and host providers [settings]
[2021-11-28T18:34:44,423][INFO ][o.e.n.Node               ] [3Mcm_ad] initialized
[2021-11-28T18:34:44,423][INFO ][o.e.n.Node               ] [3Mcm_ad] starting ...
[2021-11-28T18:34:44,613][INFO ][o.e.t.TransportService   ] [3Mcm_ad] publish_address {172.17.0.2:9300}, bound_addresses {0.0.0.0:9300}
[2021-11-28T18:34:44,629][INFO ][o.e.b.BootstrapChecks    ] [3Mcm_ad] bound or publishing to a non-loopback address, enforcing bootstrap checks
[2021-11-28T18:34:47,690][INFO ][o.e.c.s.MasterService    ] [3Mcm_ad] zen-disco-elected-as-master ([0] nodes joined), reason: new_master {3Mcm_ad}{3Mcm_adrQnKp8K838kgvZQ}{wjOXbkWOQNKWOXgsDW6gMw}{172.17.0.2}{172.17.0.2:9300}
[2021-11-28T18:34:47,695][INFO ][o.e.c.s.ClusterApplierService] [3Mcm_ad] new_master {3Mcm_ad}{3Mcm_adrQnKp8K838kgvZQ}{wjOXbkWOQNKWOXgsDW6gMw}{172.17.0.2}{172.17.0.2:9300}, reason: apply cluster state (from master [master {3Mcm_ad}{3Mcm_adrQnKp8K838kgvZQ}{wjOXbkWOQNKWOXgsDW6gMw}{172.17.0.2}{172.17.0.2:9300} committed version [1] source [zen-disco-elected-as-master ([0] nodes joined)]])
[2021-11-28T18:34:47,712][INFO ][o.e.h.n.Netty4HttpServerTransport] [3Mcm_ad] publish_address {172.17.0.2:9200}, bound_addresses {0.0.0.0:9200}
[2021-11-28T18:34:47,713][INFO ][o.e.n.Node               ] [3Mcm_ad] started
[2021-11-28T18:34:47,755][INFO ][o.e.g.GatewayService     ] [3Mcm_ad] recovered [0] indices into cluster_state
$ docker exec -it e2767cc964cac2b0d9550e43e899f3eda3e1bb5aeca2f2274eabf5f19362c8cb bash
bash-5.1# ps
PID   USER     TIME  COMMAND
    1 elastics  0:27 /usr/lib/jvm/default-jvm/bin/java -Xms1g -Xmx1g -XX:CMSInitiatingOccupancyFrac
  144 root      0:00 bash
  150 root      0:00 ps
bash-5.1# wget -S -O - localhost:9200
Connecting to localhost:9200 (127.0.0.1:9200)
  HTTP/1.1 200 OK
  content-type: application/json; charset=UTF-8
  content-length: 490
  
writing to stdout
{
  "name" : "3Mcm_ad",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "fguZlgx5SeWBjQ3QrCfbLw",
  "version" : {
    "number" : "6.8.13",
    "build_flavor" : "oss",
    "build_type" : "tar",
    "build_hash" : "be13c69",
    "build_date" : "2020-10-16T09:09:46.555371Z",
    "build_snapshot" : false,
    "lucene_version" : "7.7.3",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}
-                    100% |****************************************************|   490  0:00:00 ETA
written to stdout
bash-5.1# echo $JAVA_HOME
/usr/lib/jvm/default-jvm
bash-5.1# cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.14.3
PRETTY_NAME="Alpine Linux v3.14"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"
bash-5.1# java --version
openjdk 11.0.11 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-alpine-r0)
OpenJDK 64-Bit Server VM (build 11.0.11+9-alpine-r0, mixed mode)
bash-5.1# 

Thank you very much!

from docker-elasticsearch-alpine.

leppaott avatar leppaott commented on June 1, 2024

Old but: ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk

This image should set JAVA_HOME, as it seems the image already has java but elasticsearch-plugin tries to load it from a default location.

Run the container and ls /usr/lib/jvm/ to see if it was jdk11 or 8 etc..
docker run -it blacktop/elasticsearch:7.10.2 sh warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release
Maybe this warning could be fixed as well.

from docker-elasticsearch-alpine.

bodo-hugo-barwich avatar bodo-hugo-barwich commented on June 1, 2024

We are also using the blacktop/elasticsearch:6.8.
It is based on the old Alpine Linux 3.9

bash-4.4# cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.9.6
PRETTY_NAME="Alpine Linux v3.9"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"

and uses the Alpine Linux openjdk8-jre package:

bash-4.4# apk info|grep -i jdk
WARNING: Ignoring APKINDEX.b89edf6e.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.737f7e01.tar.gz: No such file or directory
openjdk8-jre-lib
openjdk8-jre-base
openjdk8-jre

which then provides the link /usr/lib/jvm/default-jvm

bash-4.4# ls -lah /usr/lib/jvm/
total 0
drwxr-xr-x    3 root     root          49 May 13  2020 .
drwxr-xr-x    1 root     root           6 Oct 22  2020 ..
lrwxrwxrwx    1 root     root          16 May 13  2020 default-jvm -> java-1.8-openjdk
drwxr-xr-x    5 root     root          39 May 13  2020 java-1.8-openjdk
bash-4.4# ls -lah /usr/lib/jvm/default-jvm
lrwxrwxrwx    1 root     root          16 May 13  2020 /usr/lib/jvm/default-jvm -> java-1.8-openjdk
bash-4.4# cd /usr/lib/jvm/default-jvm
bash-4.4# ls -lah
total 0
drwxr-xr-x    5 root     root          39 May 13  2020 .
drwxr-xr-x    3 root     root          49 May 13  2020 ..
drwxr-xr-x    2 root     root         181 May 13  2020 bin
drwxr-xr-x    4 root     root          95 May 13  2020 jre
drwxr-xr-x    3 root     root          19 May 13  2020 lib

It would be nice if the image was upgraded to the latest Alpine Linux version then a more advanced Java version would become available.

from docker-elasticsearch-alpine.

blacktop avatar blacktop commented on June 1, 2024

should be good now?

from docker-elasticsearch-alpine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.