Giter VIP home page Giter VIP logo

Comments (8)

Alanwe avatar Alanwe commented on May 14, 2024

@kjohnson4 - Yes the local file function had some bugs and was removed for the initial release. I will remove the parameter from the function and documentation until it can get implemented correctly. Thanks for pointing out.

The azureBlobPut of an object from contents should work. As per your other post, can you confirm that you are not using classic mode and that other blob functions are working. Thanks

from azuresmr.

kjohnson4 avatar kjohnson4 commented on May 14, 2024

Sorry about that, I missed notes that the file function was bugged.

Other blob functions are working. I can Get (read) blobs and manipulate the data, and I'm trying to write those changes back, but can't seem to get this working. All our resources are managed, not classic, and veirfied that this SA was created new in RM, not in classic and moved.

from azuresmr.

kjohnson4 avatar kjohnson4 commented on May 14, 2024

Using your example on other issue posting:
azureCreateStorageContainer(sc,"myteststorage") library(RCurl) flightfile <- getURL("https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/244708/Home_Office_Air_Travel_Data_2011.csv") azurePutBlob(sc,contents=flightfile,blob = "flightinfo/flightfile.csv")

I noticed that flightfile is stored in "Values" of the RStudio environment. However all the files I'm reading in (using read.table, read.csv) will end up placing the result in the "Data" section, as the reading stores the file in a dataframe. Would this be causing an issue to put this data into Blob?

from azuresmr.

Sebs030 avatar Sebs030 commented on May 14, 2024

Hi, I am having a similar issue, when trying to pass in a dataframe for content I surprisingly get an authentication error:

No encoding supplied: defaulting to UTF-8.
No encoding supplied: defaulting to UTF-8.
Error: azurePutBlob()
AuthenticationFailed
Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly
including the signature. RequestId:
The MAC signature found in the HTTP request 'KEY' is not the same as
any computed signature. Server used following string to sign: 'PUT

246

text/plain; charset=UTF-8

x-ms-blob-type:Blockblob x-ms-date:Fri, 26 Jan 2018 16:30:45 GMT x-ms-version:2017-04-17
PATH'.
Return code: 403
In addition: Warning message:
In charToRaw(object) : argument should be a character vector of length 1
all but the first element will be ignored

However if the data is passed in as a simple one row character by coercing the dataframe with toString() the function works and the data gets stored in the blob. Would be great if a dataframe could be directly stored as a file.

from azuresmr.

bdb67 avatar bdb67 commented on May 14, 2024

Hello, this is an important issue, is this being worked on? Thanks.

from azuresmr.

ericchansen avatar ericchansen commented on May 14, 2024

Any updates on this issue? Getting same problem as @Sebs030.

from azuresmr.

balajisubudhi avatar balajisubudhi commented on May 14, 2024

Not able to store an pdf file using azurePutBlob. it gives authentication error. any suggestion how to store pdf file in blob using R

from azuresmr.

alexhallam avatar alexhallam commented on May 14, 2024

I also have trouble uploading a dataframe. A solution that worked for me was to convert the dataframe to JSON.

json_USArrests<- USArrests %>% 
  as_tibble() %>% 
  jsonlite::toJSON()

The json_USArrests can then be passed to azurePutBlob. From that point you can do an Azure Data Factory injest if the goal is to put the data in an Azure SQL database, or you can read the blob and convert it back to a dataframe if you want to use it again in R.

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.