Showing posts with the label cassandra

[FIXED] Different spark-sql results for data field type timestamp

Issue Why I am getting different count results, when I am using 'T' separator for timestamp…

[FIXED] Spark Session Catalog Failure

Issue I'm reading data in batch from a Cassandra database & also in streaming from Azure Ev…

[FIXED] Can't get CassandraTableScanRDD with akka

Issue I'm trying to make an API Rest with Akka. One of the entry point will return data from my…

[FIXED] spark join causing column id ambiguity error

Issue I have following dataframes: accumulated_results_df |-- company_id: string (nullable = tru…

[FIXED] Spark Dataframe.cache() behavior for changing source

Issue My use case: Create a dataframe from a cassandra table. Create a output dataframe by fil…

[FIXED] Spark - sortWithInPartitions over sort

Issue Below is the sample dataset representing the employees in_date and out_date. I have to obtain…

[FIXED] Why does loading dataset from Cassandra fail with NullPointerException?

Issue I am trying to read/write to Cassandra from Spark and using these dependencies: "com.d…

[FIXED] How can I convert Iterable <com.datastax.driver.core.Row> to Dataset?

Issue I use Spark 2.0 and Scala 2.11.8. I have a Cassandra ResultSet from a select query and I wa…

[FIXED] How to convert RDD[CassandraRow] to DataFrame?

Issue Currently this is how I am transforming Cassandrarow RDD to dataframe: val ssc = new Stream…

[FIXED] How to access SparkContext on executors to save DataFrame to Cassandra?

Issue How can I use SparkContext (to create SparkSession or Cassandra Sessions) on executors? I…

[FIXED] Error: value cassandraFormat is not a member of org.apache.spark.sql.DataFrameWriter

Issue Checking the repo on github I see cassandraFormat href="https://github.com/datastax/spa…

[FIXED] org.apache.spark.sql.Dataset.foreachPartition() Example with Java 7

Issue I have org.apache.spark.sql.Dataset and intend to iterate through each row. I see that there…

[FIXED] pyspark datastax cassandra connector keeps connecting to localhost

Issue I am trying to connect pyspark to cassandra using datastax driver conf = SparkConf()\ .se…

[FIXED] Spark2 session for Cassandra , sql queries

Issue In Spark-2.0 what is the best way to create a Spark session. Because in both Spark-2.0 and C…

[FIXED] Remove square brackets [] from Array in scala

Issue I have the date with square brackets [2014-11-08 06:27:00.0] , and a want remove it. Expect…

[FIXED] How to retrieve Metrics like Output Size and Records Written from Spark UI?

Issue How do I collect these metrics on a console (Spark Shell or Spark submit job) right after the…

[FIXED] How to query JSON data column using Spark DataFrames?

Issue I have a Cassandra table that for simplicity looks something like: key: text jsonData: text…

[FIXED] Scala initialise sc.parallelise inside "if block" and execute outside loop

Issue I've a following code :- case class event(id: String, date: String) object test { de…