Can I connect JDBC to Azure Data Lake Storage Gen2?

Takahito Iwasa 4,841 Reputation points MVP
2022-09-26T23:56:05.703+00:00

[background]

I want to use the following Athena Connector with Azure Data Lake Storage Gen2 to query Azure Storage from Amazon Athena on AWS.

https://docs.aws.amazon.com/athena/latest/ug/connectors-adls-gen2.html

According to the documentation, a JDBC connection string to Azure Data Lake Storage Gen2 is required, but the Data Lake Storage documentation only provides an HTTP connection string for Azure Data Lake Storage Gen2.

A connection string of the form:

   datalakegentwo://jdbc:sqlserver://adlsgentwo1.hostname:port;databaseName=database_name;${secret1_name}  

secret1_name is like Azure Key Vault in AWS and stores the following secret information.

   {"username": "${username}", "password": "${password}"}  

I'm confused why the connection string like SQL Server.

[question]

Can I connect JDBC to Azure Data Lake Storage Gen2?

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,426 questions
0 comments No comments
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA-MSFT 85,511 Reputation points Microsoft Employee
    2022-09-27T11:10:14.033+00:00

    Hello @Takahito Iwasa ,

    Thanks for the question and using MS Q&A platform.

    There is no JDBC connection string available for Azure Data Lake Storage Gen2 account.

    Note: ADLS gen2 does not natively offer access via JDBC

    As per my knowledge - JDBC connection string is used to connect databases and not the storage accounts.

    As per the document which you are referring in the question which clearly says as follows:

    245107-image.png

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is jhow you can be part of Q&A Volunteer Moderators

0 additional answers

Sort by: Most helpful