Neo4j db slow running it on Mac M1 with neo4j desktop - neo4j

I downloaded the neo4j desktop to my Mac M1, I notice that the same import which takes a few minutes on an Ubuntu 20.04 machine (same running a neo4j db in desktop setup) is extremely slow. (48 hours for the same query)

After talking to some neo4j folks on the conference:
https://mkyong.com/java/how-to-install-java-on-mac-osx/
you need to:
brew install java
sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
I already had a neo4j desktop on my machine so to make it work I reinstalled the neo4j desktop and created a new db, now the import flies.
(And you probably do not need to reinstall just create a new db)

Related

Run two Neo4j instances as Windows Service on one machine

I can start already two different Neo4j instances on my Windows machine on the console, but how can I now start them automatically as a Windows Service? I was just able to install one with the powershell scripts.
Many Thanks
When you install Neo4j as a service, Neo4j takes the configuration dbms.windows_service_name as a service name.
So to install two Neo4j as a service, you need to change one.
I recommend you to uninstall all neo4j services, and then to reinstall them with ta diffrent name.

Neo4j Start Error: /var/run/neo4j/neo4j.pid: No such file or directory

After upgrading from Neo4j 3.0 to 3.1 (and subsequently 3.2), I get the following error after running sudo neo4j start:
/usr/share/neo4j/bin/neo4j: line 411: /var/run/neo4j/neo4j.pid: No such file or directory
Nonetheless, Neo4j is actually running after running this command.. However, I cannot then stop Neo4j afterwards with sudo neo4j stop, as there is no PID.
How can I fix this?
Notes:
I upgraded using sudo apt upgrade
It is possible to get around this issue by doing a sudo mkdir /var/run/neo4j beforehand, but was hoping there might be a more effective solution.
When using the installation package you should not start/stop with the neo4j script, but use the installed service. Depending on your Ubuntu version that is
sudo service neo4j {start|stop|restart}
or
sudo systemctl {start|stop|restart} neo4j
Check http://neo4j.com/docs/operations-manual/current/installation/linux/debian/ and http://neo4j.com/docs/operations-manual/current/installation/linux/systemd/ for more information.
Hope this helps,
Tom
P.S. Note that starting/stopping without using the service may have started Neo4j with the wrong user (root instead of neo4j) and files may therefore have the wrong ownership now !

Docker needs to be installed each time I restart the VM in Oracle VirtualBox

I'm totally new to Docker and had few queries with the Docker installation.
I've Windows 7 64 bit OS and installed Oracle Virtualbox to run Ubuntu 16.04 ISO image.
I've installed Docker and it works fine.
The problem I face is, each time I shutdown the VM created in Virtualbox and start it again, I have to run the complete steps to setup Docker again. No settings are saved. Even the documents I save on Ubuntu desktop are gone. Can someone please help me understand as to why this happens?
One doubt I have is, each time when I start Ubuntu, I opt to run from the CD. Could this be the reason?
enter image description here
Yes, you should instead go through the installation. Then you can even disconnect the optical drive to use less resources and avoid confusion in the future.

Not able to see Neo4j Shell in the installation directory

I'm using Neo4j 2.1.4 Community Edition.
I'm able to write cypher queries in neo4j browser. If I switch from neo4j browser to Webadmin ,there are 5 tabs where you can see Console . So is it a Neo4j Shell? In neo4j manual it is given that neo4j shell should be started from its installation directory i.e.,./bin/neo4j-shell , but i can not see the neo4j-shell option under /bin directory. Is it available only in enterprise edition?
Also in the neo4j manual it is said that the commands like cd,ls,pwd but I'm not able to run these commands in neo4j wedadmin console.. Is Console providing all the neo4j shell features or it is only meant for specific commands(limited features).
Please clarify the above quesries
Updates: Below is the Neo4j installation directory and i'm using windows7
Thanks,
What OS did you install it on? And how?
If you did debian package then neo4j-shell is available on your path.
The bin directory is where you unzipped the Neo4j download.
You should also be able to run the commands listed (ls etc.) in the "Console" tab of the http://localhost:7474/webadmin UI

neo4j migration from different machines

I have neo4j 1.8.M05 on a windows machine. I have installed the same version on a linux machine (ubuntu) and want to migrate data to linux. should I xcopy the /data folder? just /data/graph.db? or something else?
just /data/graph.db works fine as michael mentions

Resources