包含在$ SPARK_HOME中的hive-site.xml是什么样的? [英] What's hive-site.xml including in $SPARK_HOME looks like?

查看:660
本文介绍了包含在$ SPARK_HOME中的hive-site.xml是什么样的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是蜂巢入门的初学者,当我开始启动spark工作并从配置单元读取数据时发生了一些事情(无法找到表)。我不在$ SPARK_HOME / conf中设置hive-site.xml?



提交spark job命令在这里

  bin / spark- submit --master local [*] --driver-memory 8g --executor -memory 8g --class com.ctrip.ml.client.Client / root / GitLab / di-ml-tool / target / di-ml-tool -1.0-SNAPSHOT.jar 


解决方案

有一个模板文件必须转换成您自己的网站文件。



https://cwiki.apache.org/confluence/display/Hive/AdminManual+Configuration#AdminManualConfiguration-hive-site.xmlandhive-default.xml.template



因此,首先您必须通过复制hive-default.xml.template来创建您自己的hive-site.xml文件,然后您可以从spark中使用它。

如果您不想使用默认文件,则可以使用先前答案中显示的任何以前的配置。

I am a beginner at hive, something happened (can not find table) when I start spark job and read data from hive. I don't set hive-site.xml in $SPARK_HOME/conf ?

submit the spark job command is here

bin/spark-submit --master local[*] --driver-memory 8g --executor-memory 8g  --class com.ctrip.ml.client.Client /root/GitLab/di-ml-tool/target/di-ml-tool-1.0-SNAPSHOT.jar

解决方案

On your hive distribution you have a template file that must convert into your own site file.

https://cwiki.apache.org/confluence/display/Hive/AdminManual+Configuration#AdminManualConfiguration-hive-site.xmlandhive-default.xml.template

So first of all you must create your own hive-site.xml file by copying the hive-default.xml.template and then you can use it from spark.

If you don't want to use the default file, you can use any of the previous configurations shown on the previous answers.

这篇关于包含在$ SPARK_HOME中的hive-site.xml是什么样的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆