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>");