JSON 文件的 Hadoop

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9942483/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 18:15:13  来源:igfitidea点击:

Hadoop for JSON files

jsonhadoop

提问by MaVe

Would you have any hints on what would be the best way to deal with files containing JSON entries and Hadoop?

您对处理包含 JSON 条目和 Hadoop 的文件的最佳方法有什么提示吗?

采纳答案by Tejas Patil

Try this

试试这个

You can also use JAQL. Its the easiest way to deal with JSON in Map Reduce. Bad thing is that you will have to learn JAQL (unless you know it already) !!

您还可以使用JAQL。它是在 Map Reduce 中处理 JSON 的最简单方法。不好的是你必须学习 JAQL(除非你已经知道了)!!

回答by Chris White

There's a nice article on this from the Hadoop in Practice book:

Hadoop in Practice 书中有一篇很好的文章:

回答by nil

Twitter's elephant-birdlibrary has a JsonStringToMap class which you can use with Pig.

Twitter 的大象鸟库有一个 JsonStringToMap 类,您可以将其与 Pig 一起使用。

回答by Jickson T George

MongoDBis a good option when you are dealing with JSON. MongoDB and Hadoop are a powerful combination and can be used together to deliver complex analytics and data processing for data stored in MongoDB. http://www.mongodb.org/

当您处理 JSON 时,MongoDB是一个不错的选择。MongoDB 和 Hadoop 是一个强大的组合,可以一起使用,为存储在 MongoDB 中的数据提供复杂的分析和数据处理。 http://www.mongodb.org/