在天鹅座上启用Hive [英] Enabling Hive on Cygnus

查看:62
本文介绍了在天鹅座上启用Hive的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,我的Orion订阅可以在Cosmos实例上适当地创建hfds文件.但是,由于(按照我的项目的要求)我将与Wirecloud进行交易,因此,似乎一个好的方法是执行Hive查询以检索历史数据.

So far, my Orion subscriptions are appropriately creating hfds files on Cosmos instance. However, since (my project's requirements) I will be dealing with Wirecloud, to do so, seems that a good approach is to perform Hive queries to retrieve historical data.

因此,如何解决Cygnus配置文件以自动创建表并填充Hive?

Thus, How can I settle my Cygnus config files to automatically create tables and populate Hive?

使用下面的配置就足够了吗?:

Will using below configuration be enough?:

# Hive enabling
cygnusagent.sinks.hdfs-sink.hive = true
# Hive server version, 1 or 2 (ignored if hive is false)
cygnusagent.sinks.hdfs-sink.hive.server_version = 2
# Hive FQDN/IP address of the Hive server (ignored if hive is false)
cygnusagent.sinks.hdfs-sink.hive.host = x.y.z.w
# Hive port for Hive external table provisioning (ignored if hive is false)
cygnusagent.sinks.hdfs-sink.hive.port = 10000

此文档是否为最新文档(即 http://fiware-cygnus.readthedocs.io/en/1.2.0/cygnus-ngsi/installation_and_administration_guide/ngsi_agent_conf/)?

Is this documentation up to date (i.e., http://fiware-cygnus.readthedocs.io/en/1.2.0/cygnus-ngsi/installation_and_administration_guide/ngsi_agent_conf/)?

推荐答案

我只是失踪了:

cygnusagent.sinks.hdfs-sink.hive.db_type = default-db | namespace-db

上面的命令将允许您从默认的Hive数据库或您自己的私有数据库切换.

The above command will allow you switching form the default Hive database, or a private database of your own.

此外,如果使用FIWARE Lab的Cosmos全局实例,则hdfs_password必须等于您的OAuth2令牌.

Additionally, if using FIWARE Lab global instance of Cosmos, the hdfs_password must be equals to your OAuth2 token.

这篇关于在天鹅座上启用Hive的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆