0
votes

I am using spark 2.2 and oozie . And I have schedule the spark-action in the oozie through shell-script i.e I am calling shell script in oozie which contains the spark-submit command.

But when I am running the job , it gives me below INFO statement: Setting hive.metastore.warehouse.dir ('null') to the value of spark.sql.warehouse.dir ('/user/hive/warehouse').

Now as the property - hive.metastore.warehouse.dir = null , my job is not able to identify the tables and databases .

How to fix it or set this property . I tried setting the below property in hive-site.xml , but still facing same error

    <property>
        <name>hive.metastore.warehouse.dir</name>
        <value>/user/hive/warehouse</value>
    </property>
1

1 Answers

0
votes

As the above was run using oozie , the error was that the hive.xml has not been passed along with the job .

Passing the correct hive.xml resolved the above issue.