def local(jarfile, klass, *args):
    'Syntax: [storm local topology-jar-path class ...]\n\n    Runs the main method of class with the specified arguments but pointing to a local cluster\n    The storm jars and configs in ~/.storm are put on the classpath.\n    The process is configured so that StormSubmitter\n    (http://storm.apache.org/releases/current/javadocs/org/apache/storm/StormSubmitter.html)\n    and others will interact with a local cluster instead of the one configured by default.\n\n    Most options should work just like with the storm jar command.\n\n    local also adds in the option --local-ttl which sets the number of seconds the\n    local cluster will run for before it shuts down.\n\n    --java-debug lets you turn on java debugging and set the parameters passed to -agentlib:jdwp on the JDK\n    --java-debug transport=dt_socket,address=localhost:8000\n    will open up a debugging server on port 8000.\n    '
    [ttl, debug_args, args] = parse_local_opts(args)
    extrajvmopts = [('-Dstorm.local.sleeptime=' + ttl)]
    if (debug_args != None):
        extrajvmopts = (extrajvmopts + [('-agentlib:jdwp=' + debug_args)])
    run_client_jar(jarfile, 'org.apache.storm.LocalCluster', ([klass] + list(args)), client=False, daemon=False, extrajvmopts=extrajvmopts)
Syntax: [storm local topology-jar-path class ...]

Runs the main method of class with the specified arguments but pointing to a local cluster
The storm jars and configs in ~/.storm are put on the classpath.
The process is configured so that StormSubmitter
(http://storm.apache.org/releases/current/javadocs/org/apache/storm/StormSubmitter.html)
and others will interact with a local cluster instead of the one configured by default.

Most options should work just like with the storm jar command.

local also adds in the option --local-ttl which sets the number of seconds the
local cluster will run for before it shuts down.

--java-debug lets you turn on java debugging and set the parameters passed to -agentlib:jdwp on the JDK
--java-debug transport=dt_socket,address=localhost:8000
will open up a debugging server on port 8000.
def local(jarfile, klass, *args):
    'Syntax: [storm local topology-jar-path class ...]\n\n    Runs the main method of class with the specified arguments but pointing to a local cluster\n    The storm jars and configs in ~/.storm are put on the classpath.\n    The process is configured so that StormSubmitter\n    (http://storm.apache.org/releases/current/javadocs/org/apache/storm/StormSubmitter.html)\n    and others will interact with a local cluster instead of the one configured by default.\n\n    Most options should work just like with the storm jar command.\n\n    local also adds in the option --local-ttl which sets the number of seconds the\n    local cluster will run for before it shuts down.\n\n    --java-debug lets you turn on java debugging and set the parameters passed to -agentlib:jdwp on the JDK\n    --java-debug transport=dt_socket,address=localhost:8000\n    will open up a debugging server on port 8000.\n    '
    [ttl, debug_args, args] = parse_local_opts(args)
    extrajvmopts = [('-Dstorm.local.sleeptime=' + ttl)]
    if (debug_args != None):
        extrajvmopts = (extrajvmopts + [('-agentlib:jdwp=' + debug_args)])
    run_client_jar(jarfile, 'org.apache.storm.LocalCluster', ([klass] + list(args)), client=False, daemon=False, extrajvmopts=extrajvmopts)