Git Product home page Git Product logo

hazelcast-packaging's Introduction

Hazelcast Packaging

Automation scripts to package and publish Hazelcast and Hazelcast Enterprise as DEB, RPM and Homebrew packages.

Requirements

  • To install Hazelcast via a package manager your system must support either yum, apt or Homebrew.
  • JRE 8+ is required.

Install latest stable version of Hazelcast

This version is suitable for most users of Hazelcast. When unsure, use this version.

NOTE: The same steps apply to hazelcast and hazelcast-enterprise packages

Install with apt

You can find the Debian packages for Hazelcast at Hazelcast's Debian repository. Run the following commands to install the package using apt:

Add repository

wget -qO - https://repository.hazelcast.com/api/gpg/key/public | gpg --dearmor | sudo tee /usr/share/keyrings/hazelcast-archive-keyring.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/hazelcast-archive-keyring.gpg] https://repository.hazelcast.com/debian stable main" | sudo tee -a /etc/apt/sources.list
sudo apt update

NOTE: If you want to stay on latest patch version for a particular minor release you can replace main component with x.y, e.g. 5.1.

wget -qO - https://repository.hazelcast.com/api/gpg/key/public | gpg --dearmor | sudo tee /usr/share/keyrings/hazelcast-archive-keyring.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/hazelcast-archive-keyring.gpg] https://repository.hazelcast.com/debian stable 5.1" | sudo tee -a /etc/apt/sources.list
sudo apt update

Install Hazelcast (open source)

sudo apt install hazelcast

or Hazelcast Enterprise (license required)

sudo apt install hazelcast-enterprise

Install with yum/dnf/microdnf

The RPM packages for Hazelcast are kept at Hazelcast's RPM repository. Please run the following commands to install the package using yum/dnf:

Add repository

wget https://repository.hazelcast.com/rpm/stable/hazelcast-rpm-stable.repo -O hazelcast-rpm-stable.repo
sudo mv hazelcast-rpm-stable.repo /etc/yum.repos.d/
sudo yum install hazelcast

Install Hazelcast (open source)

sudo yum install hazelcast

or Hazelcast Enterprise (license required)

sudo yum install hazelcast-enterprise

Install with Homebrew

To install with Homebrew, you first need to tap the hazelcast/hz repository. Once you’ve tapped the repo, you can use brew install to install:

Add repository

brew tap hazelcast/hz

Install Hazelcast (open source)

brew install hazelcast

or Hazelcast Enterprise (license required)

brew install hazelcast-enterprise

Upgrading

Use default commands of your package manager to perform the upgrade of the installed hazelcast package (e.g. hazelcast, hazelcast-enterprise,hazelcast-snapshot,hazelcast-beta,hazelcast-5.0 etc.)

NOTE: Upgrades from 5.2021.x.y to newer 5.x.y versions are not supported. Remove the older package first and then install the newer one.

Upgrade with apt

sudo apt update
sudo apt install <installed-hazelcast-package>

Upgrade with yum/dnf/microdnf

sudo yum update <installed-hazelcast-package>

Upgrade with Homebrew

brew install <installed-hazelcast-package>

Installing an older version and preventing upgrades

NOTE: The same steps apply to hazelcast and hazelcast-enterprise packages

Install an older version with apt

After adding the repository run the following to install e.g. version 5.0.1:

sudo apt install hazelcast=5.0.1

To keep the particular version during apt upgrade hold the package at the installed version by running the following:

sudo apt-mark hold hazelcast

Install an older version with yum/dnf/microdnf

After adding the repository run the following to install e.g. version 5.0.1:

sudo yum install hazelcast-5.0.1

To keep the particular version during yum update hold the package at the installed version by running the following:

sudo yum -y install yum-versionlock
sudo yum versionlock hazelcast

Install an older version with Homebrew

Run the following to install e.g. version 5.0.1:

brew install [email protected]

Installing a SNAPSHOT/DEVEL/BETA version

NOTE: The same steps apply to hazelcast and hazelcast-enterprise packages

Install a SNAPSHOT/DEVEL/BETA version with apt

You need to replace stable with snapshot/devel/beta in the repository definition to use Hazelcast snapshots.

Run the following to install the latest snapshot version:

Add repository

wget -qO - https://repository.hazelcast.com/api/gpg/key/public | gpg --dearmor | sudo tee /usr/share/keyrings/hazelcast-archive-keyring.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/hazelcast-archive-keyring.gpg] https://repository.hazelcast.com/debian snapshot main" | sudo tee -a /etc/apt/sources.list
sudo apt update

Install Hazelcast (open source)

sudo apt install hazelcast

or Hazelcast Enterprise (license required)

sudo apt install hazelcast-enterprise

Install a SNAPSHOT/DEVEL/BETA version with yum

You need to replace stable with snapshot/devel/beta in the repository definition to use Hazelcast snapshots.

Run the following to install the latest snapshot version:

Add repository

wget https://repository.hazelcast.com/rpm/snapshot/hazelcast-rpm-snapshot.repo -O hazelcast-rpm-snapshot.repo
sudo mv hazelcast-rpm-snapshot.repo /etc/yum.repos.d/

Install Hazelcast (open source)

sudo yum install hazelcast

or Hazelcast Enterprise (license required)

sudo yum install hazelcast-enterprise

Install a SNAPSHOT/DEVEL/BETA version with Homebrew

You need to add snapshot/devel/beta suffix to the package version when installing a snapshot.

Run the following to install the latest snapshot version of open-source Hazelcast:

brew tap hazelcast/hz
brew install hazelcast-snapshot

Run the following to install the latest devel version of Hazelcast Enterprise:

brew tap hazelcast/hz
brew install hazelcast-enterprise-devel

Search for available versions using the following command:

brew search hazelcast

Running Hazelcast

After successful installation all commands from Hazelcast distribution bin directory should be on path.

Run the following command to start a Hazelcast server with the default configuration:

hz start

To see additional options, run the following:

hz start --help

NOTE: hz command is not available in versions 5.0, 5.0.1, 5.0.2, use hz-start instead.

hazelcast-packaging's People

Contributors

alparslanavci avatar dependabot[bot] avatar enozcan avatar fbarotov avatar frant-hartm avatar googlielmo avatar hasancelik avatar ldziedziul avatar mmedenjak avatar pivovarit avatar vbekiaris avatar

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.