在獨立蜂巢,SessionState
有一些配置參數,從hive-site.xml
所有可設置:
SCRATCHDIR("hive.exec.scratchdir", "/tmp/hive",
"HDFS root scratch dir for Hive jobs which gets created with write all (733) permission. " +
"For each connecting user, an HDFS scratch dir: ${hive.exec.scratchdir}/<username> is created, " +
"with ${hive.scratch.dir.permission}."),
LOCALSCRATCHDIR("hive.exec.local.scratchdir",
"${system:java.io.tmpdir}" + File.separator + "${system:user.name}",
"Local scratch space for Hive jobs"),
DOWNLOADED_RESOURCES_DIR("hive.downloaded.resources.dir",
"${system:java.io.tmpdir}" + File.separator + "${hive.session.id}_resources",
"Temporary local directory for added resources in the remote file system."),
HIVEHISTORYFILELOC("hive.querylog.location",
"${system:java.io.tmpdir}" + File.separator + "${system:user.name}",
"Location of Hive run time structured log file")
我不熟悉星火究竟如何嵌入蜂巢,但我敢肯定有一個hive-site.xml(一鏈接是測試conf),這是控制值爲hive.exec.scratchdir
,hive.exec.local.scratchdir
和其他。
我認爲這是'spark.sql.warehouse.dir'。請看看參數。你可以使用'SparkSession.config()'設置它# – philantrovert
@philantrovert nope :( –