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

Job aborted due to stage failure #1289

Open
NamrataRade opened this issue Jan 18, 2024 · 0 comments
Open

Job aborted due to stage failure #1289

NamrataRade opened this issue Jan 18, 2024 · 0 comments

Comments

@NamrataRade
Copy link

Error-org.apache.spark.SparkException: Job aborted due to stage failure: Task 1 in stage 150.0 failed 4 times, most recent failure: Lost task 1.3 in stage 150.0 (TID 426) (172.30.123.114 executor 6): java.lang.NullPointerException
sample code:
from pyspark.ml.clustering import KMeans
kmeans = KMeans(k=4, seed=1)
model = kmeans.fit(df_pca.select("features"))
df_cluster_out = model.transform(df_pca)

df_pca:
unique id features
1 (2,[],[])
2 (2,[],[])
3 [0.4,0.8]
I have performed scaling+pca before applying to kmeans. Please provide some guidance.

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