Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged scala

0 votes
1.3k views
1 answer
    I created a dataframe in spark with the following schema: root |-- user_id: long (nullable = false) |-- event_id: ... how can I fix it? Thanks See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I am using SBT 0.12.0. I have read other answers on stack overflow and followed them, however none of them ... when doing both testing and run? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I've been trying to find a reasonable way to test SparkSession with the JUnit testing framework. While there ... sensible error will be thrown. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I just got started with Scala/LiftWeb/Sbt developing, and I'd like to import a Sbt project in IntelliJ Idea. ... Can anyone help me with this? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    Let's consider a scenario, we have to run the performance test for "create an account api" which takes ... functional test to performance test. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I am using Apache Spark 2.0 Dataframe/Dataset API I want to add a new column to my dataframe from List ... in reality contains more columns. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I have some code like this: class ReflectiveJsonFormat[T:TypeTag] extends JsonFormat[T] { def write(x: T) : ... you otherwise fix this code? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    In Programming in Scala the authors write that Scala's == function compares value equality instead of reference ... function work on arrays? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    abstract class IntTree object Empty extends IntTree case class NonEmpty(elem: Int, left: IntTree, right: IntTree) ... am I missing here? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I am unsure if this is a bug, so if you do something like this // d:spark.RDD[String] d.distinct().map(x => d ... fine. I am using spark 0.6.1. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    In my Scala app, I have a function that calls a function which returns a result of type Future[T]. I ... FactorialCalc.factorial(4), 5.seconds) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I am running Spark-1.4.0 pre-built for Hadoop-2.4 (in local mode) to calculate the sum of squares ... explain what exactly is happening here? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I am running an spark cluster on google cloud and I upload a configuration file with each job. What is ... .properties --jars my.jar See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    I am using _ as placeholder for creating anonymous function, and the problem is I cannot predict how Scala is going ... this? What's the rule ? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.4k views
1 answer
    Let def h(a: AnyRef*) = a.mkString(",") h: (a: AnyRef*)String and so h("1","2") res: String = 1,2 ... 1 and 2.11.1. To ask on a workaround. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I have the following code that works in a console app when referencing "org.reactivemongo" %% "play2-reactivemongo" % ... What am I doing wrong? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    Suppose I have this: class String2(val x:String) { def *(times:Int) : String = { val builder = new StringBuilder( ... ), but I think it will do. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    Using Spark 1.5.0 and given the following code, I expect unionAll to union DataFrames based on their column name ... Sounds like a serious bug!? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I often want to do some customization before one of the standard tasks are run. I realize I can make new ... a standard tasks are invoked ?. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I have a data frame with a column of unix timestamp(eg.1435655706000), and I want to convert it to data ... " is malformed at "6000" See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    Given a map where a digit is associated to several characters scala> val conversion = Map("0" -> List(" ... same result for any sequence length? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    val items = List("a", "b", "c") sqlContext.sql("select c1 from table") .filter($"c1".isin(items)) ... ".isin(items)) .collect .foreach(println) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I have a CSV in which a field is datetime in a specific format. I cannot import it directly in my ... the schema for the Dataframe again. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I just noticed this construct somewhere on web: val list = List(someCollection: _*) What does _* mean? Is ... advantage of this syntax sugar? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I have thousands of small files in HDFS. Need to process a slightly smaller subset of files (which is ... .apply(TraversableLike.scala:244) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I'm not able to run a simple spark job in Scala IDE (Maven spark project) installed on Windows 7 Spark ... .FrameDemo.main(FrameDemo.scala)<br> See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I've got an sbt (Scala) project that currently pulls artifacts from the web. We'd like to move towards a ... -directory is not viable.) Thanks! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I tried to translate the following line of Scala to Java 8 using the Streams API: // Scala util.Random.shuffle ... list with Java 8 Streams API? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
To see more, click for the full list of questions or popular tags.
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.6k users

...