Here is the code I'm trying to execute:
from pyspark.mllib.recommendation import ALS iterations=5 lambdaALS=0.1 seed=5L rank=8 model=ALS.train(trainingRDD,rank,iterations, lambda_=lambdaALS, seed=seed)
When I run the command model=ALS.train(trainingRDD,rank,iterations, lambda_=lambdaALS, seed=seed) , which depends on numpy, the Py4Java library that uses Spark gives the following message:
Py4JJavaError: An error occurred while calling o587.trainALSModel. : org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 67.0 failed 4 times, most recent failure: Lost task 0.3 in stage 67.0 (TID 195, 192.168.161.55): org.apache.spark.api.python.PythonException: Traceback (most recent call last): File "/home/platform/spark/python/lib/pyspark.zip/pyspark/worker.py", line 98, in main command = pickleSer._read_with_length(infile) File "/home/platform/spark/python/lib/pyspark.zip/pyspark/serializers.py", line 164, in _read_with_length return self.loads(obj) File "/home/platform/spark/python/lib/pyspark.zip/pyspark/serializers.py", line 421, in loads return pickle.loads(obj) File "/home/platform/spark/python/lib/pyspark.zip/pyspark/mllib/__init__.py", line 27, in <module> Exception: MLlib requires NumPy 1.4+
NumPy 1.10 is installed on the machine indicated in the error message. In addition, I get version 1.9.2 when I run the following command directly in my Jupyter laptop: import numpy numpy.version.version
I obviously use a version of NumPy older than 1.4, but I don't know where. How can I find out on which machine I need to upgrade my version of NumPy?
source share