Unrecognized VM option 'UseParNewGC' in Cassandra Windows 10 installation - cassandra

I am trying to install Cassandra 3.11.6 in Windows 10. I have set the environment variables and my current java version is 1.8.0_241. When I run the command "cassandra -f" in command prompt I'm getting the below message.
WARNING! Powershell script execution unavailable.
Please use 'powershell Set-ExecutionPolicy Unrestricted'
on this user-account to run cassandra with fully featured
functionality on this platform.
Starting with legacy startup options
Starting Cassandra Server
Unrecognized VM option 'UseParNewGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
How can I get Cassandra to work ? Am I missing something ?

Related

Azure Purview & Self-hosted integration runtime - Java not found error

I am following the guide here to register and scan a Hive Metastore from Azure Purview.
However I get the following error when I run the scan:
Error: (3913) JavaException: Java cannot be found. Please install and add to Path
This is the error shown in the Event Viewer:
System error while attempting to launch datascan process. ActivityId: 882a48d1-1fc1-4aed-80c2-16a4b0687e81
Exception:'Type=Microsoft.DataTransfer.Execution.Core.ExecutionException,Message=JavaException: Java cannot be found. Please install and add to Path,Source=Microsoft.DataTransfer.Execution.DataScanExecutor,StackTrace= at Microsoft.DataTransfer.Execution.DataScan.Helpers.JavaEnforcer.GetJavaVersion()
at Microsoft.DataTransfer.Execution.DataScan.Helpers.JavaEnforcer.Enforce()
at Microsoft.DataTransfer.Execution.DataScan.DataScanExecutor.d__20.MoveNext(),'
Job ID: a0525370-ad15-4132-99b1-069527015834
Log ID: Error
However I have correctly installed Java on the Windows VM as shown with these cmds and outputs:
C:\Users\admin>where java
C:\Program Files\Java\jdk-11.0.11\bin\java.exe
C:\Users\admin>java -version
java version "11.0.11" 2021-04-20 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.11+9-LTS-194)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.11+9-LTS-194, mixed mode)
C:\Users\admin>echo %JAVA_HOME%
C:\Program Files\Java\jdk-11.0.11
C:\Users\admin>echo %Path%
C:\Program Files\Java\jdk-11.0.11\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Java\jdk-11.0.11\bin;
Is there anything else that I might have missed to correctly install Java? I also followed the instructions to add to the Path under User variables for admin and System variables.
Here's a few solutions:
Ensure all components use the same architecture (x86 or x64):
Java, Visual Studio C++ Redistributable, and SHIR
Ensure the JDBC driver installed (i.e. ojdbc7.jr) has Full File Permissions added to it for the "NT Service\DiaHostService" (Ensure when searching the user the "From this Location" is set to the local PC not an AD domain).
Ensure _JAVA_OPTION environment variable is not set

i can't run Apache Cassandra on my windows

I have installed Cassandra in windows , i already have jdk 8 and python 2.7
( also 3.8 ) but when i run the commande cassandra in the terminal :
WARNING! Powershell script execution unavailable.
Please use 'powershell Set-ExecutionPolicy Unrestricted'
on this user-account to run cassandra with fully featured
functionality on this platform.
Starting with legacy startup options
Starting Cassandra Server
Unrecognized VM option 'UseParNewGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
you would need to run the below commands to be able to proceed further - basically setting up execution policy. These are to be run from power shell. Once done, you can run your command from the regular command prompt.

Unable to install Cassandra cluster from Lifecycle Manager

I am trying to install a cassandra cluster using Lifecycle Manager, but I have this error :
Meld execution failed: Failure to install Java: Could not determine if java installation is necessary. Java must either be installed as a pre-requisite, or it must be configured to to be installed via the java-setup section of a config-profile: Java must either be installed as a pre-requisite, or it must be configured to to be installed via the java-setup section of a config-profile
The problem here is I have already Java installed on the machine:
echo $JAVA_HOME
/usr/OpenJDK8U-jdk_x64_linux_8u242b08
Can you please give me some ideas about that problem ? Where should I look first ?
If you have Java already installed, just configure OpsCenter to not install it as described in documentation. Go to "Config profiles", select profile to use, find "Java Setup" section, and uncheck the "manage-java" checkbox.

Does sonarqube 5.1 support ARM?

I'm trying to install sonarqube in a Synology Diskstation DS112j with an ARM Processor.
In sonarqube-5.1/bin folder there's only batch files for linux-x86-32/64 bits so I can't start sonarqube due to this error
/var/services/sonarqube-5.1/bin/linux-x86-32/./wrapper: line 1: syntax error: unexpected "("
Failed to start SonarQube.
Is there any sonar.sh for ARM or any workaround to install sonarqube in an ARM diskstation?
SonarQube does not officialy support ARM processors, that's why there's no sonar.sh script for ARM.
What's more, I know some guys tried to make it work, but they failed.
Thread 1
Thread 2
Still, you can try again and write a simple script so start SQ:
#! /bin/sh
java -jar lib/sonar-application-5.1.jar
Just put this script in the SQ intallation root directory, run it, et voilĂ !
(if SonarQube starts but has other errors, please open another question)
In the past (cf. post), I succeed to run SonarQube v3.7.3 on a Qnap 219 : CPU armv5tel.
Using linux-x86-32 script, but with a Java Service Wrapper lib override : Linux armel
I can retry and write more detailed process if not trivial ...
SonarQube Scanner now (3.1) provides a ANY release, which supports running in native java installation. The bin/sonnar-scanner file is a shell script which works just fine.
https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner

Got "neo4j: command not found" error when installing Neo4j on Linux machine

I tried to install Neo4j1.9.2 on an Ubuntu machine. I downloaded neo4j-community-1.9.2-unix.tar.gz from Neo4j.org and unzipped it. The neo4j file is in the bin directory.
In bin directory, I typed command "neo4j start", got error "neo4j: command not found". I also tried command "sudo neo4j install", after I provided the password, I got same error "neo4j: command not found".
Java has been installed on this machine:
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.5) (6b27-1.12.5-0ubuntu0.12.04.1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
You probably don't have . in your PATH, so you need to do ./neo4j start.
If you install neo4j on your system using a package manager (mine is on gentoo using the portage overlay) the command is under /etc/init.d/neo4j. I found these useful in gentoo.
rc-service neo4j start
rc-update add neo4j default
The shell is on the path for all users, but the service is not on the path. This is the case for most services in most linux distributions, unless you have a DIY install.
You can start the neo4j server with:
service neo4j-service start
But, if you are able to access localhost:7474, then the server has already been started. You can check the status with:
service neo4j-service status

Resources