Fiware 如何填写Cygnus.conf

Fiware 如何填写Cygnus.conf,fiware,fiware-cygnus,Fiware,Fiware Cygnus,几天前,我能够在我的上下文代理vm上运行cygnus,就像文档中所说的那样。cygnus和CB之间的所有订阅都顺利完成,CB发送的通知到达cygnus 我的疑问是,当我必须配置cygnus.conf时,我认为,当cygnus向COSMOS发送数据时,我遇到的故障与此归档文件的字段配置有关。下一个文件是要填充的模板,可在文档中找到: ### ============================================ ###OrionHDFSSink configuration ###

几天前,我能够在我的上下文代理vm上运行cygnus,就像文档中所说的那样。cygnus和CB之间的所有订阅都顺利完成,CB发送的通知到达cygnus

我的疑问是,当我必须配置cygnus.conf时,我认为,当cygnus向COSMOS发送数据时,我遇到的故障与此归档文件的字段配置有关。下一个文件是要填充的模板,可在文档中找到:

### ============================================
###OrionHDFSSink configuration
###channel name from where to read notification events
cygnusagent.sinks.hdfs-sink.channel = hdfs-channel
### sink class, must not be changed
cygnusagent.sinks.hdfs-sink.type = es.tid.fiware.fiwareconnectors.cygnus.sinks.OrionHDFSSink
### Comma-separated list of FQDN/IP address regarding the Cosmos Namenode endpoints
cygnusagent.sinks.hdfs-sink.cosmos_host = x1.y1.z1.w1,x2.y2.z2.w2
###port of the Cosmos service listening for persistence operations; 14000 for httpfs, 50070 for webhdfs and free choice for inifinty
cygnusagent.sinks.hdfs-sink.cosmos_port = 14000
###default username allowed to write in HDFS
cygnusagent.sinks.hdfs-sink.cosmos_default_username = default
###default password for the default username
cygnusagent.sinks.hdfs-sink.cosmos_default_password = xxxxxxxxxxxxx
###HDFS backend type (webhdfs, httpfs or infinity)
cygnusagent.sinks.hdfs-sink.hdfs_api = httpfs
### how the attributes are stored, either per row either per column (row, column)
cygnusagent.sinks.hdfs-sink.attr_persistence = column
###Hive FQDN/IP address of the Hive server
cygnusagent.sinks.hdfs-sink.hive_host = x.y.z.w
### Hive port for Hive external table provisioning
cygnusagent.sinks.hdfs-sink.hive_port = 10000

### ============================================
但对我来说,我不清楚下一个领域的发展方向:

### Comma-separated list of FQDN/IP address regarding the Cosmos Namenode endpoints
cygnusagent.sinks.hdfs-sink.cosmos_host = x1.y1.z1.w1,x2.y2.z2.w2
我也不知道hive server字段,我需要写的方向是否与fiware COSMOS实例的ip地址相同:

### Hive FQDN/IP address of the Hive server
cygnusagent.sinks.hdfs-sink.hive_host = x.y.z.w
在使用FIWARE Lab cosmos实例的情况下,
cosmos\u主机
的值似乎是:cosmos.Lab.fi-ware.org

关于蜂巢,据说:

或者远程地,通过开发配置单元客户端(通常使用JDBC,但是 对于其他非Java编程语言,还有一些其他选项) 连接到cosmos.lab.fi-ware.org:10000

因此,我猜
hive\u主机
是相同的(cosmos.lab.fi-ware.org)

最后,考虑以下因素:

此外,所有记录到此类全局实例的连接 (ssh连接和Cosmos门户除外)必须从 FI-LAB虚拟机;相反,防火墙将阻止它们


这意味着您应该从FIWARE Lab内的VM运行Cygnus。

执行此操作后,我仍然存在以下问题:
[ERROR-es.tid.FIWARE.fiwareconnectors.Cygnus.sinks.OrionSink.process(OrionSink.java:140)]持久性错误(无法在HDFS.HttpFS响应:400错误请求中创建默认的_org/XYZ目录)
(Cygnus机器位于FiwareLab内的一个VM中,它正在使用该hive_主机)如果这是一个新错误,我建议打开一个关于它的新问题,以免弄乱主题。