Re: Scala Vs Python

2016-09-06 Thread Leonard Cohen
hi spark user, IMHO, I will use the language for application aligning with the language under which the system designed. If working on Spark, I choose Scala. If working on Hadoop, I choose Java. If working on nothing, I use Python. Why? Because it will save my life, just kidding. Best

Re: How to convert String to Vector ?

2016-09-06 Thread Leonard Cohen
hi, map(feature => List(feature).split(',') ) in python: list(string.split(',')) : eval(string) http://stackoverflow.com/questions/31376574/spark-rddstring-string-into-rddmapstring-string -- Original -- From: "??(Yan Facai)";; Send