This is a continuing series on how to build a data lake. Welcome to part6
Part1
Part2
Part3
Part4
Part5
GemFire XD is provided as a Pivotal HD installable component, for use with the Pivotal Command Center CLI installer. The CLI installation process installs multiple instances of GemFire XD. You can use ICM to install GemfireXD when you deploy your PHD environment or you can reconfigure a cluster to support it after deployment. In this example below we are reconfiguring an environment to support Gemfire after deploying PHD, HAWQ, and PFX with EMC Isilon for HDFS. Previous blogs have shown the initial deployment
Install
Download the PRTS tarball to the /tmp/PHD directory
Prepare the gemfire nodes
icm_client preparehosts --hostfile=/tmp/PHD/gemxdnode.txt --java=/tmp/PHD/jdk-6u26-linux-x64-rpm.bin
confirm they are prepared:
icm_client scanhosts -f /tmp/PHD/gemxdnode.txt
Unzip the tar files:
tar -zxf Pivotal_GemFireXD_05Beta2_b44694.tar.gz
tar -xf PRTS-1.0.0-9.tar.gz
Import the files:
icm_client import -s PRTS-1.0.0-9/
Stop the cluster and fetch the configuration file
icm_client stop -l DataLakeCluster
icm_client fetch-configuration -l DataLakeCluster -o /tmp/firstreconfig
Using vim edit file /tmp/firstreconfig.xml
add gfxd in service tag
add the following to <hostRoleMapping>
<gfxd>
<gfxd-locator>gemxdnode1.cto.emc.local</gfxd-locator>
<gfxd-server>gemxdnode2.cto.emc.local,gemxdnode3.cto.emc.local,gemxdnode4.cto.emc.local</gfxd-server>
</gfxd>
Save changes to the file. Now we will use this config file to reconfigure the cluster to use GemfireXD
icm_client reconfigure -l DataLakeCluster -c /tmp/firstreconfig/ -j /tmp/PHD/jdk-6u26-linux-x64-rpm.bin -d -i -y /usr/lib/gphd/gphdmgr/hawq_sys_config/
The cluster will be reconfigured with GemfireXD
Start GemfireXD
We defined the locater and server nodes in the cluster reconfig. Now we need to enable theses services on the servers.
On locator server
mkdir in /home for locator [gemxdnode1] and dir for locator [locator]
on locatore server:
sqlf locator start -dir=/home/locator -peer-discovery-port=10101 -client-port=1527 -jmx-manager-start=true -jmx-manager-http-port=7075
sqlf server start -dir=/home/gemxdnode1 -locators=localhost[10101] -client-port=1528
on node2:
/home/gemxdnode2
sqlf server start -dir=/home/gemxdnode2 -locators=gemxdnode2.cto.emc.local[10101] -client-port=1529
on node3:
/home/gemxdnode3
sqlf server start -dir=/home/gemxdnode3 -locators=gemxdnode1.cto.emc.local[10101] -client-port=1530
on node 4:
/home/gemxdnode4
sqlf server start -dir=/home/gemxdnode4 -locators=gemxdnode1.cto.emc.local[10101] -client-port=1531
When complete get this:
Starting SQLFire Server using locators for peer discovery: gemxdnode1.cto.emc.local[10101]
Starting network server for SQLFire Server at address localhost/127.0.0.1[1531]
Logs generated in /home/gemxdnode4/sqlfserver.log
SQLFire Server pid: 31246 status: running
Distributed system now has 5 members.
Other members: gemxdnode3(31256:datastore)<v3>:34792, gemxdnode1(13348:datastore)<v1>:3799, gemxdnode1(13097:locator)<v0>:12067, gemxdnode2(31268:datastore)<v2>:17481
7, gemxdnode2(31268:datastore)<v2>:17481
Gemxd is now up and running in the cluster