Java与Hadoop上的Python [英] Java vs Python on Hadoop

查看:153
本文介绍了Java与Hadoop上的Python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆