Top "Scala" questions

Scala is a general-purpose programming language principally targeting the Java Virtual Machine.

Extract column values of Dataframe as List in Apache Spark

I want to convert a string column of a data frame to a list. What I can find from the …

scala apache-spark apache-spark-sql
Difference between object and class in Scala

I'm just going over some Scala tutorials on the Internet and have noticed in some examples an object is declared …

scala class object
How do I break out of a loop in Scala?

How do I break out a loop? var largest=0 for(i<-999 to 1 by -1) { for (j<-i …

scala for-loop break tail-recursion
Renaming column names of a DataFrame in Spark Scala

I am trying to convert all the headers / column names of a DataFrame in Spark-Scala. as of now I come …

scala apache-spark dataframe apache-spark-sql
How to load local file in sc.textFile, instead of HDFS

I'm following the great spark tutorial so i'm trying at 46m:00s to load the README.md but fail to …

scala apache-spark
Task not serializable: java.io.NotSerializableException when calling function outside closure only on classes not objects

Getting strange behavior when calling function outside of a closure: when function is in a object everything is working when …

scala apache-spark serialization
how to filter out a null value from spark dataframe

I created a dataframe in spark with the following schema: root |-- user_id: long (nullable = false) |-- event_id: …

scala apache-spark apache-spark-sql spark-dataframe
How to save DataFrame directly to Hive?

Is it possible to save DataFrame in spark directly to Hive? I have tried with converting DataFrame to Rdd and …

scala apache-spark hive apache-spark-sql
Scala vs. Groovy vs. Clojure

Can someone please explain the major differences between Scala, Groovy and Clojure. I know each of these compiles to run …

scala groovy clojure language-comparisons
What are the best use cases for Akka framework

I have heard lots of raving about Akka framework (Java/Scala service platform), but so far have not seen many …

java scala asynchronous use-case akka