i can't run Apache Cassandra on my windows - cassandra

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.

Related

Unrecognized VM option 'UseParNewGC' in Cassandra Windows 10 installation

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 ?

How to start Oracle 11g automatically using script on Fedora 23?

I have installed Oracle 11g on my Fedora 23 Virtualbox ,each time I want to start Oracle I have to start
sqlplus '/as sysdba' then type startup and then exit and then type
lsnrctl start and then again type emctl start dbconsole ...how to automate this using a script or any alternative way but I prefer script once my server start ...I'm also not able to connect to my server from outside the virtual machine.
thanks in advance
The best way is to create a systemd .service unit file. I don't think there is an official one, but this oracle forum post contains an example for Fedora 25 Server. You can find more information about writing .service files here: https://unix.stackexchange.com/questions/15348/writing-basic-systemd-service-files

VSCode with WSL - How to use Bash for the launch configurations?

I use Visual Studio Code to develop a TypeScript Node application on Windows 10, with WSL enabled.
Thanks to other threads, I'm almost able to run a VSCode task with Bash on Ubuntu on Windows.
But now I try to do the same with a launch configuration. How can I make a launch configuration to use the node executable installed in WSL instead of the one installed on Windows?
If I run this command directly in the integrated terminal, with Bash, it works :
node src/start.js
But when I press "[F5]" and start a launch configuration that runs this same file, I get an error : "Error: %1 is not a valid Win32 application". This is because the oracledb library is used and has been compiled in Bash, not in Windows.
How can I make a launch configuration use Bash to run Node?
UPDATE : I opened an issue about that on VSCode's GitHub page.
Not if sure you still need help.
open bash outside of the vs code.
then run the following command, to install node.
sudo apt install nodejs-legacy
and you should be able to run node with bash in vs code.

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