Giter Site home page Giter Site logo

Comments (4)

bgklein avatar bgklein commented on August 17, 2024

Are you setting AZURE_BATCH_ENDPOINT? The error states that https://docs.microsoft.com/en-us/java/api/com.microsoft.azure.batch.auth.batchsharedkeycredentials?view=azure-java-stable is failing to be created due to

String batchUri = System.getenv("AZURE_BATCH_ENDPOINT");
being null

from azure-batch-samples.

tej-walker avatar tej-walker commented on August 17, 2024

I did set all the batch and storage account information. below are the "sample" keys how I did:

    String batchAccount = System.getenv("batchaccountname");
    String batchKey = System.getenv("PrimaryAccessKey");
    String batchUri = System.getenv("https://xxxx.yyyy.batch.azure.com");
    String storageAccountName = System.getenv("storageaccountname");
    String storageAccountKey = System.getenv("Key1"); 

Note: All the above info I have taken from the batch account--> Keys section

from azure-batch-samples.

bgklein avatar bgklein commented on August 17, 2024

This section of code gets environment variables for the keys provided in System.getenv(). Unless you are setting the environment variables in your system to be value=value it appears this is a misunderstanding of what environment variables are?

from azure-batch-samples.

tej-walker avatar tej-walker commented on August 17, 2024

I figured it out (the env variables were already set). I restarted the machine and tried, it worked. Probably I should have opened a new command prompt and try it. Thank you so much for investing your time to debug this issue.

from azure-batch-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.