Authentication token fetch failure in Azure data lake store using Java SDK( the trustAnchors parameter must be non-empty)


  • Hi,

    I tried to create an authentication token from the active directory using the following Java sdk api.

    AzureADToken token = AzureADAuthenticator.getTokenUsingClientCreds(authTokenEndpoint, clientId, clientKey);

    But this failed with the following error message - the trustAnchors parameter must be non-empty

    On further debugging , I found that this error is thrown from the method getTokenCall(String,QueryParams ) of the class

    HttpURLConnection conn = (HttpURLConnection) url.openConnection();


    The error is throws in the above highlighted statement.

    I don't face this issue when running the same directly from the linux box.I face it only when running it from hadoop cluster environment.

    Should any setting related to truststore be set.?

    I face this issue in hadoop linux cluster environment. I would appreciate any pointers on how to fix this.



    Wednesday, February 28, 2018 5:42 PM

All replies