gdotv
gdotv
Explore posts from servers
ATApache TinkerPop
Created by gdotv on 10/17/2024 in #questions
Is there a way to specify a query execution timeout via the GremlinLangScriptEngine?
that makes perfect sense, I think for my use case it's acceptable to just not offer the ability to timeout queries for in-memory graphs
5 replies
ATApache TinkerPop
Created by Max on 9/28/2024 in #questions
Best practices for local development with Neptune.
There's https://docs.localstack.cloud/user-guide/aws/neptune/ if you're looking for a quick solution that emulates the Neptune querying API.
11 replies
ATApache TinkerPop
Created by b4lls4ck on 8/1/2024 in #questions
How to find the edges of a node that have a weight of x or greater?
Try P.gte instead, with the correct import from the gremlin-python library, that should do it
8 replies
ATApache TinkerPop
Created by gdotv on 6/18/2024 in #questions
Is NoHostAvailableException losing/not including relevant error context (3.7.0 above)?
I think that's exactly what I need here, awesome! I'll close this out and wait for the next tinkerpop release
5 replies
ATApache TinkerPop
Created by gdotv on 2/23/2024 in #questions
Configuring Websockets connection to pass through a proxy server
13 replies
ATApache TinkerPop
Created by gdotv on 2/23/2024 in #questions
Configuring Websockets connection to pass through a proxy server
the end goal is to set the channelizer in the ClusterBuilder to the new overriden class (all Java stuff btw)
13 replies
ATApache TinkerPop
Created by gdotv on 2/23/2024 in #questions
Configuring Websockets connection to pass through a proxy server
i could extend the server version of the channelizer just fine but obviously that's no good
13 replies
ATApache TinkerPop
Created by gdotv on 2/23/2024 in #questions
Configuring Websockets connection to pass through a proxy server
the issue im running into is trying to extend the WebSocketChannelizer class or implement my own version, i may be daft here but it's unclear how I can do this
13 replies
ATApache TinkerPop
Created by gdotv on 2/23/2024 in #questions
Configuring Websockets connection to pass through a proxy server
For reference, i'd like to slide in this type of code in the configure method of the WebSocketChannelizer, before all the pipeline.addLast statements:
// Added for G.V(): Proxy Awareness configuration

String proxyHost = null;
String proxyPort = null;
String proxyUsername = System.getProperty("proxy.user");
String proxyPassword = System.getProperty("proxy.password");
HttpProxyHandler proxyHandler = null;
if(System.getProperty("https.proxyHost") != null && System.getProperty("https.proxyPort") != null){
proxyHost = System.getProperty("https.proxyHost");
proxyPort = System.getProperty("https.proxyPort");
}

if(System.getProperty("http.proxyHost") != null && System.getProperty("http.proxyPort") != null){
proxyHost = System.getProperty("http.proxyHost");
proxyPort = System.getProperty("http.proxyPort");
}

if(proxyHost != null && proxyPort != null){
try{
int proxyPortInt = Integer.parseInt(proxyPort);
InetSocketAddress address = new InetSocketAddress(proxyHost, proxyPortInt);
if(proxyUsername != null && proxyPassword != null){
proxyHandler = new HttpProxyHandler(address, proxyUsername, proxyPassword);
}
else{
proxyHandler = new HttpProxyHandler(address);
}
pipeline.addFirst("proxy-handler", proxyHandler);
}
catch(NumberFormatException e){
// Invalid port number, ignore proxy config
}
catch(IllegalArgumentException | SecurityException e){
// Invalid proxyHost/proxyPortInt configuration, again, ignore proxy config
}
}
// Added for G.V(): Proxy Awareness configuration

String proxyHost = null;
String proxyPort = null;
String proxyUsername = System.getProperty("proxy.user");
String proxyPassword = System.getProperty("proxy.password");
HttpProxyHandler proxyHandler = null;
if(System.getProperty("https.proxyHost") != null && System.getProperty("https.proxyPort") != null){
proxyHost = System.getProperty("https.proxyHost");
proxyPort = System.getProperty("https.proxyPort");
}

if(System.getProperty("http.proxyHost") != null && System.getProperty("http.proxyPort") != null){
proxyHost = System.getProperty("http.proxyHost");
proxyPort = System.getProperty("http.proxyPort");
}

if(proxyHost != null && proxyPort != null){
try{
int proxyPortInt = Integer.parseInt(proxyPort);
InetSocketAddress address = new InetSocketAddress(proxyHost, proxyPortInt);
if(proxyUsername != null && proxyPassword != null){
proxyHandler = new HttpProxyHandler(address, proxyUsername, proxyPassword);
}
else{
proxyHandler = new HttpProxyHandler(address);
}
pipeline.addFirst("proxy-handler", proxyHandler);
}
catch(NumberFormatException e){
// Invalid port number, ignore proxy config
}
catch(IllegalArgumentException | SecurityException e){
// Invalid proxyHost/proxyPortInt configuration, again, ignore proxy config
}
}
13 replies
ATApache TinkerPop
Created by gdotv on 2/23/2024 in #questions
Configuring Websockets connection to pass through a proxy server
makes total sense, is there a way to implement an overriding channelizer for the gremlin driver? can't see anything documented. Also just had some chat with a user who implemented this and it appears just regular HTTP proxy awareness would do, SOCKS is completely over the top here, at least from what i can tell
13 replies
ATApache TinkerPop
Created by gdotv on 2/23/2024 in #questions
Configuring Websockets connection to pass through a proxy server
@spmallette any ideas on this one?
13 replies
ATApache TinkerPop
Created by Bo on 1/2/2024 in #questions
G.V() IDE can't visualize path().by(valueMap()) query
Quick update on my end, the upcoming version of gdotv (should be out next week) will include a fix that sorts this out, irregarding of how this is taken forward in apache Tinkerpop
46 replies
ATApache TinkerPop
Created by gdotv on 2/23/2024 in #questions
Configuring Websockets connection to pass through a proxy server
13 replies
ATApache TinkerPop
Created by gdotv on 2/23/2024 in #questions
Configuring Websockets connection to pass through a proxy server
at a glance it appears the right way of doing it would be to override the websocketchannelizer with a proxy aware implementation but before I code something crazy i'd like to see if that's the way to go and if there's any sample implementation out there. Also curious (if it's not supported) to know if this should be supported by default in gremlin-driver
13 replies
ATApache TinkerPop
Created by austinjb32 on 2/20/2024 in #questions
Is there any open source version of data visualizer for aws neptune?
AWS maintains Graph Explorer and Graph Notebook (https://docs.aws.amazon.com/neptune/latest/userguide/visualization-graph-explorer.html and https://github.com/aws/graph-notebook), there's some overlap with what G.V() offers. I was gonna suggest to hit me up re your budget constraints to see if we can work on something there too!
4 replies
ATApache TinkerPop
Created by Bo on 1/2/2024 in #questions
G.V() IDE can't visualize path().by(valueMap()) query
I think at this stage changing the serialization behavior from implicit to explicit would cause a lot of problems. I spotted this materializeProperties and gotta say it's a great option to have as an opt out. I reckon an all or nothing would do, it seems highly unlikely anyone would find much value in an in between behavior. Selfishly of course trees, graphs and paths being treated the same as arrays or hashmaps in terms of serialization would be ideal for G.V(). I suspect it would make serialization more consistent in the sense that these objects are essentially data structures first, not classes like a vertex property might be
46 replies
ATApache TinkerPop
Created by Bo on 1/2/2024 in #questions
G.V() IDE can't visualize path().by(valueMap()) query
i get your point now, it's definitely not an easy line to draw - i think what made me feel path would be okay to have these elements serialized is that the Path object is effectively not dissimilar from a simple array. That being said now that I understand the logic it's something I can easily work around - it's very hard to tell how many would actually be impacted by this either way - I suspect not many!
46 replies
ATApache TinkerPop
Created by Bo on 1/2/2024 in #questions
G.V() IDE can't visualize path().by(valueMap()) query
in terms of use case it's been causing issues with some G.V() users running path queries and not getting properties fetched as part of the downstream graph visualisation it produces - obviously i can alter the way G.V() behave to try and identify elements that don't include properties because they're within a path, but it feels like unnecessary complexity for this behaviour
46 replies
ATApache TinkerPop
Created by Bo on 1/2/2024 in #questions
G.V() IDE can't visualize path().by(valueMap()) query
i was just checking the docs as well and couldn't find any reference to this behaviour (checked https://tinkerpop.apache.org/docs/current/reference/#_properties_of_elements specifically)
46 replies
ATApache TinkerPop
Created by Bo on 1/2/2024 in #questions
G.V() IDE can't visualize path().by(valueMap()) query
i see, I think this feels a bit inconsistent in terms of behaviour, i would expect serialization to behave the same for a given type of element regardless of context given that the data type it's contained within doesn't really exclude it from being serialized, i think in this case we're just saying it's getting serialized differently
46 replies