bashapache-sparkterminalcloudera-quickstart-vm

How to write multiline in Cloudera QuickStart Terminal?


I want to write multiline using | in the terminal. I am using Cloudera quickstart VM.

val csv = spark.read.option("header",true).option("inferSchema",true).csv("hdfs://quickstart.cloudera:8020/user/spark/dataset/retail_db/categories-header")

I am writing this full in single line. How to write using multiple line ? Please Help


Solution

  • You can use \. For example: data = [1,2,3].\ pop() After \ you can move on to the next line