Home > Back-end >  Consult the Java. Lang. IllegalArgumentException how to solve the problem
Consult the Java. Lang. IllegalArgumentException how to solve the problem

Time:10-26

Java. Lang. IllegalArgumentException: the requirement failed: No samples available from MapPartitionsRDD [3] at the map at KMeans. Scala: 224
At the scala. Predef $. The require (224). Predef scala:
At org. Apache. Spark. Mllib. Clustering. KMeans. InitKMeansParallel (355). KMeans scala:
At org. Apache. Spark. Mllib. Clustering. KMeans. RunAlgorithm (256). KMeans scala:
At org. Apache. Spark. Mllib. Clustering. KMeans. Run (227). KMeans scala:
At org. Apache. Spark. Mllib. Clustering. KMeans. Run (209). KMeans scala:
At org. Apache. Spark. Mllib. Clustering. KMeans $. "train" (530). KMeans scala:
The at org. Apache. Spark. Mllib. Clustering. KMeans. "train" (KMeans. Scala)
At com. Xiandian. Douxue. Insight. Server service. Job. Cluster. JobCluster. KMeans (JobCluster. Java: 227)
At com. Xiandian. Douxue. Insight. Server service. Job. Cluster. JobCluster. TfKmeans (JobCluster. Java: 155)
At com. Xiandian. Douxue. Insight. Server service. Job. Cluster. JobCluster. Cluster (106) JobCluster. Java:
At com. Xiandian. Douxue. Insight. Server service. Job. Cluster. JobClusterService. Process (JobClusterService. Java: 116)
At com. Xiandian. Douxue. Insight. Server base. ServiceJob. Execute (ServiceJob. Java: 56)
The at org. Quartz. Core. JobRunShell. Run (JobRunShell. Java: 202)
The at org. Quartz. Simpl. SimpleThreadPool $WorkerThread. Run (SimpleThreadPool. Java: 573)

CodePudding user response:

La la la la la la la

CodePudding user response:

Can post code, the code is a code better looking

CodePudding user response:

According to the error, the job thread executes the parameter is wrong, check the relevant code
At com. Xiandian. Douxue. Insight. Server service. Job. Cluster. JobCluster. KMeans (JobCluster. Java: 227)
At com. Xiandian. Douxue. Insight. Server service. Job. Cluster. JobCluster. TfKmeans (JobCluster. Java: 155)
At com. Xiandian. Douxue. Insight. Server service. Job. Cluster. JobCluster. Cluster (106) JobCluster. Java:
At com. Xiandian. Douxue. Insight. Server service. Job. Cluster. JobClusterService. Process (JobClusterService. Java: 116)
at com. Xiandian. Douxue. Insight. Server base. ServiceJob. Execute (ServiceJob. Java: 56)
  • Related