TITAN

Setup and configuration of Titan for a Spark cluster and Cassandra

≯℡__Kan透↙ 提交于 2019-12-01 08:11:01
There are already several questions on the aurelius mailing list as well as here on stackoverflow about specific problems with configuring Titan to get it working with Spark. But what is missing in my opinion is a high-level description of a simple setup that uses Titan and Spark. What I am looking for is a somewhat minimal setup that uses recommended settings. For example for Cassandra, the replication factor should be 3 and a dedicated datacenter should be used for analytics. From the information I found in the documentation of Spark, Titan, and Cassandra, such a minimal setup could look

Gremlin: What's an efficient way of finding an edge between two vertices?

女生的网名这么多〃 提交于 2019-12-01 06:01:03
问题 So obviously, a straight forward way to find an edge between two vertices is to: graph.traversal().V(outVertex).bothE(edgeLabel).filter(__.otherV().is(inVertex)) I feel that filter step will have to iterate through all edges making really slow for some applications with a lot of edges. Another way could be: traversal = graph.traversal() .V(outVertex) .bothE(edgeLabel) .as("x") .otherV() .is(outVertex) // uses index? .select("x"); I'm assuming the second approach could be much faster since it

Setup and configuration of Titan for a Spark cluster and Cassandra

狂风中的少年 提交于 2019-12-01 04:22:59
问题 There are already several questions on the aurelius mailing list as well as here on stackoverflow about specific problems with configuring Titan to get it working with Spark. But what is missing in my opinion is a high-level description of a simple setup that uses Titan and Spark. What I am looking for is a somewhat minimal setup that uses recommended settings. For example for Cassandra, the replication factor should be 3 and a dedicated datacenter should be used for analytics. From the

How to select optional graph structures with Gremlin?

天大地大妈咪最大 提交于 2019-12-01 00:57:10
I am using Gremlin to query a graph stored in TitanDB. The graph contains user vertices with properties, e.g., "description", and edges denoting relationships between users. I want to use Gremlin to obtain 1) users by properties and 2) possible relationships to other users. I can use, for example, the following query to obtain all users whose description contains the word 'developer' and the edges with label 'relationship' originating from or targeting these users: g.V('description',CONTAINS,'developer').as('user').bothE.as('relationship').select So far, so good. The problem is, however, that

day19作业

ぐ巨炮叔叔 提交于 2019-11-30 22:22:18
1.什么是对象?什么是类? ​ 对象是特征和功能的结合体 ​ 类是一系列对象相同的特征和技能的集合体 2.绑定方法的有什么特点 ​ 绑定方式是由对象来调用类内部的函数,特点是会把对象当作第一个参数传入函数内,不用额外传参数 3.基于面向对象设计一个对战游戏 import random import time class Yasso: camp = 'lonia' def __init__(self,name): self.name = name self.atk = 48 self.armor = 15 self.health = 430 self.money = 1200 def attack(self, zed): damage = self.atk - zed.armor zed.health -= damage print(f'''{self.name}攻击了{zed.name},伤害:-{damage} {zed.name}剩余血量:{zed.health}\n''') if zed.health <= 0: return True class Zed: camp = 'shadow' def __init__(self,name): self.name = name self.atk = 49 self.armor = 17 self.health = 445 self

How to select optional graph structures with Gremlin?

三世轮回 提交于 2019-11-30 19:32:55
问题 I am using Gremlin to query a graph stored in TitanDB. The graph contains user vertices with properties, e.g., "description", and edges denoting relationships between users. I want to use Gremlin to obtain 1) users by properties and 2) possible relationships to other users. I can use, for example, the following query to obtain all users whose description contains the word 'developer' and the edges with label 'relationship' originating from or targeting these users: g.V('description',CONTAINS,

Index state never change to ENABLED on Titan with Amazon DynamoDB backend

吃可爱长大的小学妹 提交于 2019-11-30 18:53:04
问题 I'm trying to use composite index on DynamoDB and the index never switches from from INSTALLED to REGISTERED state. Here is the code I used to create it graph.tx().rollback(); //Never create new indexes while a transaction is active TitanManagement mgmt=graph.openManagement(); PropertyKey propertyKey=getOrCreateIfNotExist(mgmt, "propertyKeyName"); String indexName = makePropertyKeyIndexName(propertyKey); if (mgmt.getGraphIndex(indexName)==null) { mgmt.buildIndex(indexName, Vertex.class)

How to start Titan graph server and connect with gremlin?

和自甴很熟 提交于 2019-11-30 12:47:14
问题 I've been playing with Titan graph server for a while now. And my feeling is that, despite an extensive documentation, there is a lack of Getting started from scratch tutorial . My final goal is to have a titan running on cassandra and query with StartTheShift/thunderdome. I have seen few ways of starting Titan: Using Rexster from this link, I was able to run a titan server with the following steps: download rexster-server 2.3 download titan 0.3.0 copy all files from titan-all-0.3.0/libs to

X030-XB-AAAAXXX

隐身守侯 提交于 2019-11-30 12:13:53
martens STL50-1-1R-5 24VDC Martens STL50-1-1R-5-00 ODU 080-000-051-000-000 ODU 080-000-051-101-000 fandid FPF20KGU230B-110 风扇 Fandis FPF20KGU230B-110 MTS RFM600MD601A01 FUCHS MKF MPF7 jungmichel SIZ30P3SE+24VDC=1/O1=2/GRD=3/O2=4/PIN=5 双张检测器 E+H RN221N-A3 信号隔离器 KEB G43ADM71G4 SELISKO RK200/310-110 Coaxial-RELAY CX540D LUMBERG RSC 4/7 Hydrower SHY-E4-W2 AUTOMATIC VALVE L2003CBADA-V AUTOMATIC VALVE L2003CBADA ABL Sursum Multifunktionsrelais STU2W ABL Sursum Multifunktionsrelais MRU1W ELECTRONICON E62.C58-471E10 Electronicon 1030064 0,47F 1200Vac 30x58 A ELECTRONICON E50.N13-424N50/P Electronicon

How to start Titan graph server and connect with gremlin?

谁说我不能喝 提交于 2019-11-30 03:08:21
I've been playing with Titan graph server for a while now. And my feeling is that, despite an extensive documentation, there is a lack of Getting started from scratch tutorial . My final goal is to have a titan running on cassandra and query with StartTheShift/thunderdome . I have seen few ways of starting Titan: Using Rexster from this link , I was able to run a titan server with the following steps: download rexster-server 2.3 download titan 0.3.0 copy all files from titan-all-0.3.0/libs to rexster-server-2.3.0/ext/titan edit rexster-server-2.3.0/rexster.xml and add (between a ): <graph>