Jump to content

80 GB files xml to CSV how to convert


kevinUsa

Recommended Posts

4 hours ago, phoenix_nebula said:

Option 1: use sax parser and streaming in java

Option 2: Apache tika 

Extension to Option 1:

Non-blocking I/O is there in Java8+, that comes handy.

Also use streams provided by Java8+, that are very good. Not having enough time now, but I remember I did this for at least a 20GB XML file.

 

Link to comment
Share on other sites

well  I used python to convert xml to csv.

 than I used  formed a hd insights cluster ,

 converted the data from .csv to .gz than uploaded to azure blobs

than used pig to clean all the null values than  used Hcaster to moved the data from pig to  hive than permformed the queries 

 

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...