Coder Social home page Coder Social logo

Comments (2)

longdafeng avatar longdafeng commented on May 6, 2024

可以的, 你提一个issue吧

hustjackie

发件人: chenxu
发送时间: 2014-04-01 11:47
收件人: alibaba/jstorm
主题: [jstorm] jstorm-server/bin/jstorm.py 结束时返回Java子进程的返回值 (#40)
jstorm.py退出时,可否返回java子进程的返回值,方便脚本调用判断是否有异常。
类似这样:
--- a/jstorm-server/bin/jstorm.py
+++ b/jstorm-server/bin/jstorm.py
@@ -91,7 +91,8 @@ def exec_storm_class(klass, jvmtype="-server", childopts="", extrajars=[], args=
args_str = " ".join(map(lambda s: """ + s + """, args))
command = "java " + jvmtype + " -Djstorm.home=" + JSTORM_DIR + " " + get_config_opts() + " -Djava.library.path=" + nativepath + " " + childopts + " -cp " +
print "Running: " + command

  • os.system(command)
  • ret = os.system(command)
  • sys.exit(ret)

def jar(jarfile, klass, *args):
"""Syntax: [jstorm jar topology-jar-path class ...]


Reply to this email directly or view it on GitHub.

from jstorm.

longdafeng avatar longdafeng commented on May 6, 2024

close in 0.9.3-snapshot

from jstorm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.