none
Authentication token fetch failure in Azure data lake store using Java SDK(ava.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty)

    Question

  • 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 - 

    java.security.InvalidAlgorithmParameterException: 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 com.microsoft.azure.datalake.store.oauth2.AzureADAuthenticator

    HttpURLConnection conn = (HttpURLConnection) url.openConnection();
            conn.setRequestMethod("POST");
    conn.setDoOutput(true);

    conn.getOutputStream().write(qp.serialize().getBytes("UTF-8"));

    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.

    Thanks,

    Arun




    Wednesday, February 28, 2018 5:42 PM

All replies