[ 
https://issues.apache.org/jira/browse/SPARK-6154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14366295#comment-14366295
 ] 

Olivier Toupin commented on SPARK-6154:
---------------------------------------

I made an unperfect fix for hive-thriftserver.

https://github.com/oliviertoupin/spark/compare/v1.3.0...oliviertoupin:olivier-sql-cli-2.11

To test:

Download 1.3.0.
dev/change-version-to-2.11.sh
mvn -Dscala-2.11 -Pyarn -Phadoop-2.4 -Dhadoop.version=2.4.0 -Phive 
-Phive-thriftserver -DskipTests clean package

This basically shade jline for the spark repl, and the hive jline version for 
sql-cli to avoid conflict.

For me everything seems to work fine, but feel free to test further.

One problem: When running spark-shell I get this error:

Failed to created JLineReader: java.lang.NoClassDefFoundError: 
jline/console/completer/Completer
Falling back to SimpleReader.

This prevent autocompletion from working.

So it might not be a mergeable patch for now, but might be helpful for people 
that, like us, want to run 2.11 and spark-sql. You lose autocompletion (you 
were using it?), but both components work with 2.11.

> Support Kafka, JDBC in Scala 2.11
> ---------------------------------
>
>                 Key: SPARK-6154
>                 URL: https://issues.apache.org/jira/browse/SPARK-6154
>             Project: Spark
>          Issue Type: Improvement
>          Components: Build
>    Affects Versions: 1.3.0
>            Reporter: Jianshi Huang
>
> Build v1.3.0-rc2 with Scala 2.11 using instructions in the documentation 
> failed when -Phive-thriftserver is enabled.
> [info] Compiling 9 Scala sources to 
> /home/hjs/workspace/spark/sql/hive-thriftserver/target/scala-2.11/classes...
> [error] 
> /home/hjs/workspace/spark/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala:2
> 5: object ConsoleReader is not a member of package jline
> [error] import jline.{ConsoleReader, History}
> [error]        ^
> [warn] Class jline.Completor not found - continuing with a stub.
> [warn] Class jline.ConsoleReader not found - continuing with a stub.
> [error] 
> /home/hjs/workspace/spark/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala:1
> 65: not found: type ConsoleReader
> [error]     val reader = new ConsoleReader()
> Jianshi



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to