I am trying to use Impyla to connect to impala on a remote server (Server1). I am able to connect and query from my local to Server1 using the following:
from impala.dbapi import connect
import impala.util
conn = connect(host=my_impalad, port = 21050, auth_mechanism = 'GSSAPI', use_ssl = True)
However, when I try the same lines on Server2 trying to connect to Server1, I get the following error
thriftpy.transport.TTransportException: TTransportException(type=1, message='Could not start SASL:
b\'Error in sasl_client_start (-1) SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure.
Minor code may provide more information (Cannot find KDC for realm "_________")\'')
Why do this happen on Server2 but not from my local? Shouldn't it all be relative to Server1?