Starting BDD Shell

This topic describes how to start BDD Shell.

To start BDD Shell:

  1. From the command prompt, change to the $BDD_HOME/bdd-shell directory.
  2. Run the bdd-shell.sh script.
    ./bdd-shell.sh
  3. When BDD Shell starts up, it displays a series of configuration and run-time messages. BDD Shell is ready for use when you see the Python interperter >>> prompt:
    Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties
    16/09/11 10:30:57 INFO SparkContext: Running Spark version 1.5.0
    ...
    Welcome to
         ___   ___   ___       __   _     ____  _     _    
        | |_) | | \ | | \     ( (` | |_| | |_  | |   | |   
        |_|_) |_|_/ |_|_/     _)_) |_| | |_|__ |_|__ |_|__ 
    
    SparkContext available as sc, HiveContext available as sqlContext.
    BDD Context available as bc.
    
    >>>

Note that BDD Shell runs as a Spark application. Therefore, when it is running, it will appear on the YARN All Applications page with a State of "RUNNING" and a FinalStatus of "UNDEFINED". When you exit BDD Shell, the application will have a State of "FINISHED" and a FinalStatus of "SUCCEEDED".

To exit the Python interpreter, use the quit() command:
>>> quit()
16/09/11 17:11:30 INFO SparkUI: Stopped Spark web UI at http://10.152.105.219:4040
16/09/11 17:11:30 INFO DAGScheduler: Stopping DAGScheduler
...
16/09/11 17:11:31 INFO ShutdownHookManager: Shutdown hook called
16/09/11 17:11:31 INFO ShutdownHookManager: Deleting directory /tmp/spark-6cad369a-a80f-4105