GitHub user tae-jun opened a pull request:

    https://github.com/apache/zeppelin/pull/1381

    [ZEPPELIN-1390] SparkInterpreter does not work for Spark2 version of HDP 2.5

    ### What is this PR for?
    Spark2 version of HDP 2.5 is "2.0.0.2.5.0.0-1245". Currently, Zeppelin 
parses this version to integer 2002500, which is higher than version "2.0.0" 
(i.e. 200 in integer). Therefore, Zeppelin thinks it's not supported version 
and fail.
    I fixed some codes to consider major, minor, and patch version. Now, 
version parsed using only first 3 numbers (major, minor, patch) and parsed into 
a 5-digit integer. For example, 2.0.0 -> 20000, 1.6.2 -> 10602, 1.10.1 -> 
11001. This makes HDP 2.5 compatible, and also make it more robust than before. 
Since maybe Spark's minor version can be a 2-digit number in the future
    
    ### What type of PR is it?
    [Bug Fix]
    
    ### What is the Jira issue?
    [ZEPPELIN-1390](https://issues.apache.org/jira/browse/ZEPPELIN-1390)
    
    ### How should this be tested?
    I added SparkVersion test codes.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tae-jun/zeppelin ZEPPELIN-1390

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zeppelin/pull/1381.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1381
    
----
commit 6ad8049da5cc4b9a2fadf48b06a3e42f8bee30ca
Author: Jun <i2r....@gmail.com>
Date:   2016-08-29T12:02:20Z

    [ZEPPELIN-1390] SparkInterpreter does not work for Spark2 version of HDP 2.5

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to