Beautiful Spark Code

2020-03-28 Thread Zahid Rahman
me to his book. https://leanpub.com/beautiful-spark https://mungingdata.com/writing-beautiful-apache-spark2-code-with-scala/ On Sat, 28 Mar 2020, 16:49 Zahid Rahman, wrote: > Thanks for the tip! > > But if the first thing you come across > Is somebody using the trim function t

Re: BUG: spark.readStream .schema(staticSchema) not receiving schema information

2020-03-28 Thread Zahid Rahman
; Spark, and has been for many years. He, and everyone else participating in > these lists, is doing it voluntarily on their own time. They're not being > paid to handhold you and quickly answer to your every whim. > > On Sat, Mar 28, 2020, 10:46 AM Zahid Rahman wrote: > >> So t

Re: BUG: spark.readStream .schema(staticSchema) not receiving schema information

2020-03-28 Thread Zahid Rahman
; or "CSV" so copying that > wouldn't be helpful either. > > I hope this clears things up, > Russ > > On Sat, Mar 28, 2020, 12:33 AM Zahid Rahman wrote: > >> Hi, >> version: spark-3.0.0-preview2-bin-hadoop2.7 >> >> As you can see from the code : >>

Re: BUG: spark.readStream .schema(staticSchema) not receiving schema information

2020-03-28 Thread Zahid Rahman
elpful if I was reading from both MySQL and > a comma separated file for example. While the Schema is the same, the > options like ("inferSchema") do not apply to both MySql and CSV and > format actually picks whether to us "JDBC" or "CSV" so copying that >

BUG: spark.readStream .schema(staticSchema) not receiving schema information

2020-03-27 Thread Zahid Rahman
Hi, version: spark-3.0.0-preview2-bin-hadoop2.7 As you can see from the code : STEP 1: I create a object of type static frame which holds all the information to the datasource (csv files). STEP 2: Then I create a variable called staticSchema assigning the information of the schema from the

Re: OFF TOPIC LIST CRITERIA

2020-03-27 Thread Zahid Rahman
and on-topic, use > user@. > Otherwise we will block you from the lists. > > > Sean > > On Fri, Mar 27, 2020 at 9:46 PM Zahid Rahman wrote: > > > > > > Sean Owen says the criteria of these two emailing list is not help to > support some body > > who is new b

OFF TOPIC LIST CRITERIA

2020-03-27 Thread Zahid Rahman
Sean Owen says the criteria of these two emailing list is not help to support some body who is new but for people who have been using the software for a long time. He is implying I think that I should only send email when I find bugs so that I can help him in his work. A one way street. He is

Re: spark.readStream.schema(??)

2020-03-27 Thread Zahid Rahman
I found another bug. Backbutton.co.uk ¯\_(ツ)_/¯ ♡۶Java♡۶RMI ♡۶ Make Use Method {MUM} makeuse.org <http://www.backbutton.co.uk> On Sat, 28 Mar 2020 at 02:12, Zahid Rahman wrote: > > I have sorted the error anyway because I am the best there is. > It is downhill f

spark.readStream.schema(??)

2020-03-27 Thread Zahid Rahman
version: spark-3.0.0-preview2-bin-hadoop2.7 The syntax checker objects to the following argument which is what I am supposed to enter. .schema(staticSchema) However when I provide the following argument it works but I don't think that is correct. What is the correct argument for this case ?

what a plava !

2020-03-27 Thread Zahid Rahman
I was very impressed with the amount of material available from https://github.com/databricks/Spark-The-Definitive-Guide/ Over 450+ * megabytes.*

Re: Programmatic: parquet file corruption error

2020-03-27 Thread Zahid Rahman
jar and use spark-submit. > > On Thu, Mar 26, 2020 at 4:12 PM Zahid Rahman wrote: > >> Hi, >> >> When I run the code for a user defined data type dataset using case class >> in scala and run the code in the interactive spark-shell against parquet >> fi

Re: BUG: take with SparkSession.master[url]

2020-03-27 Thread Zahid Rahman
~/spark-3.0.0-preview2-bin-hadoop2.7$ sbin/start-slave.sh spark:// 192.168.0.38:7077 ~/spark-3.0.0-preview2-bin-hadoop2.7$ sbin/start-master.sh Backbutton.co.uk ¯\_(ツ)_/¯ ♡۶Java♡۶RMI ♡۶ Make Use Method {MUM} makeuse.org <http://www.backbutton.co.uk> On Fri, 27 Mar 2020 at 06:12, Zahid

Re: BUG: take with SparkSession.master[url]

2020-03-27 Thread Zahid Rahman
deployed if you > just include Spark dependency in IntelliJ? > > On Fri, Mar 27, 2020 at 1:54 PM Zahid Rahman wrote: > >> I have configured in IntelliJ as external jars >> spark-3.0.0-preview2-bin-hadoop2.7/jar >> >> not pulling anything from maven. >>

Re: BUG: take with SparkSession.master[url]

2020-03-26 Thread Zahid Rahman
ich Spark/Scala version do you use? > > On Fri, Mar 27, 2020 at 1:24 PM Zahid Rahman wrote: > >> >> with the following sparksession configuration >> >> val spark = SparkSession.builder().master("local[*]").appName("Spark Session >> take").

BUG: take with SparkSession.master[url]

2020-03-26 Thread Zahid Rahman
with the following sparksession configuration val spark = SparkSession.builder().master("local[*]").appName("Spark Session take").getOrCreate(); this line works flights.filter(flight_row => flight_row.ORIGIN_COUNTRY_NAME != "Canada").map(flight_row => flight_row).take(5) however if change the

results of taken(3) not appearing in console window

2020-03-26 Thread Zahid Rahman
I am running the same code with the same libraries but not getting same output. scala> case class flight (DEST_COUNTRY_NAME: String, | ORIGIN_COUNTRY_NAME:String, | count: BigInt) defined class flight scala> val flightDf =

Re: Need to order iterator values in spark dataframe

2020-03-26 Thread Zahid Rahman
I believe I logged an issue first and I should get a response first. I was ignored. Regards Did you know there are 8 million people in kashmir locked up in their homes by the Hindutwa (Indians) for 8 months. Now the whole planet is locked up in their homes. You didn't take notice of them either.

Programmatic: parquet file corruption error

2020-03-26 Thread Zahid Rahman
Hi, When I run the code for a user defined data type dataset using case class in scala and run the code in the interactive spark-shell against parquet file. The results are as expected. However I then the same code programmatically in IntelliJ IDE then spark is give a file corruption error.

Re: Unsubscribe

2020-03-22 Thread Zahid Rahman
To unsubscribe e-mail: dev-unsubscr...@spark.apache.org Backbutton.co.uk ¯\_(ツ)_/¯ ♡۶Java♡۶RMI ♡۶ Make Use Method {MUM} makeuse.org On Sun, 22 Mar 2020 at 16:16, Duan,Bing wrote: > Hi: > Plz Unsubscribe me. > > Thanks! > >