jexp / neo4j-shell-tools

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

Unknown command 'import-graphml' #113

Open AnastasiaSulyagina opened 7 years ago

AnastasiaSulyagina commented 7 years ago

I installed shell-tools as in readme but when trying to import a graphml file, get an error. I have Mac Os X 10.12.3 and installed neo4j-community-3.0.4 from Homebrew, what can be wrong? Is it supposed to work with Neo4j 3.0.4?

$ curl http://dist.neo4j.org/jexp/shell/neo4j-shell-tools_3.0.1.zip -o neo4j-shell-tools.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  411k  100  411k    0     0   363k      0  0:00:01  0:00:01 --:--:--  363k

$ unzip neo4j-shell-tools.zip -d lib
Archive:  neo4j-shell-tools.zip
  inflating: lib/import-tools-3.0.1.jar  
  inflating: lib/opencsv-2.3.jar     
  inflating: lib/geoff-0.5.0.jar     
  inflating: lib/mapdb-0.9.3.jar  

$ ./bin/neo4j restart
Neo4j not running
Starting Neo4j.
Started neo4j (pid 82053). By default, it is available at http://localhost:7474/
There may be a short delay until the server is ready.
See /usr/local/Cellar/neo4j/3.0.4/libexec/logs/neo4j.log for current status.

$ ./bin/neo4j-shell
Welcome to the Neo4j Shell! Enter 'help' for a list of commands
NOTE: Remote Neo4j graph database service 'shell' at port 1337

neo4j-sh (?)$ import-graphml -i /.../graph.graphml
Unknown command 'import-graphml'
FelikZ commented 7 years ago

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