TITAN

How to Define Data Type for Titan Graph DB Vertex?

房东的猫 提交于 2019-12-06 08:23:47
I am creating a Graph Data Table using Titan and Blueprint API. I am using HBase as backend. I know how to define data types for key indexes. Example: TitanKey name = graph.makeType().name("name").dataType(String.class).functional().makePropertyKey(); Now I actually want to represent a RDBMS Table in Titan DB Graph. Is there any process through which I can implement 'Column Data Type' (as in RDBMS Table) in the Titan Graph Model ? Unlike a relational database, Titan's schema is flexible. That means, you can add new property keys and edge labels while the database is running without expensive

Gremlin remote command fails with timeout error: Host did not respond in a timely fashion

谁都会走 提交于 2019-12-06 04:34:29
问题 I connected to a remote gremlin server via gremlin groovy shell. Connection succeeded. But for any remote command I try to execute it gives timeout error. Even for command :> 1+1 gremlin> :remote connect tinkerpop.server conf/senthil.yaml ==>Connected - 10.40.40.65/10.40.40.65:50080 gremlin> :> 1+1 Host did not respond in a timely fashion - check the server status and submit again. Display stack trace? [yN] org.apache.tinkerpop.gremlin.groovy.plugin.RemoteException: Host did not respond in a

Proper way to update Edges in Bulbs (neo4j or titan)

社会主义新天地 提交于 2019-12-06 04:18:18
I'm experimenting with Bulbs to interface with a graph database. ( Production will use Titan, locally Neo4j seems best for experimenting ). I can't wrap my head around this concept... Bulbs shows how to create new Vertices... >>> james = g.vertices.create(name="James") >>> julie = g.vertices.create(name="Julie") >>> g.edges.create(james, "knows", julie) Digging into the docs, I can replace that with a "get or create" as well : >>> james = g.vertices.get_or_create('name',"James",{'name':'james') What I can't figure out, is how to get an existing Edge. My attempts so far have ended up with

Setup and configuration of JanusGraph for a Spark cluster and Cassandra

余生颓废 提交于 2019-12-06 03:08:29
问题 I am running JanusGraph (0.1.0) with Spark (1.6.1) on a single machine. I did my configuration as described here. When accessing the graph on the gremlin-console with the SparkGraphComputer, it is always empty. I cannot find any error in the logfiles, it is just an empty graph. Is anyone using JanusGraph with Spark and can share his configuration and properties? Using a JanusGraph, I get the expected Output: gremlin> graph=JanusGraphFactory.open('conf/test.properties') ==>standardjanusgraph

TitanDB Index not changing state

风格不统一 提交于 2019-12-05 21:45:08
I wanted to drop an existing index and followed the steps in the documentation so far. I have no separate indexing backend configured for now. However, when I get to the step where you have to wait for the index status to change using m.awaitGraphIndexStatus it waits forever for the change and times out with the following error: GraphIndexStatusReport[success=false, indexName='usernameComposite', targetStatus=DISABLED, notConverged={username=INSTALLED}, converged={}, elapsed=PT1M0.092S] The very same happens when I try to create a new one. Any ideas what could cause this? I'm creating indizes

Cannot connect from Titan to Google Bigtable via Hbase client

早过忘川 提交于 2019-12-05 20:32:34
I am trying to connect to Titan 1.0.0 with Hadoop 2 (HBase 1.0.2 client) (available in https://github.com/thinkaurelius/titan/wiki/Downloads ) with Google Cloud Bigtable service, using its HBase client. I could successfully connect to Bigtable from an HBase shell in a GCE instance, by following this procedure . The hbase-site.xml is according to the template, and I have downloaded Bigtable jars for ALPN_VERSION=8.1.5.v20150921 (Oracle JDK SE 1.8.0_60) <configuration> <property> <name>hbase.client.connection.impl</name> <value>com.google.cloud.bigtable.hbase1_0.BigtableConnection</value> <

Why can't I connect to Gremlin-Server?

大城市里の小女人 提交于 2019-12-05 20:15:28
Abstract I'm trying to set up a Titan/Cassandra/Gremlin-Server stack in Docker (v1.13.0). The problem I'm facing is that applications trying to connect to Gremlin-Server on the default port 8182 are reporting errors (details below). First, here is some relevant version information: Cassandra v2.2.8 Titan v1.0.0 (Hadoop 1) Gremlin 3.2.3 Setup Setup takes place in a Dockerfile in order to be reproducible. It assumes that a Cassandra container already exists, running a cassandra.yaml in which start_rpc has been set to true . The Dockerfile is as follows: FROM openjdk:alpine ENV TITAN 'titan-1.0.0

TITAN : Gremlin query returns inconsistent results on repeated execution

元气小坏坏 提交于 2019-12-05 19:41:01
I am running REXSTER/TITAN 0.4 over cassandra and uses gremlin for traversals. I ran below gremlin query in Rexster Doghouse Gremlin console. Vertex 92 was deleted earlier, since it was a duplicate vertex with same key ("eddy.com") But when I am querying, I am getting that vertex sometimes, and sometimes not . This is running in local dev machine, means no other threads or parallel task is running/updating this vertex in between. Am I missing any configuration/settings here? is this a bug? please help! gremlin> g.V('domain','eddy.com') ==>v[88] gremlin> g.V('domain','eddy.com') ==>v[88] ==>v

Gremlin-Server Add Vertex with Multiple Properties (Titan 1.0.0)

六眼飞鱼酱① 提交于 2019-12-05 15:34:54
I'm creating a Titan graph (backed by Dynamodb); I'm using Titan 1.0.0 and running Gremlin-Server 3 (on TinkerPop3). I'm trying to add a vertex to my graph with a label and multiple properties in a single line. I'm able to add a vertex with a label and a single property, and I can add multiple properties to a vertex after it has been created, but it seems that I can't do it all at once. For testing I'm running commands in the gremlin shell, but the end use case is interacting with it via REST api (which is already working fine). As a note, I'm rolling back after each of these transactions so I

gremlin from titan 1.0.0 is not running out of the box on windows

拈花ヽ惹草 提交于 2019-12-05 08:51:27
I'm following the http://s3.thinkaurelius.com/docs/titan/1.0.0/getting-started.html guide on my windows machine. but i'm getting stuck at the very first step, getting gremlin to run: >bin\gremlin.bat Error opening zip file or JAR manifest missing : ..\lib\jamm-0.3.0.jar Error occurred during initialization of VM agent library failed to init: instrument joey baruch Found a solution in this google group for this issue and more: to run gremlin edit the gremlin.bat file: Change: set LIBDIR=..\lib To: set LIBDIR=lib Change: if "%CP%" == "" ( set CP=%LIBDIR%\%1 )else ( set CP=%CP%;%LIBDIR%\%1 ) To: