i want to serialize an xml file about 15 GB to avro and store in hadoop using python 3.6. My approach is to load data using xml.minidom in a variable of dictionary type and then save it to avro file. While this works perfectly for a sample xml file of few kb size, can i still store the whole big xml data to that variable ? I guess there is some memory challenge in this approach ? How is the best way to handle this situation ?
how to serialize large file more than 5 GB to avro?
454 Views Asked by scaleX At
1
There are 1 best solutions below
Related Questions in HADOOP
- pcap to Avro on Hadoop
- schedule and automate sqoop import/export tasks
- How to diagnose Kafka topics failing globally to be found
- Only 32 bit available in Oracle VM - Hadoop Installation
- Using HDFS with Apache Spark on Amazon EC2
- How to get raw hadoop metrics
- How to output multiple values with the same key in reducer?
- Loading chararray from embedded JSON using Pig
- Oozie Pig action stuck in PREP state and job is in RUNNING state
- InstanceProfile is required for creating cluster - create python function to install module
- mapreduce job not setting compression codec correctly
- What does namespace and block pool mean in MapReduce 2.0 YARN?
- Hadoop distributed mode
- Building apache hadoop 2.6.0 throwing maven error
- I am using Hbase 1.0.0 and Apache phoenix 4.3.0 on CDH5.4. When I restart Hbase regionserver is down
Related Questions in XML-PARSING
- Getting deeply embedded XML element values
- groovy xml namespace definition used in attribute value lost after XmlParse/serialize
- Is this file an XML or HTML file? How can I parse it?
- How to find the end of an XML document in a stream with expat?
- How to get the value of mixed of array and objects
- LibXML : colon in removeAttribute and value in getAttribute
- Parsing xml in Javascript iterate through child nodes
- XML External Entity Injection (Input Validation and Representation, Data Flow)
- What is the best way to replace the punctuation in tag names?
- How to print an empty XML element in perl
- Acessing elements from AMAZON XML API in Excel VBA
- xml parsing error (xpath, HTMLagilitypack)
- XML Namespace URI with HTTPS?
- Extracting data from xml in SQL query
- Parsing large XML file in R is very slow
Related Questions in FASTAVRO
- How do I decode an Avro message in Python?
- Big Query parsing error while reading snappy compressed avro file
- Is there a way to write a headless Avro message to a file without deserializing its binary contents in Python?
- ValidationError while validating data against schema FastAvro
- Processing Multiple AVRO (avsc files) which are in different directory and refer each other using python (fastavro)
- Fastavro fails to parse Avro schema with enum
- What is the best way to upgrade avro files (stored on GCS) having older schemas (containing "default":"null") to newer formats (with "default":null)
- How to normalize decimal values while iterating over dataframe rows using toLocalIterator
- Changing schema of avro file when writing to it in append mode
- How do I get fastavro to support logical types?
- fastavro - Convert json file into avro file
- Trouble installing packages googleclient and fastavro
- Deserialization, fixed data type in Avro
- how to serialize large file more than 5 GB to avro?
- Confluent Kafka python schema parser causes conflict with fastavro
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The whole point in serialization is to not to load or handle big files at once. you need to split your file in smaller "chunks" then serialize them.
you can use Avro DataFileReader from avro.datafile package or reader from fastavro package.