Closed dmill-bz closed 9 years ago
I'm not expecting to see this error on the titan09
branch this point - I assume you built this from there?
Yes I built again after your changes on the configuration files (skipped the tests though). I did wonder at one point if it was using the correct TP3 jars as I never had to manually configure anything. I just built TP3-snapshot and then titan09 and it simply worked (I assumed maven kept some trace of the TP3 files in cache or something)
On the off chance that I've been screwing up the build can you run me through the process quickly?
are you building the distribution zip file in titan or taking some other approach (e.g. building both and then doing a manual install of titan into gremlin server)?
Here's what I've been doing (hopefully correct):
mvn -v
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.8.0_45, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-51-generic", arch: "amd64", family: "unix"
git clone --branch titan09 --depth=1 https://github.com/thinkaurelius/titan.git
cd titan
mvn clean install -DskipTests=true
bin/titan.sh -v start
hmmm - i'm not sure if your build of titan is good. i don't run gremlin server from there like that - i run from the distribution. to generate the distribution do:
mvn clean install -DskipTests=true -Paurelius-release -Dgpg.skip=true
which can be run from the titan-dist/titan-dist-hadoop-1
directory. then look in the target
directory there and unzip the package to your system and run from there. obviously you should make sure that you have TP3 built locally prior to that.
please give that a try and let's see if that fixes anything.
Ok, I just did and it still fails with the same error.
:rage4:
:sob:
i think i know what's wrong - bad configuration for serializers - update as follows:
- { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerGremlinV1d0, config: { useMapperFromGraph: graph }}
- { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0, config: { useMapperFromGraph: graph }}
please see: http://tinkerpop.incubator.apache.org/docs/3.0.0-SNAPSHOT/#_serialization
of course those settings should be there by default in the packaged yaml - updating that now.
Note that i just updated those configs by adding commas between the classname entry and the config entry.
Awesome!! That works and all the transaction tests pass for the driver. Quick question: we can only reference one graph in the conf?
good - glad that's working.
at the moment, you can only reference one graph. we need to implement some kind of chaining mechanism in IoRegistry
to allow multiple to be assigned:
https://issues.apache.org/jira/browse/TINKERPOP3-656
There is a workaround - but it would involve a custom message serializer.
Hey,
I'm running
./bin/titan.sh -v start
built from titan09. (no change in configuration or anything)When using the
session OpProcessor
in combination with theGraphSONMessageSerializerV1d0
I get an error when i rung.addV('name', 'john')
(see trace at the end of the post)This works fine using the console (I'm guessing
GryoMessageSerializer
?) This also works fine in vanilla gremlin-server M9-rc3.It looks like titan is using
AbstractGraphSONMessageSerializerV1d0
to try and serialize the message.Also, even though I stated the OpProcessor as
session
I'm not getting the usual :Should I make another issue for this? Or is it normal?