当我下载后期汇合使用时,我发现我可以运行...
form.is_valid()
django/forms/forms.py:179: in is_valid
return self.is_bound and not self.errors
django/forms/forms.py:174: in errors
self.full_clean()
django/forms/forms.py:376: in full_clean
self._clean_fields()
django/forms/forms.py:394: in _clean_fields
value = field.clean(value)
django/forms/fields.py:148: in clean
value = self.to_python(value)
django/forms/models.py:1245: in to_python
value = self.queryset.get(**{key: value})
[...]
E Failed: Database access not allowed, use the "django_db" mark, or the "db" or "transactional_db" fixtures to enable it.
环境是:
$ ./bin/confluent start
Using CONFLUENT_CURRENT: /tmp/confluent.AV6gmvzx
Starting zookeeper
zookeeper is [UP]
Starting kafka
-Kafka failed to start
kafka is [DOWN]
Cannot start Schema Registry, Kafka Server is not running. Check your deployment
问题是什么?
答案 0 :(得分:0)
我想这是本地的Confluent运行。 发生这种情况是因为Kafka在内部使用主机名而不是IP地址。
检查主机名是否与/etc/hosts
就我而言,在终端中运行命令> hostname 的结果不匹配
/ etc / hosts文件中的127.0.0.1,我最终将主机名从localhost更新为新的主机名