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>");
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章