Zeppelin 0.7.2 version does not support spark 2.2.

2019-07-15 02:14发布

How to downgrade the spark version? What could be the other solutions? I have to connect my hive tables to spark using spark session. But the spark version is not supported by zeppelin.

2条回答
时光不老,我们不散
2楼-- · 2019-07-15 02:54

Zeppelin 0.7.2 version supports spark 2.1.0.

查看更多
太酷不给撩
3楼-- · 2019-07-15 03:07

Here are 2 reasons.

[1] Zeppelin 0.7.2 marked spark 2.2+ as the unsupported version.

https://github.com/apache/zeppelin/blob/v0.7.2/spark/src/main/java/org/apache/zeppelin/spark/SparkVersion.java#L40

public static final SparkVersion UNSUPPORTED_FUTURE_VERSION = SPARK_2_2_0;

[2] Even if you change the const and build again, you might fail to run Zeppelin 0.7.2 with Spark 2.2

Spark dropped support for Java 7 and Zeppelin 0.7.2 was built with JDK 7. So you need to rebuild it with JDK 8.

One work around you can use is, specifying JAVA_HOME in the spark interpreter (for 2.2) as commented here

That works because only spark interpreter (for 2.2) requires java 8 and Zeppelin doesn't need it.

In short

  1. Modify here and rebuild if you want to spark 2.2 on Zeppelin branch-0.7
  2. And Use JDK 8 for the spark interpreter.
查看更多
登录 后发表回答