Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile dllib with spark2.3 issue #5498

Closed
Le-Zheng opened this issue Aug 22, 2022 · 0 comments
Closed

Compile dllib with spark2.3 issue #5498

Le-Zheng opened this issue Aug 22, 2022 · 0 comments

Comments

@Le-Zheng
Copy link
Contributor

Le-Zheng commented Aug 22, 2022

[ERROR] /home/joy/workspace/BigDL2.0/fixm1/scala212/BigDL/scala/dllib/src/main/scala/com/intel/analytics/bigdl/dllib/nnframes/NNClassifier.scala:326: 
value active is not a member of object org.apache.spark.sql.SparkSession
[ERROR]   val sc = SparkSession.active.sparkContext
[ERROR]    

Dllib with Spark 2.3 failed when compiling https://github.com/intel-analytics/BigDL/blob/main/scala/dllib/src/main/scala/com/intel/analytics/bigdl/dllib/nnframes/NNClassifier.scala#L326

class XGBClassifier (val xgboostParams: Map[String, Any] = Map()) {
  val sc = SparkSession.active.sparkContext

mvn clean package -DskipTests -Dspark.version=2.3.1 -DSPARK_PLATFORM=SPARK_2.3 -P spark_2.x
@dding3 If we need to compile dllib with spark2.3, is there any solution for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant