Top "Scala" questions

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

How to turn off INFO logging in Spark?

I installed Spark using the AWS EC2 guide and I can launch the program fine using the bin/pyspark script …

python scala apache-spark hadoop pyspark
Scala Doubles, and Precision

Is there a function that can truncate or round a Double? At one point in my code I would like …

scala double truncate rounding
What is Scala's yield?

I understand Ruby and Python's yield. What does Scala's yield do?

scala functional-programming yield
Scala how can I count the number of occurrences in a list

val list = List(1,2,4,2,4,7,3,2,4) I want to implement it like this: list.count(2) (returns 3).

scala
What is the difference between Scala's case class and class?

I searched in Google to find the differences between a case class and a class. Everyone mentions that when you …

scala functional-programming case-class
How to read files from resources folder in Scala?

I have a folder structure like below: - main -- java -- resources -- scalaresources --- commandFiles and in that …

scala scala-collections
java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries. spark Eclipse on windows 7

I'm not able to run a simple spark job in Scala IDE (Maven spark project) installed on Windows 7 Spark core …

eclipse scala apache-spark
Understanding implicit in Scala

I was making my way through the Scala playframework tutorial and I came across this snippet of code which had …

scala syntax playframework keyword
How to check for null in a single statement in scala?

In my scala code: QueueManager.add(getObject) where getObject is a method that returns an object of type QueueObject. def …

scala null inline
Install sbt on ubuntu

I have installed sbt on Ubuntu. :~/bin/sbt/bin$ ls classes sbt sbt-launch.jar target jansi.jar sbt.bat sbt-launch-lib.…

scala debian ubuntu-12.04 sbt deb