Orion上下文数据如何在Cosmos中持久保存? [英] how is Orion context data persisted in Cosmos?
问题描述
我听说过一个连接器将Cosmos中的Orion上下文数据持久化,以创建此类数据的历史视图.
I've heard about a connector persisting Orion context data in Cosmos in order to create a historical view of such data.
这种连接器的名称是什么,在哪里可以找到有关它的文档? 持久数据的格式是什么? 数据在Cosmos中存储在哪里?
What's the name of such connector and where can I find documentation about it? What's the format of the persisted data? Where is the data stored within Cosmos?
推荐答案
您要的连接器是 Cygnus ,这是一种基于Flume的软件,能够接收来自Orion的通知并将其保存在Cosmos中.
The connector you are asking for is Cygnus, a Flume-based software able to receive notifications from Orion and persist them in Cosmos.
您可以阅读自述文件.
保留的数据作为文本文件存储在配置的Cosmos用户空间中,即HDFS中的目录,例如/user/myuser/mydataset
.对于天鹅座接收到的每个(实体,属性)对,一行都保留在文本文件中.在Cygnus 0.1中,此行以CSV样式("|"分隔符)编写:
The persisted data is stored as text files in the configured Cosmos user space, i.e. a directory in HDFS such as /user/myuser/mydataset
. For each (entity,attribute) pair received by Cygnus, a line is persisted in a text file. In Cygnus 0.1 this line is written in CSV style ('|' separator):
ts|iso8601date|entityId|entityType|attributeName|attributeType|value
在一个名为(每个(实体,属性)对的文件中)的文本文件中:
in a text file called (a file per (entity,attribute) pair):
/user/myuser/mydataset/entityId-entityType-attributeName-atributeType.txt
尽管如此,从0.2版(含)起,这些行均以Json格式编写:
Nevertheless, from release 0.2 (inclusive) the lines are written in Json format:
{"ts"="xxx", "iso8601date"="xxx", "entityId"="xxx", "entityType"="xxx", "attributeName"="xxx", "attributeType"="xxx", "value"="xxx"|{...}|[...]}
在一个称为(每个实体的文件)的文本文件中:
in a text file called (a file per entity):
/user/myuser/mydataset/cygnus-myuser-mydataset-entityId-entityType.txt
这篇关于Orion上下文数据如何在Cosmos中持久保存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!