Created 09-22-2021 09:04 PM
Hi,
I am trying to connect to impala form dbweaver and constantly getting the below error. I have imported all the necessary drivers.
[Simba][ImpalaJDBCDriver](500164) Error initialized or created transport for authentication: java.net.ConnectException: Connection refused: connect.
java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
Connection refused: connect
Connection refused: connect
connection string format:- jdbc:impala://hostname:21050/pmmcounter_db
Created 09-24-2021 12:28 AM
@golibrary It looks it fails with authentication. Please try with "AuthMech" property based on your Cluster setup.
Using No Authentication
To use no authentication:
Set the AuthMech property to 0 For example:
jdbc:impala://localhost:21050;AuthMech=0
Using Kerberos
For information on operating Kerberos, refer to the documentation for your operating system.
To configure the Cloudera JDBC Driver for Impala to use Kerberos authentication:
Set the AuthMech property to 1.
If your Kerberos setup does not define a default realm or if the realm of your Impala server is not the default, then set the appropriate realm using the KrbRealm property.
Set the KrbHostFQDN property to the fully qualified domain name of the Impala host.
Set the KrbServiceName property to the service name of the Impala server.
For example:
jdbc:impala://localhost:21050;AuthMech=1;KrbRealm=EXAMPLE.COM;Krb HostFQDN=impala.example.com;KrbServiceName=impala
Please refer the below document
Check Authentication informations on page number -> 13 & 14
Cheers!
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Created 09-25-2021 05:59 PM
Hi @Chella ,
Thanks for the reply, I have already set AuthMech = 0 in DbWeaver driver properties, but i still see the same error
url format is like :- jdbc:impala://<domain_name>:21050/<schema_name>
i have imported the drivers like below
Please advise.