Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spark 读取hive idea 运行时 不能初始化 #1

Open
HbnKing opened this issue Dec 11, 2018 · 1 comment
Open

spark 读取hive idea 运行时 不能初始化 #1

HbnKing opened this issue Dec 11, 2018 · 1 comment
Labels

Comments

@HbnKing
Copy link
Owner

HbnKing commented Dec 11, 2018

问题描述

Error while instantiating 'org.apache.spark.sql.hive.HiveSessionStateBuilder':
.....
unable to create log directory  "............"
.....

wechatimg1916

@HbnKing HbnKing added the hive label Dec 11, 2018
@HbnKing
Copy link
Owner Author

HbnKing commented Dec 11, 2018

因为 在本地运行 spark 读取 hive 的 数据
拷贝了 三个文件 到 resource 文件

hive-site.xml 
hdfs-site.xml
core-site.xml

其中hive 配置了 大量的目录文件 比如

<property>
        <name>hive.exec.local.scratchdir</name>
        <value>/Users/wh/IdeaProjects/warehouse/hive/scratchdir</value>
        <description>Local scratch space for Hive jobs</description>
    </property>
    <property>
        <name>hive.downloaded.resources.dir</name>
        <value>/Users/wh/IdeaProjects/warehouse/hive/resources</value>
        <description>Temporary local directory for added resources in the remote file system.</description>
    </property>

部分读取 会在本地创建 日志目录等 但是本地 由于权限的问题 不能创建 所以导致失败
可以修改local 的文键配置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant