Download the lein script (or on Windows lein.bat) Place it on your $PATH where your shell can find it (eg. ~/bin) Set it to be executable (chmod a+x ~/bin/lein) Run it (lein) and it will download the self-install package
# 第一个要改得是版本,把里面的版本改为你安装的storm版本 >> vim project.clj # 第二个是py执行文件,加入两个options参数 >> vim fabfile.py def pre_submit(topology_name, env_name, env_config, options): """Override this function to perform custom actions prior to topology submission. No SSH tunnels will be active when this function is called.""" pass
def post_submit(topo_name, env_name, env_config, options): """Override this function to perform custom actions after topology submission. Note that the SSH tunnel to Nimbus will still be active when this function is called.""" pass