Github user fantazic commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/158#issuecomment-121852727
  
    @jongyoul FYI
    
    I built with this script.
    
    ```
    mvn clean install -DskipTests -Pspark-1.3 -Dspark.version=1.3.1 
-Phadoop-2.6 -Dhadoop.version=2.7.0 -Pyarn
    ```
    The Spark version installed is 1.4.0, so I got this error message.
    ```
    Py4JError: An error occurred while calling 
None.org.apache.spark.api.python.PythonRDD. Trace:
    py4j.Py4JException: Constructor 
org.apache.spark.api.python.PythonRDD([class 
org.apache.spark.rdd.MapPartitionsRDD, class [B, class java.util.HashMap, class 
java.util.ArrayList, class java.lang.Boolean, class java.lang.String, class 
java.lang.String, class java.util.ArrayList, class 
org.apache.spark.Accumulator]) does not exist
        at 
py4j.reflection.ReflectionEngine.getConstructor(ReflectionEngine.java:184)
        at 
py4j.reflection.ReflectionEngine.getConstructor(ReflectionEngine.java:202)
        at py4j.Gateway.invoke(Gateway.java:213)
        at 
py4j.commands.ConstructorCommand.invokeConstructor(ConstructorCommand.java:79)
        at py4j.commands.ConstructorCommand.execute(ConstructorCommand.java:68)
        at py4j.GatewayConnection.run(GatewayConnection.java:207)
        at java.lang.Thread.run(Thread.java:745)
    ```
    
    This is notebook codes.
    ```
    %pyspark
    
    bankText = sc.textFile("/user/hanadmin/zeppelin/tutorial/bank-full.csv")
    
    head = bankText.filter(lambda l: l[:5] != '"age"').take(5)
    for l in head:
        print l
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to