来自Ambari的Superset内部服务器错误

时间:2019-12-09 13:53:10

标签: hadoop ambari druid

我正在使用Apache Ambari版本2.7.3。我试图从Ambari安装Superset。但是我在启动Superset时遇到问题。以下是超集日志。

Traceback (most recent call last):
  File "/usr/hdp/3.1.4.0-315/superset/lib/python3.6/site-packages/flask/app.py", line 1632, in finalize_request
    response = self.process_response(response)
  File "/usr/hdp/3.1.4.0-315/superset/lib/python3.6/site-packages/flask/app.py", line 1858, in process_response
    self.save_session(ctx.session, response)
  File "/usr/hdp/3.1.4.0-315/superset/lib/python3.6/site-packages/flask/app.py", line 924, in save_session
    return self.session_interface.save_session(self, session, response)
  File "/usr/hdp/3.1.4.0-315/superset/lib/python3.6/site-packages/flask/sessions.py", line 363, in save_session
    val = self.get_signing_serializer(app).dumps(dict(session))
  File "/usr/hdp/3.1.4.0-315/superset/lib/python3.6/site-packages/itsdangerous/serializer.py", line 167, in dumps
    rv = self.make_signer(salt).sign(payload)
  File "/usr/hdp/3.1.4.0-315/superset/lib/python3.6/site-packages/itsdangerous/timed.py", line 42, in sign
    return value + sep + self.get_signature(value)
  File "/usr/hdp/3.1.4.0-315/superset/lib/python3.6/site-packages/itsdangerous/signer.py", line 143, in get_signature
    key = self.derive_key()
  File "/usr/hdp/3.1.4.0-315/superset/lib/python3.6/site-packages/itsdangerous/signer.py", line 132, in derive_key
    mac = hmac.new(self.secret_key, digestmod=self.digest_method)
  File "/usr/hdp/3.1.4.0-315/superset/lib/python3.6/hmac.py", line 144, in new
    return HMAC(key, msg, digestmod)
  File "/usr/hdp/3.1.4.0-315/superset/lib/python3.6/hmac.py", line 42, in __init__
    raise TypeError("key: expected bytes or bytearray, but got %r" % type(key).__name__)
TypeError: key: expected bytes or bytearray, but got 'int'

1 个答案:

答案 0 :(得分:0)

更改超级集数据库的SECRET_KEY,然后重新启动服务器后,它可以工作。 (不能使用纯数字)