2015-01-15 3 views
0

http를 통해 색조를 Hiveserver2에 연결하려고합니다. 저는 Hue 3.7 (github 버전)과 Hive 0.13.1을 사용합니다. 색조는 http를 통해 hiveserver2에 연결합니다.

<property> 
    <name>hive.server2.transport.mode</name> 
    <value>http</value> 
    <description>Server transport mode. "binary" or "http".</description> 
</property> 

<property> 
    <name>hive.server2.thrift.http.port</name> 
    <value>10001</value> 
    <description>Port number when in HTTP mode.</description> 
</property> 

<property> 
    <name>hive.server2.thrift.http.path</name> 
    <value>cliservice</value> 
    <description>Path component of URL endpoint when in HTTP mode.</description> 
</property> 

<property> 
    <name>hive.server2.thrift.http.min.worker.threads</name> 
    <value>5</value> 
    <description>Minimum number of worker threads when in HTTP mode.</description> 
</property> 

<property> 
    <name>hive.server2.thrift.http.max.worker.threads</name> 
    <value>500</value> 
    <description>Maximum number of worker threads when in HTTP mode.</description> 
</property> 

내가이 명령을 사용 : https://groups.google.com/a/cloudera.org/forum/#!topic/hue-user/ghdFwSuUDfE 을하지만이 작동하지 않습니다

이 내 하이브-site.xml의 구성입니다. 내가 메타 스토어 테이블 색조를 시작하고 클릭하면 오류 메시지가 :

TSocket read 0 bytes 

이 역 추적입니다 : 색조의

[15/Jan/2015 11:53:32 +0100] middleware INFO  Processing exception: TSocket read 0 bytes (code THRIFTTRANSPORT): TTransportException('TSocket read 0 bytes',): Traceback (most recent call last): 
    File "/opt/hue_3.7/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/handlers/base.py", line 111, in get_response 
    response = callback(request, *callback_args, **callback_kwargs) 
    File "/opt/hue_3.7/apps/metastore/src/metastore/views.py", line 108, in show_tables 
    databases = db.get_databases() 
    File "/opt/hue_3.7/apps/beeswax/src/beeswax/server/dbms.py", line 123, in get_databases 
    return self.client.get_databases() 
    File "/opt/hue_3.7/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 813, in get_databases 
    return [table[col] for table in self._client.get_databases()] 
    File "/opt/hue_3.7/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 480, in get_databases 
    res = self.call(self._client.GetSchemas, req) 
    File "/opt/hue_3.7/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 443, in call 
    session = self.open_session(self.user) 
    File "/opt/hue_3.7/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 417, in open_session 
    res = self._client.OpenSession(req) 
    File "/opt/hue_3.7/desktop/core/src/desktop/lib/thrift_util.py", line 340, in wrapper 
    raise StructuredThriftTransportException(e, error_code=502) 
StructuredThriftTransportException: TSocket read 0 bytes (code THRIFTTRANSPORT): TTransportException('TSocket read 0 bytes',) 

확인 구성 반환

Hive Editor  The application won't work without a running HiveServer2. 

하지만 난에 연결할 수 있습니다 Beeline을 통해 Hiveserver2.

어떻게해야합니까?

답변