Ganesh Krishnan created ZEPPELIN-1589:
-----------------------------------------

             Summary: println does not execute inside of map
                 Key: ZEPPELIN-1589
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-1589
             Project: Zeppelin
          Issue Type: Bug
    Affects Versions: 0.7.0
         Environment: Ubuntu
            Reporter: Ganesh Krishnan
            Priority: Minor


Example Scala Script being run

{{ val df = sqlContext.read.parquet("/shoten/output/word2vec")
 df.show(1,true)
 df.rdd.map(
 row=>{
 println(s"row is $row")
 ("1")
 }
 ).count()
 
 println("Finished")
}}


Output:

{{ df: org.apache.spark.sql.DataFrame = [title: string, words: array<string> 
... 3 more fields]
+------------------+--------------------+--------------------+--------------------+--------------------+
|             title|               words|         rawFeatures|            
features|              result|
+------------------+--------------------+--------------------+--------------------+--------------------+
|Nicomachean Ethics|[nicomachean, 
eth...|(262144,[14,170,6...|(262144,[14,170,6...|[0.03267941124305...|
+------------------+--------------------+--------------------+--------------------+--------------------+
only showing top 1 row
res160: Long = 5255
Finished }}



The println statement inside map is never printed although it prints in a scala 
script file



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to