如何填写Cygnus.conf

时间:2014-11-26 13:08:37

标签: fiware fiware-cygnus

前几天我能在我的Context Broker vm上运行cygnus,就像文档说的那样。天蝎座和CB之间的所有嫌疑都没有问题,而且CB发出的通知到达天鹅座。

我怀疑当我必须配置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

1 个答案:

答案 0 :(得分:0)

查看BigData Quick Start documentation,在使用FIWARE Lab Cosmos实例的情况下cosmos_host的值似乎是:cosmos.lab.fi-ware.org。

关于Hive,有人说:

  

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

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

最后,请考虑以下因素:

  

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

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