This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main( String[] args ) throws IOException { | |
ClientCredsTokenProvider tokenProvider = new ClientCredsTokenProvider("...", "...", "..."); // fill in placeholders | |
ADLStoreClient client = ADLStoreClient.createClient("AccountName.azureDatalakestore.net", | |
tokenProvider); | |
byte[] myBuffer = new byte[256]; | |
// fill in myBuffer content here | |
RequestOptions opts = new RequestOptions(); | |
// use ONE of the below two lines | |
opts.retryPolicy = new ExponentialBackoffPolicy(); // for at-least-once insertion | |
opts.retryPolicy = new NoRetryPolicy(); // for at-most-once insertion |