spark出现crossJoin笛卡尔积报错异常解决use the CROSS JOIN syntax to allow cartesian products between these

异常信息如下:

spark出现crossJoin笛卡尔积报错异常解决use the CROSS JOIN syntax to allow cartesian products between these_第1张图片

原因:

        Spark 2.x版本中默认不支持笛卡尔积操作

解决办法:

        通过参数spark.sql.crossJoin.enabled开启,方式如下:

spark.conf.set("spark.sql.crossJoin.enabled", "true")

你可能感兴趣的:(spark,大数据)