【问题标题】:Airflow error when setting up a beeline Hive connection设置直线 Hive 连接时出现气流错误
【发布时间】:2019-01-06 14:13:46
【问题描述】:

我正在尝试通过 Airflow UI 创建连接,但在尝试保存时出现 UI 错误:“更新记录失败。填充不正确”

连接详情如下:

  • Conn ID:beeline_default
  • Conn 类型:Hive Client Wrapper
  • 主持人:fully.qualified.hostname.com
  • 登录:user_with_access_to_hive
  • 密码:some_password
  • 端口:6789
  • 架构:default;transportMode=http;httpPath=gateway/default/hive;ssl=true;
  • 额外:{ "use_beeline": true }

注意事项:

  • 我知道 Schema 参数不仅仅包括架构,这似乎不是问题,因为(见下);
  • 删除{ "use_beeline": true } 后,我就可以保存连接了。

在网络服务器日志中看不到任何有意义的消息,或者我可能正在搜索错误的文件。

【问题讨论】:

    标签: hive airflow beeline


    【解决方案1】:

    我在尝试建立 ssh 连接时遇到了同样的问题。解决它的细节是:

    1. pip 安装密码
    2. 从 cryptography.fernet 导入 Fernet
    3. 打印(Fernet.generate_key().decode())
    4. 将生成的密钥添加到配置文件airflow.cfg

    Source with the issue

    【讨论】:

      猜你喜欢
      • 2018-04-25
      • 2021-07-07
      • 1970-01-01
      • 1970-01-01
      • 2019-02-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多