如何检查Spark版本 [英] How to check the Spark version

查看:556
本文介绍了如何检查Spark版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如标题所示,我怎么知道CentOS中已经安装了哪个版本的spark?

as titled, how do I know which version of spark has been installed in the CentOS?

当前系统已安装cdh5.1.0.

The current system has installed cdh5.1.0.

推荐答案

如果您使用的是Spark-Shell,它会在一开始显示在横幅中.

If you use Spark-Shell, it appears in the banner at the start.

以编程方式,可以使用SparkContext.version.

Programatically, SparkContext.version can be used.

这篇关于如何检查Spark版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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