Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经下载了价值 1GB 的推文,并想使用 pig 分析相同的内容,我如何使用 PIG 读取推文的 json 格式,我正在学习 PIG,任何指针都会有很大帮助。人们谈论使用 PigJsonLoader(),但这不是 piggybank 的一部分。
为什么要绑定到 PiggyBank?您可以使用 ElephantBird 的 com.twitter.elephantbird.pig.piggybank.JsonStringToMap,它可以帮助您更动态地做事。它不会解决你所有的问题(例如包),但它很容易使用。