Hi All, Did anyone encountered errors deploying F...
# troubleshooting
o
Hi All, Did anyone encountered errors deploying Flink Job that uses Azure-Blob-Storage client? (mvn repo: "com.azure" % "azure-storage-blob")
Copy code
Caused by: java.lang.IllegalStateException: A request was made to load the default HttpClient provider but one could not be found on the classpath. If you are using a dependency manager, consider including a dependency on azure-core-http-netty or azure-core-http-okhttp. Depending on your existing dependencies, you have the choice of Netty or OkHttp implementations. Additionally, refer to https://aka.ms/azsdk/java/docs/custom-httpclient to learn about writing your own implementation.
    at com.azure.core.implementation.util.Providers.create(Providers.java:99)
    at com.azure.core.implementation.http.HttpClientProviders.createInstance(HttpClientProviders.java:46)
    at com.azure.core.http.HttpClient.createDefault(HttpClient.java:61)
    at com.azure.core.http.HttpClient.createDefault(HttpClient.java:51)
    at com.controlup.aggregate30d.source.PathsExtractor$.blobStorageContainerClient(PathsExtractor.scala:59)
    at com.controlup.aggregate30d.source.PathsExtractor$.extract(PathsExtractor.scala:39)
    at com.controlup.aggregate30d.Batch$.execute$1(Batch.scala:126)
    at com.controlup.aggregate30d.Batch$.main(Batch.scala:72)
    at com.controlup.aggregate30d.Batch.main(Batch.scala)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.base/java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:355)
I even added azure-core-http-netty or azure-core-http-okhttp as suggested, but the error remain the same. here's my code:
Copy code
val blobClient = new BlobServiceClientBuilder()
  .endpoint(s"https://$accName.blob.core.windows.net")
  .credential(new DefaultAzureCredentialBuilder().build())
  .buildClient().getBlobContainerClient(containerName)