I receive this error: Traceback (most recent call last):
File "<stdin>", line 1, in <module> File "/home/ubuntu/spark-1.0.0-rc2/python/pyspark/mllib/classification.py", line 178, in train ans = sc._jvm.PythonMLLibAPI().trainNaiveBayes(dataBytes._jrdd, lambda_) File "/home/ubuntu/spark-1.0.0-rc2/python/lib/py4j-0.8.1-src.zip/py4j/java_gateway.py", line 535, in __call__ File "/home/ubuntu/spark-1.0.0-rc2/python/lib/py4j-0.8.1-src.zip/py4j/java_gateway.py", line 368, in send_command File "/home/ubuntu/spark-1.0.0-rc2/python/lib/py4j-0.8.1-src.zip/py4j/java_gateway.py", line 361, in send_command File "/home/ubuntu/spark-1.0.0-rc2/python/lib/py4j-0.8.1-src.zip/py4j/java_gateway.py", line 317, in _get_connection File "/home/ubuntu/spark-1.0.0-rc2/python/lib/py4j-0.8.1-src.zip/py4j/java_gateway.py", line 324, in _create_connection File "/home/ubuntu/spark-1.0.0-rc2/python/lib/py4j-0.8.1-src.zip/py4j/java_gateway.py", line 431, in start py4j.protocol.Py4JNetworkError: An error occurred while trying to connect to the Java server