Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Handling Avro Files from R without using Spark

Tags:

r

I have to read an Avro file from R, I have seen that R has two packages sparkAvro and sparklyr that handle Avro files however I can´t install Spark on my local computer so I was wondering whether there are other packages in R without Spark dependency.

Thank you very much.

like image 535
user1439991 Avatar asked Nov 23 '25 07:11

user1439991


1 Answers

Yo can use the ravro package: https://github.com/RevolutionAnalytics/ravro/blob/master/build/ravro_1.0.4.tar.gz

install.packages('path_to_tar.gz/ravro_1.0.4.tar.gz', repos = NULL, type="source")
df = ravro::read.avro("myavro.avro")

But the package is quite old (last commit 7 years ago) and not probably not very fast

like image 111
fc9.30 Avatar answered Nov 24 '25 19:11

fc9.30



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!