Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another noob here, titan config? #37

Closed
pbarker opened this issue Aug 23, 2014 · 2 comments
Closed

Another noob here, titan config? #37

pbarker opened this issue Aug 23, 2014 · 2 comments

Comments

@pbarker
Copy link

pbarker commented Aug 23, 2014

Hey, I'm really trying to get this working with Titan. However, Titan needs quite a bit of config to start up, and I can't figure it out in gremlin scala. My basic startup script right now is:

object IcebergGraph {
var g: TitanGraph = null

def getTitanConf = {
val conf = new BaseConfiguration();

conf.setProperty("storage.backend","berkeleyje");
conf.setProperty("storage.directory","../titandb/local");
conf.setProperty("storage.index.search.backend", "elasticsearch");
conf.setProperty("storage.index.search.hostname", "../titandb/searchindex");
conf.setProperty("storage.index.search.client-only", "true");
conf.setProperty("storage.index.search.local-mode", "true");

conf

}

def getTitanConnection = {
if (g == null || !g.isOpen()) {
g = TitanFactory.open(getTitanConf);
}
g
}
}

But I can't use this connection with gremlin scala, I take it, that it must create a different type of instance with the graph. I've tried digging into the source, but I'm just not that good yet. Any help would be great, I'd love to write a blog post about this to help others get started with it. Thanks

@pbarker
Copy link
Author

pbarker commented Aug 23, 2014

Think I figured it out man, sorry for the false alarm

@pbarker pbarker closed this as completed Aug 23, 2014
@mpollmeier
Copy link
Owner

No worries. I'm aware the current documentation isn't the best.
If you want to write a blog post or contribute some examples it's best to use tinkerpop3, as that's the future.

I've started an examples project with neo4j, you could add a titan example...
Note that I haven't published a tinkerpop3 artifact yet, but you should be able to build it yourself following the instructions on the readme.md. Will publish some artifacts in the next days I hope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants