cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Java code to read azure storage file in a jar type databricks job

ShenghaoWu
New Contributor II

I have a java application, packed as a jar, and will be used as jar dbx job.

This application need

1. read azure storage file, yaml format.

2. need to get passphrase, privatekey stored in dbx, in order to access a snowflake db

my questions are:

1. how to access/read azure storage file in my java code, does dbx have api to do that, any code example including authentication and read.

2. how to access/read secrets stored in dbx in my java code. any code example including authentication and read code.

1 REPLY 1

Hi @Retired_mod ,

Thanks for your info. I have several questions:
1. if my usecase is using SPN context, is there any thing need to change for the code.

2. what's the azure jar name and dbx jar name that I need to import, I am using gradle to build my application.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group