我使用 hive(2.1.1) 钩子(Hook),如下所示:
set hive.exec.post.hooks=com.test.HiveTestHook;create table tmp.hive_hook_test(x int);
我想在 spark sql(2.4.0) 中运行这个 sql,但我发现钩子(Hook)没有被调用。
我像这样运行 spark sql:
spark-sql -e 'set spark.hadoop.hive.exec.post.hooks=com.test.HiveTestHook;create table tmp.hive_hook_test(x int);'
所以我想知道如何在spark sql中使用hive hook?
最佳答案
Spark不支持hive hook,详情引用:https://issues.apache.org/jira/browse/SPARK-18879
关于apache-spark - 如何在 spark sql 中使用 hive 钩子(Hook),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58535298/