What's hive-site.xml including in $SPARK_HOME looks like?

前端 未结 4 1700
一向
一向 2021-01-24 19:32

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

4条回答
  •  太阳男子
    2021-01-24 19:44

    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.

提交回复
热议问题