Comments (5)
I was successfully able to reproduce the issue and I now see what you're referring to. The issue seems to be with the DriverRemoteConnection.tx()
call when creating a Transaction
object. That particular method uses client.getCluster()
, [1] which we presently do not override in the GremlinClient
class.
I'm looking at a fix that would create an overridden getCluster()
method in the GremlinClient
that would fetch an available Client
(much like how the chooseConnection()
method currently works) in order to return the parent Cluster
object for that Client
to return for the creation of the Transaction
. I'll try to have something next week for review.
from amazon-neptune-tools.
Can you say a bit more about how you are using this client library? Are you attempting to connect via localhost
because you're using an SSH proxy to connect to Neptune?
Or are you trying to use Gremlin Server locally with this client?
from amazon-neptune-tools.
Yes of course, I try to test transactions with an AWS Neptune cluster which is in 1.2 version without a proxy (with a VPN access to the VPC). The gremlin driver is configured to call the Neptune cluster, and it works well on basic queries. But when I want to open a transaction like below, I got the exception and when I debug I can saw into GremlinCluster.connect() an initialization of a cluster which is used by transactions and not by standard queries (which use a connection into the clusterCollection if I understand well)
Initialization of the cluster with an host equal to localhost : line 57: Cluster parentCluster = clusterBuilder.apply(null);
final var vertex = traversalProvider.g().V().addV("myFirsNode").next(); // Work well and go into my Neptune cluster (I checked with a breakpoint and a query with the API outside of my test
final var transaction = traversalProvider.g().tx();
final GraphTraversalSource traversalInTransaction = transaction.begin();
traversalInTransaction.addV("myNewNode").addE("isConnectedTo").from(vertex).iterate()
transaction.commit();
from amazon-neptune-tools.
Ok super, thank you.
from amazon-neptune-tools.
Hi @Pred05 Thanks for reporting this. I've created a PR to fix this issue, and update the readme with an example:
/cc @triggan
from amazon-neptune-tools.
Related Issues (20)
- [export-neptune-to-elasticsearch] Encrypted databases not supported
- csv-gremlin should trim whitespace in the header row
- CSV file having URL data HOT 8
- Add vertex label to Neptune stream records when a vp is updated HOT 1
- Neptune export with AWS Batch has restrictive config length limit
- Need 2 csv files in opencypher data load format HOT 1
- log4j 1.2.8, 1.2.17 HOT 1
- [python-utils] Example for multi-valued properties HOT 4
- [csv-to-neptune-bulk-format] : upsert HOT 1
- [csv-to-neptune-bulk-format] : Multiple relational tables as source CSV files HOT 3
- problems with streaming to kinesis with neptune-export tool HOT 15
- Uploading exported data to s3 without storing at the local disk HOT 1
- Upsert raising "edge already existing" error. HOT 1
- support OpenSearch 1.x in non-compatibility mode and 2.x
- ReservedConcurrentExecutions error when trying to deploy the cloudformation
- neptune streams-to-firehose build.sh HOT 1
- When running neptune-python-utils in Glue 4, the job fails due to urllib3 conflict
- Issues with Importing GraphML File in AWS Neptune Engine 1.2.1.0 HOT 2
- Implementing Bidirectional Edge Creation in csv-to-neptune-bulk-format
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-neptune-tools.