Command to start and stop the spark in interactive shell ?

Viewing 1 reply thread
  • Author
    Posts
    • #4977
      DataFlair Team
      Moderator

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

    • #4978
      DataFlair Team
      Moderator

      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.