zouzias / spark-hello-world

A simple hello world using Apache Spark

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sbt console errors

shy00n opened this issue · comments

commented

I get following errors when attempting

$ sbt console
...
---
(snip)
---
[info] Non-compiled module 'compiler-bridge_2.11' for Scala 2.11.10. Compiling...
[info]   Compilation completed in 10.391s.
[info] Starting scala interpreter...
Welcome to Scala 2.11.10 (OpenJDK 64-Bit Server VM, Java 1.8.0_275).
Type in expressions for evaluation. Or try :help.
[ERROR] Failed to construct terminal; falling back to unsupported
java.lang.NumberFormatException: For input string: "0x100"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
commented

$ sbt -version
sbt version in this project: 1.3.6
sbt script version: 1.4.3
$ uname -a
Linux DESKTOP-3DKM78D 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ cat build.sbt
name := "HelloWorld"
version := "0.1.0"
scalaVersion := "2.11.10"

libraryDependencies += "org.apache.spark" %% "spark-core" % "2.4.7" % "provided"
libraryDependencies += "org.apache.spark" %% "spark-sql" % "2.4.7" % "provided"

commented

I found the solution to this in a Chinese article, which I had to use google translate for.
https://www.freesion.com/article/4841370028/
.bashrc or .bash_aliases needed
export TERM=xterm-color
So, this was not related to your code at all.
Apologies & thank u,