Zeppelin 0.7.2 版本不支持 spark 2.2.0 [英] Zeppelin 0.7.2 version does not support spark 2.2.0

查看:35
本文介绍了Zeppelin 0.7.2 版本不支持 spark 2.2.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何降级spark版本?其他解决方案是什么?我必须使用 spark 会话将我的配置单元表连接到 spark.但是 zeppelin 不支持 spark 版本.

解决方案

这里有两个原因.

[1] Zeppelin 0.7.2 将 spark 2.2+ 标记为不受支持的版本.

这是可行的,因为只有 spark 解释器(对于 2.2)需要 java 8 而 Zeppelin 不需要它.

简而言之

  1. 修改此处 并重建,如果您想在 Zeppelin 分支 0.7 上激发 2.2
  2. 并使用 JDK 8 作为 spark 解释器.

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.

解决方案

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.

这篇关于Zeppelin 0.7.2 版本不支持 spark 2.2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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