questions/apache-spark
Hi, foreach() operation is an action. It does not ...READ MORE
Hey, sortByKey() is a transformation. It returns an RDD sorted ...READ MORE
Hey, You can launch spark application in four ...READ MORE
Hi, To launch spark application in cluster mode, ...READ MORE
Hi, If you have a file with id ...READ MORE
Hi, Paired RDD is a distributed collection of ...READ MORE
Suppose you have two dataset results( id, ...READ MORE
Try this code, it worked for me: val ...READ MORE
Hi, Hive contains significant support for Apache Spark, ...READ MORE
Hey, A sparse vector is used for storing ...READ MORE
Can anyone explain how to define SparkConf? READ MORE
You need to declare the variable which ...READ MORE
Hey @Esha, you can use this code. ...READ MORE
The problem is probably with the command. ...READ MORE
Hi, This reverses the order of elements in ...READ MORE
Hey, The method List.fill() creates a list and ...READ MORE
Hey, Scala uses the method copy() to carry ...READ MORE
Hey, You can use below code to access variables ...READ MORE
Hey, You can follow this below solution for ...READ MORE
Hey, It already has SparkContent.union and it does know how to ...READ MORE
Hey, Use SparkContext.union(...) instead to union many RDDs at once You ...READ MORE
Hi, Traits are basically Scala's workaround for the ...READ MORE
Refer to the below command: val input_df = ...READ MORE
Hi, Scala provides a helper class, called App, that ...READ MORE
As is widely used, and has different ...READ MORE
Hey, Scala introduces a new object keyword, which is used ...READ MORE
Since the file is in HDFS so ...READ MORE
1) First we loaded the data to ...READ MORE
Hey, To format a string, use the .format ...READ MORE
Hey, Scala allows the definition of a higher-order function. These ...READ MORE
Hi, Here is an example you can follow: scala> ...READ MORE
Hey, Yes, there are two ways of doing ...READ MORE
Hey, There are two ways to find the ...READ MORE
Hey, Here is the example of which will return ...READ MORE
Hey, You can follow this code: scala> var s=Set(1,4,4,3) s: ...READ MORE
Seems like Spark hadoop daemons are not ...READ MORE
The error message you have shared with ...READ MORE
Try executing the below code, def readExcel(file: String): ...READ MORE
Though there is nothing wrong with the ...READ MORE
Try this, it should work: > from pyspark.sql.functions ...READ MORE
Hi, You can assign a Tuple to a ...READ MORE
Hey, The Map.contains() method will tell you if ...READ MORE
Hey, You can concatenate/join two Maps in more than ...READ MORE
Hi, You can either declare an empty Scala ...READ MORE
1. We will check whether master and ...READ MORE
Hey, There is one main difference. This statement ...READ MORE
Hey, When we try to compare two instances ...READ MORE
Try this code: val rdd= sc.textFile (“file.txt”, 5) rdd.partitions.size Output ...READ MORE
Hey, Scala executes a val when we define ...READ MORE
Hey, Scala case classes let us model immutable data. ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.