Re: How to add more imports at the start of REPL

2019-03-05 Thread Nuthan Reddy
Ok, thanks. It does solve the problem. Nuthan Reddy Sigmoid Analytics On Tue, Mar 5, 2019 at 5:17 PM Jesús Vásquez wrote: > Hi Nuthan, I have had the same issue before. > As a shortcut i created a text file called imports and then loaded it's > content with the command :load of the scala

Re: How to add more imports at the start of REPL

2019-03-05 Thread Jesús Vásquez
Hi Nuthan, I have had the same issue before. As a shortcut i created a text file called imports and then loaded it's content with the command :load of the scala repl Example: Create "imports" textfile with the import instructions you need import org.apache.hadoop.conf.Configuration import

How to add more imports at the start of REPL

2019-03-05 Thread Nuthan Reddy
Hi, When launching the REPL using spark-submit, the following are loaded automatically. scala> :imports 1) import org.apache.spark.SparkContext._ (70 terms, 1 are implicit) 2) import spark.implicits._ (1 types, 67 terms, 37 are implicit) 3) import spark.sql (1 terms)