I have to cross join 2 dataframe in Spark 2.0 I am encountering below error:
User class threw exception:
org.apache.spark.sql.AnalysisException: Cartesian joins could be prohibitively expensive and are disabled by default. To explicitly enable them, please set spark.sql.crossJoin.enabled = true;
Please help me where to set this configuration, I am coding in eclipse.