无法用Solr连接Apache Superset

发布于 2025-01-30 23:39:25 字数 641 浏览 2 评论 0原文

症状:

在与此URL连接的超集连接中创建/测试数据库

solr://solr-master:8983/solr/my-collection

接收错误消息

Could not load database driver: SolrEngineSpec

环境:

群集上的0.6.1

安装了Helm图表版本: Kubernetes

在值中添加sqlalchemy-

#!/bin/bashrm -rf /var/lib/apt/lists/* && pip install sqlalchemy-solr && pip install psycopg2-binary==2.9.1 && pip install redis==3.5.3 && \if [ ! -f ~/bootstrap ]; then echo "Running Superset with uid {{ .Values.runAsUser }}" > ~/bootstrap; fi

solr

Symptom:

creating/testing database in Superset connection with this URL

solr://solr-master:8983/solr/my-collection

receiving error message

Could not load database driver: SolrEngineSpec

Environment:

Installed HELM Chart version: 0.6.1 on kubernetes cluster

Approach to solve the problem

adding sqlalchemy-solr to the bootstrapScript in values.yaml

#!/bin/bashrm -rf /var/lib/apt/lists/* && pip install sqlalchemy-solr && pip install psycopg2-binary==2.9.1 && pip install redis==3.5.3 && \if [ ! -f ~/bootstrap ]; then echo "Running Superset with uid {{ .Values.runAsUser }}" > ~/bootstrap; fi

Result:

sqlalchemy-solr was curiously not installed by pip

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

最近可好 2025-02-06 23:39:25

这是Bootstrapscript中的语法问题。线路断路必须用空行标记。

source:
 repoURL: 'https://apache.github.io/superset'
 targetRevision: 0.6.1
 helm:
  parameters:
  - name: bootstrapScript
    value: >
      #!/bin/bash

      rm -rf /var/lib/apt/lists/*

      pip install sqlalchemy-solr

      pip install psycopg2-binary==2.9.1

      pip install redis==3.5.3

      if [ ! -f ~/bootstrap ]; then echo "Running Superset with uid {{ .Values.runAsUser }}" > ~/bootstrap; fi
 chart: superset

It was a syntax problem in the bootstrapScript. Line break must be marked with an empty row.

source:
 repoURL: 'https://apache.github.io/superset'
 targetRevision: 0.6.1
 helm:
  parameters:
  - name: bootstrapScript
    value: >
      #!/bin/bash

      rm -rf /var/lib/apt/lists/*

      pip install sqlalchemy-solr

      pip install psycopg2-binary==2.9.1

      pip install redis==3.5.3

      if [ ! -f ~/bootstrap ]; then echo "Running Superset with uid {{ .Values.runAsUser }}" > ~/bootstrap; fi
 chart: superset
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文