You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "shijinkui (JIRA)" <ji...@apache.org> on 2016/01/21 09:29:39 UTC

[jira] [Created] (SPARK-12953) RDDRelation write set mode will be better to avoid error "pair.parquet already exists"

shijinkui created SPARK-12953:
---------------------------------

             Summary: RDDRelation write set mode will be better to avoid error "pair.parquet already exists"
                 Key: SPARK-12953
                 URL: https://issues.apache.org/jira/browse/SPARK-12953
             Project: Spark
          Issue Type: Wish
          Components: SQL
            Reporter: shijinkui
             Fix For: 1.6.1


It will be error if not set Write Mode when execute test case `RDDRelation.main()`

Exception in thread "main" org.apache.spark.sql.AnalysisException: path file:/Users/sjk/pair.parquet already exists.;
	at org.apache.spark.sql.execution.datasources.InsertIntoHadoopFsRelation.run(InsertIntoHadoopFsRelation.scala:76)
	at org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:58)
	at org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:56)
	at org.apache.spark.sql.execution.ExecutedCommand.doExecute(commands.scala:70)
	at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$5.apply(SparkPlan.scala:132)
	at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$5.apply(SparkPlan.scala:130)
	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:150)
	at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:130)
	at org.apache.spark.sql.execution.QueryExecution.toRdd$lzycompute(QueryExecution.scala:55)
	at org.apache.spark.sql.execution.QueryExecution.toRdd(QueryExecution.scala:55)
	at org.apache.spark.sql.execution.datasources.ResolvedDataSource$.apply(ResolvedDataSource.scala:256)
	at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:148)
	at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:139)
	at org.apache.spark.sql.DataFrameWriter.parquet(DataFrameWriter.scala:329)
	at net.pusuo.gs.sql.RDDRelation$.main(RDDRelation.scala:65)
	at net.pusuo.gs.sql.RDDRelation.main(RDDRelation.scala)





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org