Почему при использовании hbase в hue возникает ошибка? - PullRequest
0 голосов
/ 24 мая 2019

Когда я использую hbase в hue, об ошибке сообщалось как «TSocket read 0 bytes».

Это некоторые файлы конфигурации.

hbase-site.xml

<property>
  <name>hbase.thrift.support.proxyuser</name>
  <value>true</value>
</property>
<property>
  <name>hbase.regionserver.thrift.http</name>
  <value>true</value>
</property>

hue.ini

[hbase]
hbase_clusters=(Cluster|localhost:9090)

Я запускаю thrift с ./hbase-daemon.sh start thrift, потому что этот оттенок не поддерживает thrift2.

Я могу успешно выполнить telnet с портом 9090. Но всеть hue сообщает нам «TSocket read 0 bytes», и я не могу получить данные hbase.

Информация о стеках:

[24/May/2019 00:32:22 -0700] exceptions_renderable ERROR
Potential trace: [
('/usr/local/hue/apps/hbase/src/hbase/api.py', 46, 'query', 'return getattr(self, action)(*args)'),
('/usr/local/hue/apps/hbase/src/hbase/api.py', 142, 'getTableList', "return [{'name': name, 'enabled': client.isTableEnabled(name, doas=self.user.username)} for name in client.getTableNames(doas=self.user.username)]"),
('/usr/local/hue/desktop/core/src/desktop/lib/thrift_util.py', 420, 'wrapper', 'raise StructuredThriftTransportException(e, error_code=502)')]
...