TSocket อ่าน 0 ไบต์ (รหัส THRIFTTRANSPORT): TTransportException ('TSocket อ่าน 0 ไบต์',)

[ป้อนคำอธิบายรูปภาพที่นี่][1]เมื่อฉันรวม HIVE เข้ากับ HUE ของฉัน ฉันรายงานข้อผิดพลาด

ฉันพยายามมาหลายวันแต่ก็ไม่สามารถแก้ไขได้ ใครสามารถช่วยฉันได้บ้าง?

ฉันค้นหาใน Google แต่ก็ไม่ประสบความสำเร็จ

TSocket read 0 bytes
×
TSocket read 0 bytes (code THRIFTTRANSPORT): TTransportException('TSocket read 0 bytes',)

อัปเดต: เวอร์ชันสีของฉันคือ 4.5.0 และเวอร์ชันไฮฟ์คือ 3.1.0

hive เป็นหนึ่งในองค์ประกอบของ hdp 3.1.4.0

และไม่มีการกำหนดค่า Kerberos

รังที่เกี่ยวข้องกับ hue conf อยู่ด้านล่าง:

[beeswax]

 # Host where HiveServer2 is running.
 # If Kerberos security is enabled, use fully-qualified domain name (FQDN).

 hive_server_host=jd-xxx-001.ABC.XYZ

 # Port where HiveServer2 Thrift server runs on.
 hive_server_port=10016

 # Hive configuration directory, where hive-site.xml is located
 hive_conf_dir=/etc/hive/conf

 # Timeout in seconds for thrift calls to Hive service
 server_conn_timeout=120

hue log as below:

[03/Nov/2019 19:12:43 -0800] access       INFO     192.168.16.13 admin - "GET /static/desktop/js/queryBuilder.4597d86a7a3f.js HTTP/1.1" returned in 3ms
    [03/Nov/2019 19:12:43 -0800] access       INFO     192.168.16.13 admin - "GET /static/desktop/js/bundles/hue/notebook-chunk-8a9143f5572b79c918e5.aefcf25c309b.js HTTP/1.1" returned in 1ms
    [03/Nov/2019 19:12:43 -0800] access       INFO     192.168.16.13 admin - "GET /static/desktop/js/bundles/hue/vendors~notebook-chunk-8a9143f5572b79c918e5.8b3cae4709a3.js HTTP/1.1" returne
d in 3ms
    [03/Nov/2019 19:12:44 -0800] hive_server2_lib INFO     Opening beeswax thrift session for user admin
    [03/Nov/2019 19:12:44 -0800] thrift_util  INFO     Thrift exception; retrying: TSocket read 0 bytes
    [03/Nov/2019 19:12:44 -0800] thrift_util  INFO     Thrift exception; retrying: TSocket read 0 bytes
    [03/Nov/2019 19:12:44 -0800] thrift_util  WARNING  Out of retries for thrift call: OpenSession
    [03/Nov/2019 19:12:44 -0800] thrift_util  INFO     Thrift saw a transport exception: TSocket read 0 bytes
    [03/Nov/2019 19:12:44 -0800] access       INFO     192.168.16.13 admin - "POST /notebook/api/autocomplete/ HTTP/1.1" returned in 33ms
    [03/Nov/2019 19:12:44 -0800] access       INFO     192.168.16.13 admin - "POST /notebook/api/create_notebook HTTP/1.1" returned in 5ms
    [03/Nov/2019 19:12:44 -0800] access       INFO     192.168.16.13 admin - "GET /desktop/workers/aceSqlSyntaxWorker.js HTTP/1.1" returned in 3ms
    [03/Nov/2019 19:12:44 -0800] access       INFO     192.168.16.13 admin - "GET /desktop/workers/aceSqlLocationWorker.js HTTP/1.1" returned in 1ms
    [03/Nov/2019 19:12:44 -0800] access       INFO     192.168.16.13 admin - "GET /desktop/api2/user_preferences/default_app HTTP/1.1" returned in 2ms
    [03/Nov/2019 19:12:44 -0800] access       INFO     192.168.16.13 admin - "GET /static/desktop/js/ace/theme-hue.js HTTP/1.1" returned in 0ms
    [03/Nov/2019 19:12:45 -0800] access       WARNING  192.168.16.13 admin - "POST /jobbrowser/jobs/ HTTP/1.1"-- 404 not found
    [03/Nov/2019 19:12:45 -0800] base         WARNING  Not Found: /jobbrowser/jobs/
    [03/Nov/2019 19:12:45 -0800] access       INFO     192.168.16.13 admin - "GET /notebook/api/get_history HTTP/1.1" returned in 5ms
    [03/Nov/2019 19:12:45 -0800] access       INFO     192.168.16.13 admin - "GET /static/desktop/js/ace/snippets/hive.js HTTP/1.1" returned in 0ms
    [03/Nov/2019 19:12:45 -0800] access       INFO     192.168.16.13 admin - "GET /desktop/api2/context/computes/hive HTTP/1.1" returned in 19ms
    [03/Nov/2019 19:12:46 -0800] hive_server2_lib INFO     Opening beeswax thrift session for user admin
    [03/Nov/2019 19:12:46 -0800] thrift_util  INFO     Thrift exception; retrying: TSocket read 0 bytes
    [03/Nov/2019 19:12:46 -0800] thrift_util  INFO     Thrift exception; retrying: TSocket read 0 bytes
    [03/Nov/2019 19:12:46 -0800] thrift_util  WARNING  Out of retries for thrift call: OpenSession
[03/Nov/2019 19:12:46 -0800] thrift_util INFO Thrift saw a transport exception: TSocket read 0 bytes [03/Nov/2019 19:12:46 -0800] decorators ERROR Error running create_session Traceback (most recent call last): File "/home/hue/hue450_install/hue/desktop/libs/notebook/src/notebook/decorators.py", line 105, in decorator return func(*args, **kwargs) File "/home/hue/hue450_install/hue/desktop/libs/notebook/src/notebook/api.py", line 97, in create_session response['session'] = get_api(request, session).create_session(lang=session['type'], properties=properties) File "/home/hue/hue450_install/hue/desktop/libs/notebook/src/notebook/connectors/hiveserver2.py", line 90, in decorator raise QueryError(message) QueryError: TSocket read 0 bytes (code THRIFTTRANSPORT): TTransportException('TSocket read 0 bytes',)


person WakerWang    schedule 04.11.2019    source แหล่งที่มา
comment
ฉันไม่รู้ว่าจะอัพโหลดรูปภาพได้อย่างไร   -  person WakerWang    schedule 04.11.2019
comment
ยินดีต้อนรับสู่ SO! เมื่อคุณตั้งคำถาม ให้พยายามเพิ่มเนื้อหาขั้นต่ำ: ตัวอย่างอินพุต, ตัวอย่างผลลัพธ์ที่คาดหวัง, คุณลองทำอะไร, ค้นคว้า และคุณติดอยู่ตรงไหน เราต้องการข้อมูลเพิ่มเติม หากต้องการเพิ่มรูปภาพเดียว ให้แก้ไขโพสต์ของคุณ (เลือกแก้ไขที่ด้านล่างของโพสต์) และในแถบแก้ไข ที่ด้านบนของรหัสไปรษณีย์ คุณจะพบไอคอนหนึ่งอันสำหรับการอัปโหลดรูปภาพ คลิกที่มันจากนั้น Add-in เล็ก ๆ ตัวหนึ่งจะขอให้คุณเรียกดูในคอมพิวเตอร์ของคุณ เพียงเลือกรูปภาพของคุณและเสร็จสิ้น เมื่อการอัปโหลดเสร็จสิ้น คุณสามารถเพิ่มคำอธิบายลงในโค้ดได้   -  person David García Bodego    schedule 04.11.2019
comment
ขอบคุณ ฉันได้อัปโหลดรูปภาพของฉันแล้ว และนี่คือการกำหนดค่า hue.ini ของฉัน   -  person WakerWang    schedule 04.11.2019
comment
ฉันขอโทษสำหรับคำอธิบายของฉัน เพราะนี่เป็นครั้งแรกที่ฉันใช้ stack overflow   -  person WakerWang    schedule 04.11.2019


คำตอบ (2)


สิ่งนี้ช่วยฉัน:

  1. hue/build/env/bin/pip install thrift-sasl==0.2.1
  2. ใช้กรอบงาน SASL เพื่อสร้างการเชื่อมต่อกับโฮสต์ use_sasl=true
  3. engine=sqlite3 -> engine=postgresql_psycopg2 (หรือฐานข้อมูลอื่น)
person Str787    schedule 29.11.2019

ฟังดูเหมือนอันนี้ซึ่งอธิบายว่าทำไม https://github.com/cloudera/hue/issues/849

person Romain    schedule 05.11.2019