Comments (8)
@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.
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.
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.
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: 'PUT246
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.
Hello, this is an important issue, is this being worked on? Thanks.
from azuresmr.
Any updates on this issue? Getting same problem as @Sebs030.
from azuresmr.
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.
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)
- Undefined index_resource in azureDataConsumption()
- install_github failing HOT 1
- Issue authenticating with tutorial HOT 5
- Can't read/write to blob storage HOT 2
- azureCreateStorageAccount fails while storage account does not exist HOT 1
- license HOT 1
- Extracting an excel file with multiple tabs from Azure to R HOT 1
- Read .gz file from Data Lake HOT 1
- R 3.5 Support
- download more than 5000 blobs HOT 1
- Writing dataframe to blob with AzurePutbBlob HOT 5
- Error trying to write to Blob
- azureDataLake functions don't work HOT 2
- AzurePutBlob should take contenttype as an argument
- DeviceCode authentication doesn't work HOT 2
- resourceGroup should be optional when providing a storage key
- Use HTTPS when communicating with Storage API
- Storing raw objects does not work due to invalid authorisation signature HOT 1
- Support ADLS as alternative to storage account in HDI HOT 1
- Authentication Rmd outdated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azuresmr.