Comments (10)
Looking at this right now
from gremlin-php.
Ah!
When the script runs , the CPU processing rises and takes about 1 minute to generate the error.
I am suspicious of anything of my environment , but the Rest API works, and the connection by Gremlin in the terminal too!
from gremlin-php.
ok So... I can't seem to recreate this (at least not in a simple fashion).
I am using a vanilla titan-0.9.0-M2-hadoop1
downloaded from http://s3.thinkaurelius.com/downloads/titan/titan-0.9.0-M2-hadoop1.zip on ubuntu 14.04 LTS and I'm getting the expected result of [99]
Could you perhaps share your environment details? (os, java version, etc.) And possibly the Titan configuration files you are using if they're different from the default?
My project has a test.php file with the above code and a composer.json file with :
{
"name": "root/testing",
"require": {
"brightzone/gremlin-php": "*"
},
"authors": [
{
"name": "Dylan Millikin",
"email": "[email protected]"
}
],
"minimum-stability": "stable"
}
Also worth exploring: Could you run titan via bin/titan.sh -v start
and see if any errors are thrown (either on gremlin-server startup or when gremlin-php queries the server)?
Thanks
from gremlin-php.
I run ubuntu 15.
Java version:
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
openjdk version "1.8.0_45-internal"
OpenJDK Runtime Environment (build 1.8.0_45-internal-b14)
OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)
My gremlin-server.yaml
host: localhost
port: 8182
threadPoolWorker: 1
gremlinPool: 8
scriptEvaluationTimeout: 30000
serializedResponseTimeout: 30000
channelizer: org.apache.tinkerpop.gremlin.server.channel.WebSocketChannelizer
#channelizer: org.apache.tinkerpop.gremlin.server.channel.HttpChannelizer
graphs: {
#graph: conf/gremlin-server/titan-berkeleyje-server.properties
graph: conf/titan-cassandra-es.properties
}
plugins:
- aurelius.titan
- tinkerpop.tinkergraph
scriptEngines: {
gremlin-groovy: {
imports: [java.lang.Math],
staticImports: [java.lang.Math.PI],
scripts: [scripts/empty-sample.groovy]},
nashorn: {
imports: [java.lang.Math],
staticImports: [java.lang.Math.PI]}}
serializers:
- { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0, config: { useMapperFromGraph: graph }}
- { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0, config: { serializeResultToString: true }}
- { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerGremlinV1d0, config: { useMapperFromGraph: graph }}
- { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0, config: { useMapperFromGraph: graph }}
processors:
- { className: org.apache.tinkerpop.gremlin.server.op.session.SessionOpProcessor, config: { sessionTimeout: 28800000 }}
metrics: {
consoleReporter: {enabled: true, interval: 180000},
csvReporter: {enabled: true, interval: 180000, fileName: /tmp/gremlin-server-metrics.csv},
jmxReporter: {enabled: true},
slf4jReporter: {enabled: true, interval: 180000},
gangliaReporter: {enabled: false, interval: 180000, addressingMode: MULTICAST},
graphiteReporter: {enabled: false, interval: 180000}}
threadPoolBoss: 1
maxInitialLineLength: 4096
maxHeaderSize: 8192
maxChunkSize: 8192
maxContentLength: 65536
maxAccumulationBufferComponents: 1024
resultIterationBatchSize: 64
writeBufferHighWaterMark: 32768
writeBufferHighWaterMark: 65536
ssl: {
enabled: false}
In console show this error when i run the php script
338657 [gremlin-server-worker-1] WARN org.apache.tinkerpop.gremlin.server.handler.HttpGremlinEndpointHandler - Invalid request - responding with 400 Bad Request and no gremlin script supplied
from gremlin-php.
Great thanks for the info. And just to make sure, the version of gremlin-php you're using is v1.0
?
I'll recreate the above env and test.
from gremlin-php.
Yes! v1.0
"name": "brightzone/gremlin-php",
"version": "v1.0",
"version_normalized": "1.0.0.0",
"source": {
"type": "git",
"url": "https://github.com/PommeVerte/gremlin-php.git",
"reference": "dcde94ca290fc16f8f806fa463a339051215c49a"
},
from gremlin-php.
ok, odd. and what version of PHP? (forgot to ask)
from gremlin-php.
PHP 5.6.4-4ubuntu6.2 (cli) (built: Jul 2 2015 15:29:28)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
from gremlin-php.
Hey!
Its works!
I shutdown the titan , updated ubuntu and updated java .
Started the titan and works!
A strange behavior that I saw was that time was about 5 processes Gremlin server running , I do not know if this is normal , and may have been the problem , why now only have one .
Thanks, and sorry for wasting your time.
from gremlin-php.
Hey no problem.
I think I know what you mean. If you forget to stop titan via bin/titan.sh stop
and start it again it will start another instance and everything goes crazy (I can't even seem to be able to stop titan without killing the processes manually).
I just wanted to give you a heads up about
338657 [gremlin-server-worker-1] WARN org.apache.tinkerpop.gremlin.server.handler.HttpGremlinEndpointHandler - Invalid request - responding with 400 Bad Request and no gremlin script supplied
As it is an odd error to get at all (400 isn't a valid error code as per the documentation) This might indicate an incorrect configuration. It might come from using HttpChannelizer
instead of WebSocketChannelizer
, though I'm not sure about this.
Anyways, glad it worked out. Let me know if you need any help with anything.
from gremlin-php.
Related Issues (20)
- TitanFactory.open with conf file HOT 6
- Does it support Datastax graph HOT 4
- Driver connects to the server, but cannot find any data HOT 3
- Gremlin server out of memory HOT 2
- PHP7 Warnings on $db->send(...) HOT 3
- Able to connect to db but $db->send('g.V()') gives 400 error no gremlin script supplied HOT 5
- Cannot Try Catch DB->Connection->Open HOT 8
- Connection Error in Connection.php HOT 6
- java.util.ArrayList cannot be cast to java.lang.String HOT 5
- Can't send traversals HOT 12
- Rework Error management HOT 1
- Separate Wsocket functionality
- Certain commands return nothing HOT 7
- Having connectivity issues on two different cloud services HOT 1
- valueMap(true) fails to serialize HOT 8
- Cannot use transactions when connecting to Azure CosmosDB HOT 1
- Adding Edge on 2 vertices causes an error HOT 1
- Passing null or empty string value to a Binding Property results into syntax error
- How to use the $result?
- start transaction fail with aws neptune db
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 gremlin-php.