[
https://issues.apache.org/jira/browse/SPARK-15034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15301508#comment-15301508
]
koert kuipers commented on SPARK-15034:
---------------------------------------
this just hit me today. i build spark 2.0.0-SNAPSHOT without hive support and
launch spark-shell on yarn.
i get this error:
{noformat}
16/05/26 00:16:34 WARN datasources.DataSource: Error while looking for metadata
directory.
org.apache.spark.SparkException: Unable to create database default as failed to
create its directory
hdfs://namenode:8020/usr/local/lib/spark-2.0.0-SNAPSHOT-bin-cdh5.4/spark-warehouse
{noformat}
why is spark trying to connect to a warehouse? i did not build with hive i
think, unless i messed up the mvn flags...
also the weird thing about the path where it is trying to create
spark-warehouse is that when i launched spark-shell my working-directory on
local filesystem was /usr/local/lib/spark-2.0.0-SNAPSHOT-bin-cdh5.4, but
somehow it seems to have turned that into a hdfs path and added spark-warehouse
to it. it is unlikely such a path will exist.
maybe a better guess is to use the users home dir on hdfs, e.g.
hdfs://user/<username>/spark-warehouse?
> Use the value of spark.sql.warehouse.dir as the warehouse location instead of
> using hive.metastore.warehouse.dir
> ----------------------------------------------------------------------------------------------------------------
>
> Key: SPARK-15034
> URL: https://issues.apache.org/jira/browse/SPARK-15034
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Reporter: Yin Huai
> Assignee: Yin Huai
> Labels: release_notes, releasenotes
> Fix For: 2.0.0
>
>
> Starting from Spark 2.0, spark.sql.warehouse.dir will be the conf to set
> warehouse location. We will not use hive.metastore.warehouse.dir.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]