redash添加elasticsearch数据源
来源:互联网 发布:汉诺塔问题递归算法 编辑:程序博客网 时间:2024/05/16 02:00
使用redash提供的Ubuntu script 在Ubuntu部署redash,下一步添加DataSource
BASE_URL 这是个什么东西???
google了好久都是only ip&port
可我怎么试connection refused
无奈采取看源代码
def test_connection(self): try: r = requests.get("{0}/_cluster/health".format(self.server_url), auth=self.auth) r.raise_for_status() except requests.HTTPError as e: logger.exception(e) raise Exception("Failed to execute query. Return Code: {0} Reason: {1}".format(r.status_code, r.text)) except requests.exceptions.RequestException as e: logger.exception(e) raise Exception("Connection refused")
还要对requests有一点了解,requests的入参形式是http://ip:port
修改base_url 连接成功!
阅读全文
0 0
- redash添加elasticsearch数据源
- 添加数据源
- glassfish 添加jdbc数据源
- 动态添加数据源
- elasticsearch 添加字段
- elasticsearch 模板添加字段
- elasticsearch添加mapping
- elasticsearch 配置 ik 分词与 jdbc 数据源
- 以mongodb为数据源搭建ElasticSearch
- JBOSS下动态添加数据源
- windows7如何添加数据源 (ODBC)
- web开发中添加数据源
- BlazeDS4 添加MSSQL/MySQL数据源
- Windows 7添加Access数据源
- BlazeDS4 添加MSSQL/MySQL数据源
- rdlc报表添加object数据源
- 性能分析添加数据源绑定
- 添加和使用ODBC数据源
- Intellij IDEA 全面教程
- getline()详解
- 如何解决问题“This Class is not Key Value Coding-Compliant for the Key”
- 去水印--《On the Effectiveness of Visible Watermarks》
- Opencv3.0+vs2015
- redash添加elasticsearch数据源
- Bound Found(POJ-2566)(尺取法 and 前缀和)
- 《principles of model checking》中的离散时间马尔科夫链
- UGUI 学习笔记 3 Text 和 Rect Transform
- 数据结构知识点总结
- unity加载prefab的方式
- struct (指针题)不能正确输出hello
- c语言字符数组与字符串的使用详解
- 归并算法