Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use the statsD logging. Init-container fails. #164

Open
maulikjs opened this issue Mar 4, 2020 · 0 comments
Open

Unable to use the statsD logging. Init-container fails. #164

maulikjs opened this issue Mar 4, 2020 · 0 comments

Comments

@maulikjs
Copy link

maulikjs commented Mar 4, 2020

Whenever I try and provide this config in the superset config file

from superset.stats_logger import StatsdStatsLogger
STATS_LOGGER = StatsdStatsLogger(host='localhost', port=8125, prefix='superset')

as per instructions here: https://superset.incubator.apache.org/installation.html#statsd-logging

The Init container fails with this log:

ERROR:root:Failed to import config for SUPERSET_CONFIG_PATH=/etc/superset/superset_config.py
Traceback (most recent call last):
  File "/opt/app-root/lib/python3.6/site-packages/superset/config.py", line 633, in <module>
    override_conf = imp.load_source("superset_config", cfg_path)
  File "/opt/app-root/lib64/python3.6/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/etc/superset/superset_config.py", line 2, in <module>
    from superset.stats_logger import StatsdStatsLogger
ImportError: cannot import name 'StatsdStatsLogger'
Usage: flask fab create-admin [OPTIONS]

Error: While importing "superset", an ImportError was raised:

Traceback (most recent call last):
  File "/opt/app-root/lib/python3.6/site-packages/flask/cli.py", line 235, in locate_app
    __import__(module_name)
  File "/opt/app-root/lib/python3.6/site-packages/superset/__init__.py", line 35, in <module>
    from superset import config
  File "/opt/app-root/lib/python3.6/site-packages/superset/config.py", line 633, in <module>
    override_conf = imp.load_source("superset_config", cfg_path)
  File "/opt/app-root/lib64/python3.6/imp.py", line 172, in load_source
    module = _load(spec)
  File "/etc/superset/superset_config.py", line 2, in <module>
    from superset.stats_logger import StatsdStatsLogger
ImportError: cannot import name 'StatsdStatsLogger'

Have you gotten this working before? Any pointers will be helpful :)

@maulikjs maulikjs changed the title Unable to use the statsD loggin. Init-container fails. Unable to use the statsD logging. Init-container fails. Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant