diff --git a/README.md b/README.md index 1399d15..65bb7ab 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,7 @@ demo_project: |Documentation | Yes | No | |Authentication: LDAP | Yes | Yes | |Authentication: Kerberos | Yes | Yes | +|Authentication: NOSASL | Yes | Yes | ### Incremental diff --git a/dbt/adapters/hive/connections.py b/dbt/adapters/hive/connections.py index b021dc5..744292d 100644 --- a/dbt/adapters/hive/connections.py +++ b/dbt/adapters/hive/connections.py @@ -212,6 +212,18 @@ def open(cls, connection): use_ssl=credentials.use_ssl, http_path=credentials.http_path, ) + elif credentials.auth_type.upper() == "NOSASL": + auth_type = "nosasl" + hive_conn = impala.dbapi.connect( + host=credentials.host, + port=credentials.port, + auth_mechanism="NOSASL", + use_http_transport=credentials.use_http_transport, + user=credentials.username, + password=credentials.password, + use_ssl=credentials.use_ssl, + http_path=credentials.http_path, + ) elif ( credentials.auth_type.upper() == "GSSAPI" or credentials.auth_type.upper() == "KERBEROS"