|
From: | anil |
Subject: | Could not connect SASL ERROR |
Date: | Sat, 2 Jun 2018 11:59:46 +0530 |
Hi , We want establish the connection from python to Hadoop cluster , we installed packages for this 1) Pyhive 2) Sasl 3) Thrift 4) Thrift-sasl But we are getting error so please can you help on this. Code : from pyhive import hive conn = hive.Connection(host="YOUR_HIVE_HOST", port=PORT, username="YOU") cursor = conn.cursor() cursor.execute("SELECT cool_stuff FROM hive_table") for result in cursor.fetchall(): use_result(result) Thanks & Regards, M.ANIL KUMAR |
screenshot.PNG
Description: PNG image
[Prev in Thread] | Current Thread | [Next in Thread] |