Java与Hadoop上的Python [英] Java vs Python on Hadoop
问题描述
我正在使用Hadoop开展一个项目,它似乎本地合并Java并为Python提供流式支持。是否有重大的性能影响选择一个在另一个上?我在这个过程中已经足够早,在这种过程中,如果出现明显的性能差异,可以采用任何方式。
> Java的动态性不如Python,并且已经将更多的努力投入到它的VM中,使其成为更快的语言。 Python也受其全局解释器锁的阻止,这意味着它不能将单个进程的线程推到不同的核心上。这是否会产生重大影响取决于您打算如何去做。我怀疑这两种语言都适合你。
I am working on a project using Hadoop and it seems to natively incorporate Java and provide streaming support for Python. Is there is a significant performance impact to choosing one over the other? I am early enough in the process where I can go either way if there is a significant performance difference one way or the other.
Java is less dynamic than Python and more effort has been put into its VM, making it a faster language. Python is also held back by its Global Interpreter Lock, meaning it cannot push threads of a single process onto different core.
Whether this makes any significant difference depends on what you intend to do. I suspect both languages will work for you.
这篇关于Java与Hadoop上的Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!