How to make neo4j to read non english path? - neo4j

023-01-07 15:59:41.406+0000 WARN Config file
[C:\Users\u0410\u0434\u043C\u0438\u043D\.Neo4jDesktop\relate-data\dbmss\dbms-28f8b421-
de24-438e-a795-13870c97715a\conf\neo4j.conf] does not exist.
2023-01-07 15:59:41.407+0000 INFO Neo4j Server shutdown initiated by request
2023-01-07 15:59:41.407+0000 INFO Stopped.
I guess the problem is in the path because my actual path is
C:\Users\Админ\.Neo4jDesktop\relate-data\dbmss\dbms-28f8b421-de24-438e-a795-
13870c97715a\conf\neo4j.conf
The config file exists. Is there any options to change the folder or to make neo4j parse the word properly not in unicode?

Related

Not able to start Informix server

I am new to Informix. I installed Informix in the folder - /opt/Informix_Software_Bundle.
I am using the following command to start Informix server.
cd /opt/Informix_Software_Bundle
sudo ./oninit -i
And I am getting the following error message.
Unable to read $INFORMIXDIR (/usr/informix).
So I tried to set the environment variable INFORMIXDIR in ~/.profile as given below:
export INFORMIXDIR="/opt/Informix_Software_Bundle"
I also tried the following command:
INFORMIXDIR=/opt/Informix_Software_Bundle;export INFORMIXDIR
I tried logging out and in again. But nothing helped.
I will greatly appreciate if somebody can help me with this. Thanks for reading.
System - Mac OS Sierra
Informix version - 12.10
There are a number of environment variables used by the Informix server which include:
INFORMIXDIR : points to the directory where the product is installed. Add $INFORMIXDIR/bin to $PATH.
ONCONFIG : indicates the name of the main server configuration file in $INFORMIXDIR/etc. If not specified this will default to "onconfig."
INFORMIXSERVER : indicates the name of the Informix instance to connect to and refers to the DBSERVERNAME or a DBSERVERALIAS entry in the onconfig file referenced by $ONCONFIG.
INFORMIXSQLHOSTS : indicates the full path name of the communications configuration file used by Informix clients and servers. This will include an entry for the name specified by $INFORMIXSERVER. If this environment variable is not specified it defaults to $INFORMIXDIR/etc/sqlhosts.
Just having some or all of these environment variables set is not sufficient for starting an Informix server from scratch. There are setup tasks such as editing the onconfig file to specify the location of the root chunk - this is the initial location where the server stores its data. For more details you might like to refer to the Informix online documentation:
Getting started with IBM Informix
Overview of database server configuration and administration
One of the most straightforward ways to get started is to use the demonstration server instance that may be created during installation. I'm not directly familiar with the Mac OS installation but for all other platforms the Informix installation process includes an option to configure and initialize a demonstration server, and I suspect Mac OS will be the same. This will create an environment file in $INFORMIXDIR which will include settings for the variables named above.
One word of caution: the oninit command is used to both start the Informix server and initialize the chunks where the data is stored. The -i argument will perform the complete disk initialization which is precisely what you want for the first time the Informix server is started. On subsequent restarts you would not normally use this argument or else all the data stored by the server may be lost.
As sudo by default resets environment variables it is usual to have
A) A script to set the required environment variables for a given server.
B) Another wrapper script to start/stop the server.

Neo4j 3.x LOAD CSV absolute file path

In previous versions of Neo4j (2.X), LOAD CSV would take absolute path from
LOAD CSV WITH HEADERS FROM
'file:///absolute/path/GraphExample2.csv' AS line
However in 3.x, its appending it with NEO4J_HOME to that path.
How does one address absolute path for file imports?
In your configuration file (see here for the documented locations), comment out the dbms.directories.import setting. That will allow neo4j to use your path, as is.
However, commenting out that setting is not secure, so do not do this on production servers.
NOTE: On my Mac, I have the desktop version of neo4j installed. The official documentation seems to have the wrong name for the config file. Mine is named .neo4j.conf, not neo4j.conf.

Start neo4j server with other configuration file

I try to start neo4j on OSX and change the chosen configuration file. I'd like to start a test server for unit tests with a different port and a database, which shall be deleted while startup (I will solve the deletion part in a shell script, which should stop and start the server).
My problem is neo4j ignores the configuration file from the parameter. My call looks like this (from the terminal and the current folder is bin:
./neo4j start -server -Dorg.neo4j.server.properties=conf/neo4j-server-test.properties
The default configuration file is still chosen.
Thanks for your help
There are no 'ad hoc' arguments to the neo4j command script, so your arguments after start are ignored. You need to either make a modified version of the neo4j command script, or swap out neo4j-server.properties files.
You can use ineo to manage two or more Neo4j instances:
https://github.com/cohesivestack/ineo
You can specify the path to a folder containing a customized configuration file with an environment variable:
NEO4J_CONF=../conf neo4j start

neo4j update old graph.db not cleanly shutdown

I am receiving a "not cleanly shutdown" log message when attempting to open a 2 year old Neo4j database posted on github at https://github.com/IGS/disease-ontology/tree/master/database/neo4j. How do I open/update this database?
Here's how I got it initialized: Downloaded the graph_db.tgz to my local win7-64 machine (neo4j-community-1.9.RC2), extracted the graph.db file to the data subfolder, renamed it graph_ontology.db, and edited the server config file to point to it as follows:
org.neo4j.server.database.location=data/graph_ontology.db
When starting Neo4j, the last entry in the log file is:
2013-05-21 17:23:33.418+0000 INFO [o.n.k.EmbeddedGraphDatabase]: Startup failed: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager#1f91d41b' was successfully initialized, but failed to start. Please see attached cause exception.: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource#b86527e' was successfully initialized, but failed to start. Please see attached cause exception.: Mismatching store version found (Uknown while expecting v0.A.0) and the store is not cleanly shutdown. Recover the database with the previous database version and then attempt to upgrade
Thanks,
Jeff
Look at the messages.log of the database to determine which neo4j version it was started with last.
In this case it is 1.4
You can get it from here: http://dist.neo4j.org/neo4j-community-1.4.2-windows.zip
You can easily just point the neo4j-shell to it:
create an upgrade.properties that contains: allow_store_upgrade=true
and then use: bin/neo4j-shell -path graph_ontology.db -config upgrade.properties
Here is the converted db for 1.9.GA: https://dl.dropboxusercontent.com/u/14493611/disease_ontology_graphdb-1.9.tgz

Neo4j configuration file

I've tried to run a simple example "Hello World" with Neo4j but I don't know how to modify the configuration file.
I don't know what to put as a parameter for
"GraphDatabaseService graphDB = new GraphDatabaseFactory()
.newEmbeddedDatabase(" ..... ");"
and what other modification do I have to make. Do I have to put the org.neo4j.server.database.location from the neo4j-server.properties?
But first, do I have to run the server?
Thanks!
You can either put in the path from org.neo4j.server.database.location in the neo4j-server.properties file which will allow you to access the same database referred to when you run the server/webadmin.
Or you can put in the path to any directory that you have access to and your database will be created there.
You should not run the server since the above code uses Neo4j in embedded mode.

Resources