1.先看问题:
FAILED: SemanticException Cartesian products are disabled for safety reasons. If you know what you are doing, please sethive.strict.checks.cartesian.product to false and that hive.mapred.mode is not set to ‘strict’ to proceed. Note that if you may get errors or incorrect results if you make a mistake while using some of the unsafe features.
2解决办法:
set hive.strict.checks.cartesian.product;
# 首先查看hive.strict.checks.cartesian.product
set hive.strict.checks.cartesian.product=false;
# 设置hive.strict.checks.cartesian.product为false
完成上述步骤即可。
本文解决Hive中因安全原因默认禁用的Cartesian product问题,通过调整配置hive.strict.checks.cartesian.product为false,使用户在了解风险的情况下能够继续使用此特性。
885

被折叠的 条评论
为什么被折叠?



