I have an AWS Lambda function written in python2.7. Using the lambda function I am trying to connect to Impala (installed on an ec2 instance). The py lambda function uses Ibis to connect to Impala.
While trying to test from Lambda, I get the below error:
"errorType": "TTransportException",
"errorMessage": "Could not connect to xx.xx.xx.xx:21050"
Code:
hdfs = ibis.hdfs_connect(host=db_cfg["hdfs_host"], port=db_cfg["hdfs_port"], user=db_cfg["hdfs_user"])
client = ibis.impala.connect(host=db_cfg["impala_host"], port=db_cfg["impala_port"], hdfs_client=hdfs)
Is this not possible through AWS Lambda?