impyla

AWS Lambda Error: Unable to import module 'function_name': No module named 'module._module'

蓝咒 提交于 2021-01-27 19:24:07
问题 Please see the screenshots in particular after reading. I am deploying a python script on AWS Lambda which uses the package impyla which has a dependency on the package bitarray . from impala.dbapi import connect My python file is called authorize_ingress.py which has a function called handle_authorize_ingress(event, context) which are properly configured. See the screenshots below: My function's file: The handler in lambda specified: The handler in code itself: and my zip file has everything

Getting detailed Impyla error message

不羁的心 提交于 2021-01-27 18:33:40
问题 When I execute a SQL statement in Impala using Python/Impyla, I am just getting an exception with a generic error message like ""Operation is in ERROR_STATE". How do I get more detailed information about the error that occurred? 回答1: The cursor object has a _last_operation field that can be used to get more detailed information. E.g. try: cur.execute(sql) except Exception, e: op = cur._last_operation abort(400,"ERROR: %s"%op.get_log()) Output might be: Complete (0 out of 0) Error while

Connecting to Kerberized hadoop cluster using python module impyla

微笑、不失礼 提交于 2019-12-25 08:59:30
问题 I am using impyla module to connect to kerberized hadoop cluster. I want to access hiveserver2/hive but I was getting the below error: test_conn.py from impala.dbapi import connect import os connection_string = 'hdp296m1.XXX.XXX.com' conn = connect(host=connection_string, port=21050,auth_mechanism="GSSAPI",kerberos_service_name='testuser@Myrealm.COM',password='testuser') cursor = conn.cursor() cursor.execute('select count(*) form t_all_types_simple_t') print cursor.description results =