Github user litao-buptsse commented on the pull request:
https://github.com/apache/spark/pull/4380#issuecomment-141643159
@scwf @yhuai It works in "local" mode, but not well in "yarn-client" mode.
```
15/09/19 18:03:48 ERROR thriftserver.SparkSQLDriver: Failed in [insert
overwrite directory 'file://[337/9806]
p/0919' select query from custom.common_pc_pv where logdate='2015091905'
limit 10]
org.apache.spark.SparkException: Job aborted due to stage failure: Task 0
in stage 5.0 failed 4 times, most r
ecent failure: Lost task 0.3 in stage 5.0 (TID 71,
cloud101411240.wd.nm.ss.nop.sogou-op.org): org.apache.hado
op.hive.ql.metadata.HiveException: java.io.IOException: Mkdirs failed to
create file:/search/tmp/0919/_tempor
ary/0/_temporary/attempt_201509191803_0005_m_000000_3 (exists=false,
cwd=file:/search/hadoop02/yarn_local/use
rcache/spark/appcache/application_1442391298043_56782/container_1442391298043_56782_01_000008)
at
org.apache.hadoop.hive.ql.io.HiveFileFormatUtils.getHiveRecordWriter(HiveFileFormatUtils.java:249)
at
org.apache.spark.sql.hive.SparkHiveWriterContainer.initWriters(hiveWriterContainers.scala:115)
at
org.apache.spark.sql.hive.SparkHiveWriterContainer.executorSideSetup(hiveWriterContainers.scala:87
)
at
org.apache.spark.sql.hive.SaveAsHiveFile$class.writeToFile$1(SaveAsHiveFile.scala:84)
at
org.apache.spark.sql.hive.SaveAsHiveFile$$anonfun$saveAsHiveFile$3.apply(SaveAsHiveFile.scala:68)
at
org.apache.spark.sql.hive.SaveAsHiveFile$$anonfun$saveAsHiveFile$3.apply(SaveAsHiveFile.scala:68)
at
org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:66)
at org.apache.spark.scheduler.Task.run(Task.scala:88)
at
org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:214)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Mkdirs failed to create
file:/search/tmp/0919/_temporary/0/_temporary/attempt
_201509191803_0005_m_000000_3 (exists=false,
cwd=file:/search/hadoop02/yarn_local/usercache/spark/appcache/ap
plication_1442391298043_56782/container_1442391298043_56782_01_000008)
at
org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:442)
at
org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:428)
at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:908)
at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:801)
at
org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat.getHiveRecordWriter(HiveIgnoreKeyTextOu
tputFormat.java:80)
at
org.apache.hadoop.hive.ql.io.HiveFileFormatUtils.getRecordWriter(HiveFileFormatUtils.java:261)
at
org.apache.hadoop.hive.ql.io.HiveFileFormatUtils.getHiveRecordWriter(HiveFileFormatUtils.java:246)
... 11 more
Driver stacktrace:
at
org.apache.spark.scheduler.DAGScheduler.org$apache$spark$scheduler$DAGScheduler$$failJobAndIndepen
dentStages(DAGScheduler.scala:1283)
```
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]