I checked the official doc, there are create,list,delete methods etc. except upload
and download
method in Java SDK.
Then I searched the Azure Data Lake java sdk source code , it also doesn't seem to contain upload
and download
method in ADLStoreClient
Class.
Based on this situation, I suggest you using REST API to upload file to ADL.
You need to follow this doc to upload data into ADL via REST API. How to get the application id and secretkey you could refer to official document. More detail steps to get the permission to access the datalake you could refer to another SO thread.
Get Access Token sample code:
private static String clientId = "***";
private static String authTokenEndpoint = "https://login.microsoftonline.com/***/oauth2/token";
private static String clientKey = "***";
public static void main(String[] args) throws IOException {
AccessTokenProvider provider = new ClientCredsTokenProvider(authTokenEndpoint, clientId, clientKey);
String accessToken=provider.getToken().accessToken;
}
Then use this Upload Data steps to upload your local file into ADL.
Hope it helps you.