Question
Capgemini
IN
Last activity: 7 Apr 2021 5:18 EDT
Error starting Cassandra/DDS node in Pega 8.4.2 Personal Edition
I am trying to install Pega 8 personal edition in my personal Windows 10 system. All other services start fine except the Decision Data Store and Real-time Data Grid nodes, underlying reason being Cassandra service is not started.
Following are the some details that I have used for my setup:
JDK 1.8.0_261 (64-bit)
Apache Tomcat 9.0.37
Pega 8.4.2
PostgreSQL 12.3
Updated config properties:
-DNodeType=Universal (have tried giving specific types as well)
-Djava.awt.headless=true
Have also updated 'powershell Set-ExecutionPolicy Unrestricted'
Have verified that the ports 7199, 51427, 51354, 51240, 50752, 50678, 50296, 48895 are all not already being listened on (using netstat command).
Attached are both Pega and Cassandra logs. Kindly check on them and let me know what is the problem and how to fix it.
This seems to be a problem for quite a few people.
-
Likes (2)
Kalari Tejaswi Martin Clark -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 7 Apr 2021 5:16 EDT
Capgemini
IN
Tried a couple of things (based on some threads on Cassandra issues in Apache forum) and service seems to start now:
1. Instead of using the latest JDK version, downgraded to jdk1.8.0_251
2. Made the below change in VerifyPortsAreAvailable function in cassandra.ps1 file
Remove -- if ($line -match "TCP" -and $line -match $portRegex)
Add -- if ($line -match "LISTENING" -and $line -match "TCP" -and $line -match $portRegex)
Note: Please make sure you have done "powershell Set-ExecutionPolicy Unrestricted" step as well and followed all other steps as per the installation document.
Pegasystems Inc.
GB
Hi Viswa,
Please check below link, this may help you.
Capgemini
IN
Thank you for you reply. I did try decommissioning the failed node but am not getting the option to add the node. Could you help with steps for that?
Pegasystems Inc.
IN
If you decommissioned the node ,
A simple restart of node/server would add it back.
Capgemini
IN
I did try restarting many times... The cassandra service itself doesn't seem to start.
Capgemini
IN
@Prakhar_GCS Any further updates that I can use? Have tried again by installing Pega 8.5.3 on Tomcat 9.0.44 with PostgreSQL 9.6 and JDK 1.8.0_281 on my Windows 10 PC. Still same issues with DDS.
set JAVA_OPTS=-Xms4096m -Xmx8192m -XX:MaxMetaspaceSize=768m -Djava.awt.headless=true -DNodeType=Stream,BackgroundProcessing,WebUser,Search,RealTime,DDS,Batch,ADM
Are there any separate steps to perform to connect to Cassandra service?
Capgemini
IN
@MarcLasserre_GCS @KevinZheng_GCS can you help. Have searched through the entire website but found nothing. Attaching the logs for your reference.
Have even tried stopping the ADMSnapshot agent, stopped the firewall and antivirus, reviewed the ports as well but still don't see the Cassandra service running. There was nothing on 7000, 7199, or 9042 ports. In the logs it says "Found a port already in use. Aborting startup".
Thank you
Capgemini
IN
The Cassandra service is not coming up. I see the below message during each restart:
Caused by: com.pega.dsm.dnode.api.DNodeException: Unable to start DDS. Process has exited with code: 0 Detected powershell execution permissions. Running with enhanced startup scripts. *---------------------------------------------------------------------* *---------------------------------------------------------------------*
WARNING! Automatic page file configuration detected. It is recommended that you disable swap when running Cassandra for performance and stability reasons.
*---------------------------------------------------------------------* *---------------------------------------------------------------------* *---------------------------------------------------------------------* *---------------------------------------------------------------------*
WARNING! Detected a power profile other than High Performance. Performance of this node will suffer. Modify conf\cassandra.env.ps1 to suppress this warning.
The Cassandra service is not coming up. I see the below message during each restart:
Caused by: com.pega.dsm.dnode.api.DNodeException: Unable to start DDS. Process has exited with code: 0 Detected powershell execution permissions. Running with enhanced startup scripts. *---------------------------------------------------------------------* *---------------------------------------------------------------------*
WARNING! Automatic page file configuration detected. It is recommended that you disable swap when running Cassandra for performance and stability reasons.
*---------------------------------------------------------------------* *---------------------------------------------------------------------* *---------------------------------------------------------------------* *---------------------------------------------------------------------*
WARNING! Detected a power profile other than High Performance. Performance of this node will suffer. Modify conf\cassandra.env.ps1 to suppress this warning.
*---------------------------------------------------------------------* *---------------------------------------------------------------------* VerifyPortsAreAvailable : Found a port already in use. Aborting startup At C:\Program Files\Apache Software Foundation\Tomcat 9.0\cassandra\bin\cassandra.ps1:98 char:9 + VerifyPortsAreAvailable + ~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorExcep tion + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio n,VerifyPortsAreAvailable VerifyPortsAreAvailable : TCP Proprietary information hidden:57049 Proprietary information hidden:7199 SYN_SENT At C:\Program Files\Apache Software Foundation\Tomcat 9.0\cassandra\bin\cassandra.ps1:98 char:9 + VerifyPortsAreAvailable + ~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorExcep tion + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio n,VerifyPortsAreAvailable
Capgemini
IN
The following also shows up in the logs when starting cassandra
# JRE version: Java(TM) SE Runtime Environment (8.0_261-b12) (build 1.8.0_261-b12) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.261-b12 mixed mode windows-amd64 compressed oops) # Problematic frame: # C [sigar-amd64-winnt.dll+0x14ed4]
Is this a compatibility issue with OOTB cassandra and JDK version?
Transavia
NL
Hi,
Did you find a fix for this? Please share your experience
Capgemini
IN
@Srikrishnakanth No fix yet. Still an issue.
Accepted Solution
Updated: 7 Apr 2021 5:16 EDT
Capgemini
IN
Tried a couple of things (based on some threads on Cassandra issues in Apache forum) and service seems to start now:
1. Instead of using the latest JDK version, downgraded to jdk1.8.0_251
2. Made the below change in VerifyPortsAreAvailable function in cassandra.ps1 file
Remove -- if ($line -match "TCP" -and $line -match $portRegex)
Add -- if ($line -match "LISTENING" -and $line -match "TCP" -and $line -match $portRegex)
Note: Please make sure you have done "powershell Set-ExecutionPolicy Unrestricted" step as well and followed all other steps as per the installation document.
Updated: 7 Apr 2021 5:18 EDT
Capgemini
IN
Supported version does not include PostgreSQL 12, better to use version 9.6 instead and use JDK 8 only instead of 9 or higher.
Please review platform support guide for further reference.