-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Instructions on how to launch and query Petagraph on the Taylor server | ||
|
||
|
||
#### 1. ssh into the server: | ||
`$ ssh RESLNTAYLORD01.research.chop.edu` | ||
#### 2. start the database: | ||
This will start the database in the console. This allows you to see the status and updated logs of the running dataabase right in the terminal. | ||
`$ neo4j-admin server console` | ||
#### 3. open a new terminal and ssh into the server again, and show that the database is running: | ||
`$ neo4j-admin server status` | ||
|
||
output should look like this: `Neo4j is running at pid 2514457`. | ||
You can now invoke the `cypher-shell` tool by doing `$ cypher-shell` and enter cypher statements in the terminal. | ||
Remember to end cypher statements with a semicolon. Type `:exit` to exit the `cypher-shell`. | ||
|
||
#### 4. If you want to launch a jupyter notebook or r studio notebook you can just use regular port forwarding method by doing the following: | ||
4a. Do `jupyter lab --no-browser --port=8890` on the Taylor server. Don't use port 7474 b/c thats the default for the neo4j database. | ||
4b. Do `ssh -N -f -L localhost:8890:localhost:8890 RESLNTAYLORD01.research.chop.edu`. If there are no errors it shoud've worked. | ||
4c. Copy the URL that the `jupyter lab --no-browser --port=8890` command gave and paste it into a browser window. It should open a jupyter lab page. Now you can use Python/R neo4j plugins to interact with the database | ||
The URL to connect to is: |