无法读取pig中的大json数据文件

ttisahbt  于 2021-06-24  发布在  Pig
关注(0)|答案(0)|浏览(250)

我在练习twitter数据。我的数据在这里,https://drive.google.com/file/d/0bw1liibsl0xuqtfkmzltukputlk/view
我想从数据中提取id和文本,我按如下方式加载,但数据没有被读取。我已经注册了所有必需的jar。
a1 = LOAD '/user/training/my_hdfs/tweet.json' USING com.twitter.elephantbird.pig.load.JsonLoader('-nestedLoad') AS (tw:map[]); DUMP a1; Input(s): Successfully read 0 records (41027 bytes) from: "/user/training/my_hdfs/tweet.json" Output(s): Successfully stored 0 records in: "hdfs://localhost:8020/tmp/temp559014472/tmp1609007351" 请帮帮我!

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题