Github user cloud-fan commented on the pull request: https://github.com/apache/spark/pull/8687#issuecomment-140479545 I test it locally with these code: ``` sparkContext.conf.set("spark.speculation", "true") sparkContext.hadoopConfiguration.set("mapred.output.committer.class", "org.apache.spark.sql.hive.execution.DirectDummyOutputCommitter") sparkContext.makeRDD(Seq(1, 2)).saveAsTextFile("tmp") sparkContext.hadoopConfiguration.set("mapreduce.job.outputformat.class", "org.apache.spark.sql.hive.execution.DummyOutputFormatter") sparkContext.hadoopConfiguration.set("mapred.output.dir", "tmp") sparkContext.makeRDD(Seq(1 ->"a", 2 -> "b")).saveAsNewAPIHadoopDataset(sparkContext.hadoopConfiguration) ``` `DummyOutputFormatter` is a subclass of `FileOutputFormat` but override the `getOutputCommitter` method to return a customized `OutputCommitter` with "Direct" in its name. And the warning message do get logged. The hive write path should be similar.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org