How to check version of Spark and Scala in Zeppelin?

Haha TTpro picture Haha TTpro · Nov 9, 2017 · Viewed 14.1k times · Source

When I run interactive spark-shell, I show spark version (2.2.0) and scala version (2.11.8)

Welcome to
      ____              __
     / __/__  ___ _____/ /__
    _\ \/ _ \/ _ `/ __/  '_/
   /___/ .__/\_,_/_/ /_/\_\   version 2.2.0
      /_/

Using Scala version 2.11.8 (OpenJDK 64-Bit Server VM, Java 1.8.0_131)

However, I want to check which Spark and Scala version I am using with Zeppelin (localhost)

I am not sure that Zeppelin run same spark/scala with my interactive shell.

(I checked https://community.hortonworks.com/questions/54918/how-do-i-tell-which-version-ofspark-i-am-running.html, but that is not I want because I host Zeppelin on localhost)

Answer

Mehrez picture Mehrez · Nov 9, 2017

for spark version you can run sc.version and for scala run util.Properties.versionString in your zeppelin note