Giter VIP home page Giter VIP logo

Comments (6)

andrie avatar andrie commented on May 14, 2024

We now have a function to trap and report on Azure errors:

stopWithAzureError(r)

I will get to HDI functions eventually. Right now I'm gradually refactoring and fixing issues earlier in the code base.

from azuresmr.

andrie avatar andrie commented on May 14, 2024

I've started working on refactoring the code for running script actions. This is not yet checked into the dev branch, but here is my hunch.

  1. When I run your code the first time, it completes without any problem.
  2. If I then submit this again, I get an error
Error: azureRunScriptAction()
BadRequest
Scripts with the following names already exist in the persisted
script list: installPackages
Return code: 400

My next action is to expose this error and print a friendly message.

from azuresmr.

andrie avatar andrie commented on May 14, 2024

@akzaidi Can you please test again?

from azuresmr.

akzaidi avatar akzaidi commented on May 14, 2024

Does work, thanks ! One weird issue, it prints the following Error:
Error: Provide a valid resourceGroup argument, or set using createAzureContext()

Example usage:

> azureRunScriptAction(sc, resourceGroup = "alizaidi", clustername = "azrsparkdev",
                      scriptname = "installlubridate",
                      scriptURL = "http://mrsactionscripts.blob.core.windows.net/rpackages-v01/InstallRPackages.sh",
                      workerNode = TRUE, edgeNode = TRUE,
                      parameters = "useCRAN lubridate")
Accepted
Script action request submitted: 2017-05-31 11:42:45
Key: A - accepted, (.) - in progress, S - succeeded, E - error, F - failed
Error: Provide a valid resourceGroup argument, or set using createAzureContext()

from azuresmr.

andrie avatar andrie commented on May 14, 2024

Thanks for the report.

So the error happens when pollStatusScriptAction () passes the request to azureScriptActionHistory() - this requires the resourceGroup.

from azuresmr.

andrie avatar andrie commented on May 14, 2024

I've pushed a fix for this to the dev branch.

from azuresmr.

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.