Command to start and stop the spark in interactive shell ?

Free Online Certification Courses – Learn Today. Lead Tomorrow. Forums Apache Spark Command to start and stop the spark in interactive shell ?

Viewing 1 reply thread
  • Author
    Posts
    • #4977
      DataFlair TeamDataFlair Team
      Spectator

      What is the command to start and stop the spark in interactive shell ?

    • #4978
      DataFlair TeamDataFlair Team
      Spectator

      Command to start the interactive shell in Scala:
      >>>>bin/spark-shell
      First go the spark directory i.e.

      hdadmin@ubuntu:~$ cd spark-1.6.1-bin-hadoop2.6/
      hdadmin@ubuntu:~/spark-1.6.1-bin-hadoop2.6$ bin/spark-shell

      ——————————————————————————————————————————
      Command to stop the interactive shell in Scala:
      scala>Press (Ctrl+D)
      One can see the following message
      scala> Stopping spark context.

      For more details refer to http://data-flair.training/blogs/apache-spark-installation-on-multi-node-cluster-step-by-step-guide/

Viewing 1 reply thread
  • You must be logged in to reply to this topic.