Share via

unable to connect ms sql server via jdbc 8.2.0 on linex through spark with windows authentication

senthil veeramani 1 Reputation point
Aug 13, 2020, 12:21 PM

i am trying to connect MS SQL server via jdbc 8.2.0 using spark with windows authentication from linux server but it throw error message as sqljdbc_auth not found in java library path.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,016 questions
{count} votes

1 answer

Sort by: Oldest
  1. Cris Zhan-MSFT 6,636 Reputation points
    Aug 14, 2020, 6:13 AM

    Hi,

    You may need to add the following to the jdbc connection string:

    integratedSecurity=true;authenticationScheme=JavaKerberos  
    

    Please check:
    https://stackoverflow.com/questions/30914061/connect-to-sql-server-from-linux-via-jdbc-using-integratedsecurity-windows-auth

    https://learn.microsoft.com/en-us/archive/blogs/psssql/jdbc-this-driver-is-not-configured-for-integrated-authentication

    Best regards,
    Cris

    ===============================================

    If the response helped, do "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.