1

几天前,我能够在我的 Context Broker 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服务器字段,我需要写的方向是否与fiware COSMOS实例的IP地址相同:

### Hive FQDN/IP address of the Hive server
cygnusagent.sinks.hdfs-sink.hive_host = x.y.z.w
4

1 回答 1

0

查看BigData 快速入门文档,似乎cosmos_host使用 FIWARE Lab Cosmos 实例的值是:cosmos.lab.fi-ware.org。

关于 Hive,据说:

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

所以我猜hive_host是一样的(cosmos.lab.fi-ware.org)。

最后,考虑以下几点:

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

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

于 2014-11-26T14:46:33.387 回答