We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've been following the threads for PySpark support and see here that adding the jars as pyFiles does the trick.
Unfortunately I'm unable to import from sparkxgb after following those steps on 1.0.0
from pyspark.sql import SparkSession spark = SparkSession.builder.config('spark.jars','xgboost4j-spark_2.12-1.0.0.jar').config('spark.jars', 'xgboost4j_2.12-1.0.0.jar').getOrCreate() spark.sparkContext.addPyFile("xgboost4j-spark_2.12-1.0.0.jar") spark.sparkContext.addPyFile("./xgboost4j_2.12-1.0.0.jar") from sparkxgb import XGBoostClassifier, XGBoostClassificationModel
ModuleNotFoundError Traceback (most recent call last) <ipython-input-9-8a1823de6207> in <module> ----> 1 from sparkxgb import XGBoostClassifier, XGBoostClassificationModel ModuleNotFoundError: No module named 'sparkxgb'
I'm running this on Jupyter, not sure if it matters or not.
Any suggestions?
Thanks!
The text was updated successfully, but these errors were encountered:
There is a new thread for PySpark: #5658.
Sorry, something went wrong.
No branches or pull requests
I've been following the threads for PySpark support and see here that adding the jars as pyFiles does the trick.
Unfortunately I'm unable to import from sparkxgb after following those steps on 1.0.0
I'm running this on Jupyter, not sure if it matters or not.
Any suggestions?
Thanks!
The text was updated successfully, but these errors were encountered: