You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: neo4j-uc-federation-lab/simple_jdbc_connection.ipynb
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,15 @@
4
4
"cell_type": "markdown",
5
5
"id": "title",
6
6
"metadata": {},
7
-
"source": "# Simple JDBC Connection Test\n\nA minimal notebook to verify the Neo4j JDBC driver and Unity Catalog JDBC connection are working.\n\n**Before running this notebook**, create a test node in your Neo4j database:\n\n```cypher\nMERGE (n:JdbcTest {id: 1})\nSET n.message = 'hello from Neo4j',\n n.created = datetime()\nRETURN n\n```\n\n**Prerequisites**:\n- Run `setup.sh` to configure Databricks secrets\n- Upload the Neo4j Unity Catalog Connector JAR to a UC Volume\n- Install the connector JAR as a cluster library"
7
+
"source": "# Simple JDBC Connection Test\n\nA minimal notebook to verify the Neo4j JDBC driver and Unity Catalog JDBC connection are working.\n\n**Before running this notebook**, create a test node in your Neo4j database:\n\n```cypher\nMERGE (n:JdbcTest {id: 1})\nSET n.message = 'hello from Neo4j',\n n.created = datetime()\nRETURN n\n```\n\n**Prerequisites**:\n- Upload the Neo4j Unity Catalog Connector JAR to a UC Volume\n- Install the connector JAR as a cluster library\n- Update the configuration values in the next cell"
"source": "# =============================================================================\n# CONFIGURATION - Update these values for your environment\n# =============================================================================\nNEO4J_HOST = \"<your-neo4j-host>\" # e.g. \"abc123.databases.neo4j.io\"\nNEO4J_USER = \"<your-neo4j-user>\" # e.g. \"neo4j\"\nNEO4J_PASSWORD = \"<your-neo4j-password>\"\nNEO4J_DATABASE = \"neo4j\" # default database\n\n# Path to the connector JAR in a UC Volume\nJDBC_JAR_PATH = \"/Volumes/<catalog>/<schema>/<volume>/neo4j-unity-catalog-connector.jar\"\n\n# Name for the Unity Catalog connection\nUC_CONNECTION_NAME = \"<catalog>.<schema>.neo4j_jdbc\"\n\n# Derived values (no need to edit)\nJAVA_DEPENDENCIES = f'[\"{JDBC_JAR_PATH}\"]'\nNEO4J_JDBC_URL = f\"jdbc:neo4j+s://{NEO4J_HOST}:7687/{NEO4J_DATABASE}\"\nNEO4J_JDBC_URL_SQL = f\"{NEO4J_JDBC_URL}?enableSQLTranslation=true\"\n\nprint(f\"Neo4j Host: {NEO4J_HOST}\")\nprint(f\"JDBC URL: {NEO4J_JDBC_URL_SQL}\")\nprint(f\"Connection Name: {UC_CONNECTION_NAME}\")\nprint(f\"JDBC JAR Path: {JDBC_JAR_PATH}\")"
0 commit comments