Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-16-2020 11:28 PM
Hello Guys.
Recently i have made a graph and want to upload it into a linux server.
I have installed neo4j 4.0.1 in the server.
Here is my config file:
# Whether requests to Neo4j are authenticated.
# To disable authentication, uncomment this line
#dbms.security.auth_enabled=false
# With default configuration Neo4j only accepts local connections.
# To accept non-local connections, uncomment this line:
dbms.default_listen_address=0.0.0.0
# You can also choose a specific network interface, and configure a non-default
# port for each connector, by setting their individual listen_address.
# The address at which this server can be reached by its clients. This may be the server's IP address or DNS name, or
# it may be the address of a reverse proxy which sits in front of the server. This setting may be overridden for
# individual connectors below.
dbms.default_advertised_address=localhost
# You can also choose a specific advertised hostname or IP address, and
# configure an advertised port for each connector, by setting their
# individual advertised_address.
# By default, encryption is turned off.
# To turn on encryption, an ssl policy for the connector needs to be configured
# Read more in SSL policy section in this file for how to define a SSL policy.
# Bolt connector
#dbms.connector.bolt.enabled=true
dbms.connector.bolt.tls_level=DISABLED
dbms.connector.bolt.listen_address=:7687
# HTTP Connector. There can be zero or one HTTP connectors.
dbms.connector.http.enabled=true
dbms.connector.http.listen_address=:7474
dbms.connector.http.advertised_address=:7474
# HTTPS Connector. There can be zero or one HTTPS connectors.
#dbms.connector.https.enabled=false
#dbms.connector.https.listen_address=:7473
I have used the following code from python to upload the graph using neo4j driver:
from neo4j import GraphDatabase
driver = GraphDatabase.driver("bolt://<my_ip_address>:7687",auth=("neo4j","neo4j"),encrypted=False)
with driver.session() as session:
session.write_transaction(create_rel,df_final_delivery)
print("SUCCESS")
driver.close()
As you can see, my code prints "SUCCESS".
But i cannot see any changes in the graph.
I refreshed and again logged in in the graph but it's showing nothing. Please help. Thank You!
Peace!
03-17-2020 10:27 AM
Hi @vishnuvardhans1698 i think is not a problem of the configuration, could you give us more information what is in create_rel and df_final_delvery.
thanks!
03-17-2020 09:18 PM
create_rel is a function to create relationships and df_final_delivery is the dataframe. And i think there's no problem in these functions as i tried and it's working fine in localhost. Thank you!
Peace!
All the sessions of the conference are now available online