jexp / neo4j-shell-tools

A bunch of import/export tools for the neo4j-shell
289 stars 55 forks source link

Unknown command 'import-cypher' #109

Open Assiam opened 7 years ago

Assiam commented 7 years ago

I follow step instruction, but i get unknown command: import-cypher. I installed neo4j using zip file and I'm in windows Please, help me

GS38 commented 7 years ago

Hi Assiam, I have the same issue with neo4j 3.1.1. And not fixed :-( File tree looks a bit different with this version compare to what is explained here. Are the .jar to be copied into "C:\Program Files\Neo4j CE 3.1.1\plugins" ? Despite a restart of Neo4j server, it does not take into account the new procedures....

FelikZ commented 7 years ago

Try this: https://github.com/jexp/neo4j-shell-tools/issues/110#issuecomment-293317738

Assiam commented 7 years ago

Thank you

StephaneBischoff commented 7 years ago

FelikZ, can you be more specific on how to solve this issue? I tried what you proposed and it does not work for me. Still getting error Unknown command 'import-cypher'. Should I be copying the shell tools in the lib or plugins folder?

I have the windows installation. neo4j version 3.2.1 (zip version copied over the windows installer. Which does not have the lib folder)

Thanks.

jexp commented 7 years ago

The zip version should have the lib folder. In general what do you want to do? Most of the functionality of shell tools is now in apoc which means you can use it from any cypher endpoint / driver.

StephaneBischoff commented 7 years ago

Hi jexp, I am new to Neo4j. I started the Neo4j 3.2.1 console from the Windows command prompt (using neo4j.bat console) and changed the default password for Neo4j. Neo4j is now running on http://localhost:7474 (Althought I saw in the console that it started Bolt on localhost:7687).

I then copied the neo4j-shell-tools_3.0.3.zip files into the lib folder and restarted neo4j.

What I am trying to do is execute a cql script I got from an article to import some CSV files. The article mentioned the use of neo4j-shell-tools for the import. With this new installation, I am now getting the following error when trying to execute neo4j-shell.bat -host 127.0.0.1 -port 7474 -file "import.cql" Error: non-JRMP server at the remote endpoint

I also tried this neo4j-shell.bat -host 127.0.0.1 -port 7687 -file "import.cql" Error: error during JRMP connection establishment; nested exception is: java.io.EOFException

jexp commented 7 years ago

You have to enable remote shell access in neo4j.conf

# Enable a remote shell server which Neo4j Shell clients can log in to.
dbms.shell.enabled=true

Then shell auto-connects you don't have to provide host / port (port would bee 1337 btw).

justmag commented 7 years ago

jexp, could you please give the list of commands that we could try this import-cypher ? I run MAC and Ubuntu