GitHub user vinodkc opened a pull request:

    https://github.com/apache/spark/pull/22130

    [SPARK-25137][Spark Shell] NumberFormatException` when starting spark-shell 
from Mac terminal

    ## What changes were proposed in this pull request?
    
     When starting spark-shell from Mac terminal,  Getting exception
    [ERROR] Failed to construct terminal; falling back to unsupported
    java.lang.NumberFormatException: For input string: "0x100"
    at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:580)
    at java.lang.Integer.valueOf(Integer.java:766)
    at jline.internal.InfoCmp.parseInfoCmp(InfoCmp.java:59)
    at jline.UnixTerminal.parseInfoCmp(UnixTerminal.java:242)
    at jline.UnixTerminal.<init>(UnixTerminal.java:65)
    at jline.UnixTerminal.<init>(UnixTerminal.java:50)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at java.lang.Class.newInstance(Class.java:442)
    at jline.TerminalFactory.getFlavor(TerminalFactory.java:211)
    
    This issue is due a jline defect : 
https://github.com/jline/jline2/issues/281, which is fixed in Jline 2.14.4, 
bumping up JLine version in spark to version  > Jline 2.14.4 will fix the issue
    
    ## How was this patch tested?
    No new  UT/automation test added,  after upgrade to latest Jline version 
2.14.6, manually tested spark shell features
    


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

    $ git pull https://github.com/vinodkc/spark br_UpgradeJLineVersion

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

    https://github.com/apache/spark/pull/22130.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 #22130
    
----
commit d00929f28b2523869252d67fefc04297aadc5af6
Author: Vinod KC <vinod.kc.in@...>
Date:   2018-08-17T04:10:18Z

    Upgrade JLine to 2.14.6

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to