Updating Products - padogrid/padogrid GitHub Wiki

◀️ Viewing PadoGrid Summaries :link: Upgrading PadoGrid ▶️

PadoGrid maintains RWE and workspace configuration information in the setenv.sh file located in their respective directory. The environement variables you set in the RWE setenv.sh file apply to all of its workspaces. In each workspace, you can ovrride any of the environment variables in their setenv.sh file.

RWE setenv.sh

You can change or add product paths in RWE as follows.

cd_rwe
vi setenv.sh

The RWE setenv.sh has contents similar to the following. You can freely set the paths in this file. Note that the IN_POD and PRODUCT_HOME environment variables shown below are reserved. IN_POD indicates whether the clusters are running inside or outside of a pod (Vagrant). Hence, the home paths set in the if block below are for clusters running outside of pods, i.e., on your host OS.

:exclamation: ThePRODUCT_HOME environment variable must be set to one of the product home paths. It is used internally to identify the default product.

if [ "$IN_POD" != "true" ]; then
   export PADOGRID_HOME="/home/dpark/Padogrid/products/padogrid_0.9.32"
   export PADO_HOME=""
   export JAVA_HOME="/etc/alternatives/java_sdk_1.8.0"
   export COHERENCE_HOME=""
   export GEMFIRE_HOME=""
   export GEODE_HOME="/home/dpark/Padogrid/products/apache-geode-1.13.2"
   export HAZELCAST_HOME="/home/dpark/Padogrid/products/hazelcast-5.3.6"
   export HAZELCAST_MC_HOME="/home/dpark/Padogrid/products/hazelcast-management-center-5.3.3""
   export JET_HOME="/home/dpark/Padogrid/products/hazelcast-jet-4.5-slim"
   export JET_MC_HOME=""
   export MOSQUITTO_HOME=""
   export SNAPPYDATA_HOME=""
   export SPARK_HOME="/home/dpark/Padogrid/products/spark-3.1.2"
   export KAFKA_HOME="/Users/dpark/Padogrid/products/confluent-7.2.2"
   export HADOOP_HOME="/home/dpark/Padogrid/products/hadoop-3.3.1"
   export PRODUCT_HOME="$HAZELCAST_HOME"
fi

Workspace setenv.sh

To change product paths specific to your workspace, you would set them in the workspace setenv.sh file.

cd_workspace
vi setenv.sh

The workspace setenv.sh file has contents similar to the following. You can freely set the paths in this file. The following example downgrades Hazelcast from 5.3.6 (see above) to 5.2.3. All others are left unchanged to use the default values set in the RWE setenv.sh file.

if [ "$IN_POD" != "true" ]; then
  #export PADOGRID_HOME=
  #export PADO_HOME=
  #export JAVA_HOME=
  export HAZELCAST_HOME="/home/dpark/Padogrid/products/hazelcast-5.2.3"
  export HAZELCAST_MC_HOME="$HAZELCAST_HOME/management-center"
  #export JET_HOME=""
  #export JET_MC_HOME=""
  #export COHERENCE_HOME=""
  #export GEMFIRE_HOME=""
  #export GEODE_HOME=""
  #export MOSQUITTO_HOME=""
  #export SNAPPYDATA_HOME=""
  #export SPARK_HOME=""
  #export KAFKA_HOME=""
  #export HADOOP_HOME=""
fi

update_padogrid Command

The update_padogrid command allows you to change products without manually editing the setenv.sh files. This is an interactive command that lists products from which you can select the ones you want to apply to the current RWE, the current workspace, or all the workspaces in the current RWE.

update_padogrid

Example Output:

Products Directoy:
   /Users/dpark/Padogrid/products

The following product versions are found in the products directory.
The current workspace versions are highlighted.

PadoGrid
   [0] (none)
   [1] 0.9.32
   [2] 0.9.31
   [3] 0.9.30
   [4] 0.9.29
   ...
Enter a version to add [0]: 1
Selected: [1] 0.9.32

Pado
   [0] (none)
Enter a version to add [0]:
Selected: [0] (none)

GemFire
   [0] (none)
   [1] 9.10.5
   [2] 9.10.4
   [3] 9.10.2
Enter a version to add [0]: 1
Selected: [1] 9.10.5

Geode
   [0] (none)
   [1] 1.13.2
   [2] 1.13.1
   [3] 1.13.0
   [4] 1.12.0
Enter a version to add [0]:

...

You can also change a single product by specifying the -product option. For example, the following changes the Hazelcast OSS product version.

update_padogrid -product hazelcast-oss

Output:

Products Directoy:
   /Users/dpark/Padogrid/products

The following product versions are found in the products directory.
The current workspace versions are highlighted.

Hazelcast OSS
   [0] (none)
   [1] 5.3.6-slim
   [2] 5.3.6
   [3] 5.3.2-slim
   [4] 5.3.2
   [5] 4.2.5
   [6] 4.2.1
   [7] 3.12.12
   [8] 3.8.1
Enter a version to add [0]:

Run the following to view the usage.

update_padogrid -?

◀️ Viewing PadoGrid Summaries :link: Upgrading PadoGrid ▶️