Creating Jet Workspace - padogrid/padogrid GitHub Wiki
◀️ Hazelcast CLASSPATH :link: Configuring Hazelcast Addon ▶️
To create a Jet workspace, first install Jet and run the create_workspace
script as shown below. Note that, in the example, the hazelcast-jet-enterprise-3.2
installation directory path is entered for the Hazelcast home directory path.
create_workspace -name ws-jet
Please answer the prompts that appear below. If you are not able to complete
the prompts at this time then use the '-quiet' option to bypass the prompts.
You can complete the requested values later in the generated 'setenv.sh' file
You can abort this command at any time by entering 'Ctrl-C'.
Enter Java home path.
[/Library/Java/JavaVirtualMachines/jdk1.8.0_212.jdk/Contents/Home]:
Enter Hazelcast (IMDG or Jet) home directory path. Choose one
from the defaults listed below or enter another.
/Users/dpark/padogrid/products/hazelcast-enterprise-3.12.6
/Users/dpark/padogrid/products/hazelcast-jet-enterprise-3.2.2
[/Users/dpark/padogrid/products/hazelcast-enterprise-3.12.6]:
/Users/dpark/padogrid/products/hazelcast-jet-enterprise-3.2.2
Enter workspace name.
[ws-jet]:
Enter default cluster name.
[myjet]:
You have entered the following.
JAVA_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_212.jdk/Contents/Home
JET_HOME: /Users/dpark/padogrid/products/hazelcast-jet-enterprise-3.2.2
PADOGRID_WORKSPACE: /Users/dpark/padogrid/products/workspaces/myrwe/ws-jet
CLUSTER: myjet
Enter 'c' to continue, 'r' to re-enter, 'q' to quit: c
Workspace created:
/Users/dpark/padogrid/products/workspaces/ws-jet
The workspace directory also contains the following files.
initenv.sh - Workspace initialization file. Source this file in to
enter the workspace.
setenv.sh - You can set your workspace-wide environment variables in
this file.
.addonenv.sh - A hidden file containing the workspace environment variables.
You can overwrite them in setenv.sh as needed.
IMPORTANT:
----------
To use this workspace, execute the 'switch_workspace' command as follows:
switch_workspace ws-jet
To test Jet, run the included jet_demo
app as shown below.
# 1. Switch workspace
switch_workspace ws-jet
# 2. Create the default cluster if you haven't done so yet
create_cluster
# 3. Start the default Jet cluster
start_cluster
# 4. Change directory to jet_demo, build, and submit WorkCountJob.
# Note that the default port for Jet is also 5701 but due to port conflict issues,
# padogrid defaults to 6701.
cd_workspace
cd_app jet_demo; cd bin_sh
./build_app
cd ../lib
jet.sh -a localhost:6701 submit WordCountJob.jar
◀️ Hazelcast CLASSPATH :link: Configuring Hazelcast Addon ▶️