在Spark-2.0中,创建火花会话的最佳方法是什么。因为在Spark-2.0和Cassandra中,API已经被重新加工,本质上是反对SqlContext (也包括CassandraSqlContext)。因此,对于执行SQL- -要么我创建一个Cassandra会话(com.datastax.driver.core.Session) and use execute( " ")。或者我必须创建一个SparkSession (org.apache.spark.sql.SparkSession) and execute sql(String sqlText)方法。
我也不知道SQ