mapreduce的OrcOutputFormat与OrcNewOutputFormat

1.两个orc格式的依赖包不同
OrcOutputFormat----org.apache.orc.mapreduce.OrcOutputFormat
OrcNewOutputFormat—org.apache.hadoop.hive.ql.io.orc

2.schema大小写敏感
OrcOutputFormat对于输出的schema大小写敏感
OrcNewOutputFormat对于输出的schema大小写不敏感 且输出全不转成小写!!!

注:使用OrcOutputFormat时conf要设定orc.mapred.output.schema值

conf.set("orc.mapred.output.schema", "struct<test:string>");
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章