Questions tagged as 'scala'

0
answers

How do I convert a code into scala to pyspark?

Hello I need help with a code that I'm doing, it turns out that I must define a row wn pyspark object, but I have a code in scala that does that but I must do it in python def getRow(x : String) : Row={ val columnArray = new Array[String](95)...
asked by 15.05.2018 / 18:19
0
answers

java.lang.ClassNotFoundException: org.apache.spark.sql.ForeachWriter

When running a Scala file that uses the Spark ForeachWriter type I get the following stack trace:    (run-main-0) java.lang.NoClassDefFoundError:   org / apache / spark / sql / ForeachWriter java.lang.NoClassDefFoundError:   org / apache / sp...
asked by 27.04.2018 / 00:29
0
answers

Error due to insufficient memory to run algorithm in ApacheSpark

The error is:    System memory 259522560 must be at least 471859200. Increase the heap size by using the --driver-memory or spark.driver.memory option in the Spark configuration. This is my code and the error is about the spark variable o...
asked by 20.03.2018 / 18:57
1
answer

How to create a binary search on a file in SCALA

Good morning everyone, I have the following file: 10,44,22 10,47,12 15,38,3 15,41,30 16,44,15 16,47,18 22,38,21 22,41,42 34,44,40 34,47,36 40,38,39 40,41,42 45,38,27 45,41,30 46,44,45 46,47,48 About this file I want to make different querie...
asked by 20.06.2017 / 23:19
1
answer

JSONWebTokens on Scalatra

I am trying to add security to my web application using JWT in Scalatra. At the moment I am using Scentry and I have the User-Password and RememberMe strategies defined and working. My intention is to change the RememberMe strategy, which curren...
asked by 27.03.2016 / 14:16
2
answers

Help about an MVC playframework error. I am using Java, Scala, HTML Javascript

Help, I'm using MVC playframework I want to record data from a form using AJAX by sending it to a JAVA method, but at the time of saving it marks me the following error that is shown in the following . and it does not save the data. This is...
asked by 30.10.2017 / 16:51