Scala is a general-purpose programming language principally targeting the Java Virtual Machine.
Suppose I'm doing something like: val df = sqlContext.load("com.databricks.spark.csv", Map("path" -> "cars.csv", "header" …
scala apache-spark apache-spark-sqlI would like to read a CSV in spark and convert it as DataFrame and store it in HDFS with …
scala apache-spark hadoop apache-spark-sql hdfsHow can I convert an RDD (org.apache.spark.rdd.RDD[org.apache.spark.sql.Row]) to a Dataframe org.…
scala apache-spark apache-spark-sql rddI tried df.orderBy("col1").show(10) but it sorted in ascending order. df.sort("col1").show(10) also sorts in descending …
scala apache-spark apache-spark-sqlI am using https://github.com/databricks/spark-csv , I am trying to write a single CSV, but not able to, …
scala csv apache-spark spark-csvI'm attempting to print the contents of a collection to the Spark console. I have a type: linesWithSessionId: org.apache.…
scala apache-sparkHow in the world do you get just an element at index i from the List in scala? I tried …
scalaWhat's a simple and canonical way to read an entire file into memory in Scala? (Ideally, with control over character …
scalaI can't add an element of type T into a list List[T]. I tried with myList ::= myElement but it …
arrays scala