From nobody Wed Sep 17 19:17:54 2025 X-Original-To: elastic@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cRpSf0c73z67vJN for ; Wed, 17 Sep 2025 19:17:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cRpSf03Ftz46cY for ; Wed, 17 Sep 2025 19:17:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758136674; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vowH3RXefLoTghpD777iUfun9yJDK2T5wapofRgsObs=; b=VgvbFgsxa71Vy+YROofN2DikSga6Q+7jMBih2CLe9Jaxgf0hrZrjeyqVMyUyviZzdsqUgA BeQiG1KLVCJclrGBXCMTihJzhXCDWLeQz4ba/VRupgx/COQysen5noX1QmlxVo0+J4AVpA UnLJaISNdsL9A5bYzrt5VSRTD2/dFQa/7echH2Vz3PEIVgJixLtenl8IkPpC0TJ6tZlpCj BBspEL6sMm82t8JFf/kXNnHj82e3jZJ/f+tI0qdMTRcIHljxWoNq90uquG3696Y0/rS3pu q3t0SfeC86b3uwFCXp0MV4xqIZZaMCJ4jwNdYNgdbVF4c5ioi5PPpRjWmOCbbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758136674; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vowH3RXefLoTghpD777iUfun9yJDK2T5wapofRgsObs=; b=Bp1lYQxBtRBQP9YJA8BMjnsR2soyJdYb9ERvyUJRyV7Z7MDVAY1TRSnm+X9qTeuqy7EzpL UhLAv9CiL1i5wG3lCkzvmHd5T6h+1UojNSbVq1v5SU8wJLboOteotbIExXwrp+XcdAwPGs Nlly0XKMu2HnTWGyWkmgXOXSq41q0IkIv1yq7YLqqXc47JWXeEP8cmaowMRP1TDVayIiX+ UsvMiKwb3QCzs2tUE4yjex1rKhfhlwyuLjFChUFZBoOxlcVppG7qbCtVRbGeVkRChBC4KK jFfrSQNYJ/m96iAreGofFPkHbYQJdq+1aNOt+SYN/Ay2ZWKK8Kwo6vM0iu2IOQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1758136674; a=rsa-sha256; cv=none; b=RmEu4oaXR1qq1r6z7tlTtQ8y/09Z/97UOQZmtPriiYHyGNCJb2aTtzBbOsT3BwbBtUZcxn j3Ntk8/6BqFTHO7Za3JVgWt3bJJDZUuVQB8eZMe6jeimlNiAUSAxe5kr/Lbb5kVezZR+/U KXpJpJT+P2clltgyxt+bdMqFYxiJat0FNu6ijIlyBeYfKWvniZrnuOfUUvWkFg30LC06Vf mKkyT2NWtFeKXG28LH9uFuiG+qhB0h1eiSktOH/4nKA7QH1BPXIWzW2zBtGgWGL9XvWT4H yzUd0S3INhXPCR0FVDkL/EOk7uY1I6WJCfmxL7bn1WFWSUfpxu8htBzPhEpGzg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cRpSd6Ty5zg0C for ; Wed, 17 Sep 2025 19:17:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 58HJHrph045505 for ; Wed, 17 Sep 2025 19:17:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 58HJHrXd045504 for elastic@FreeBSD.org; Wed, 17 Sep 2025 19:17:53 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: elastic@FreeBSD.org Subject: [Bug 288653] textproc/elasticsearch8: Update to recent version Date: Wed, 17 Sep 2025 19:17:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: web@saromedia.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: elastic@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Support of ElasticSearch-related ports List-Archive: https://lists.freebsd.org/archives/freebsd-elastic List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-elastic@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D288653 --- Comment #4 from Saro --- An update: I have moved my repository to a GitHub organization as I plan to upload a few more port projects, such as Elastic's machine learning (ml-cpp) library. New location: https://github.com/portsbuild/elasticsearch Currently, the 8.19.3 distribution is tagged and a binary artifact is readi= ly available (built via GitHub Actions). It's understandable if one does not w= ish to download an unknown binary, so I will provide the building steps and a p= ort Makefile in a follow-up comment (or see: https://github.com/sarog/freebsd-ports/tree/main/textproc/elasticsearch8). While I have successfully upgraded my ES nodes from 8.15.5 to 8.19.3, I strongly recommend testing this release before rolling out into production! Please note: if you are using Kibana, you may also need to update it to 8.1= 9.x. The port is available here if you want to try it: https://github.com/sarog/freebsd-ports/tree/main/textproc/kibana8 Building Elasticsearch ---------------------- First, please review the code changes: https://github.com/elastic/elasticsearch/compare/v8.19.3...portsbuild:elast= icsearch:v8.19.3 Once reviewed, you can build the FreeBSD package on any OS of your choice. = When building on FreeBSD, I had to install java/openjdk versions 17 to 23 (inclusive). Running ES 8.19.3 requires openjdk 21+. **NOTE**: the following will build Elasticsearch with a TEST public key (the "license.key" property in the build command below). This means if you have a valid ES (e.g. Enterprise) license key, it will not work with this build. T= he solution is to build the package with Elastic's production public key, whic= h is easily extracted from a 8.19.3 release (re: x-pack-core-8.19.3.jar). I will apply this change once I can confirm the build works. ## Install the necessary JDKs $ pkg install java/openjdk17 java/openjdk19 java/openjdk20 java/openjdk21 java/openjdk22 java/openjdk23 $ git clone --depth 1 --branch v8.19.3 https://github.com/portsbuild/elasticsearch elasticsearch-8.19.3 $ cd elasticsearch-8.19.3 $ ./gradlew distribution:archives:freebsd-tar:assemble -D"build.snapshot=3D= false" -D"license.key=3Dx-pack/license-tools/src/test/resources/public.key" -Porg.gradle.java.installations.paths=3D/usr/local/openjdk21,/usr/local/ope= njdk17,/usr/local/openjdk19,/usr/local/openjdk20,/usr/local/openjdk22,/usr/= local/openjdk23 $ mv distribution/archives/freebsd-tar/build/distributions/elasticsearch-8.19.3-= freebsd-x86_64.tar.gz /usr/ports/distfiles/ ## Apply the port patch (supplied in a follow-up comment). ## You may want to create a /usr/local/ports and extract the port patch the= re to avoid conflicts. $ cd /usr/ports/textproc/elasticsearch8 $ make makesum $ make reinstall clean If you are upgrading from a previous version, do not forget to update jvm.options with the properties mentioned in the previous post. On new installs, the port includes the necessary patches to update jvm.options for you. Update rc.conf with the following so ES uses JDK 21: elasticsearch_java_home=3D"/usr/local/openjdk21" Upgrade docs from Elastic: https://www.elastic.co/docs/deploy-manage/upgrade/deployment-or-cluster/sel= f-managed Next up: updating sysutils/beats8 and sysutils/logstash8 --=20 You are receiving this mail because: You are the assignee for the bug.=