Error using collectAsMap() in scala

2016-03-19 Thread Shishir Anshuman
I am using following code snippet in scala: *val dict: RDD[String] = sc.textFile("path/to/csv/file")* *val dict_broadcast=sc.broadcast(dict.collectAsMap())* On compiling It generates this error: *scala:42: value collectAsMap is not a member of org.apache.spark.rdd.RDD[String]* *val

installing packages with pyspark

2016-03-19 Thread Ajinkya Kale
Hi all, I had couple of questions. 1. Is there documentation on how to add the graphframes or any other package for that matter on the google dataproc managed spark clusters ? 2. Is there a way to add a package to an existing pyspark context through a jupyter notebook ? --aj

Re: sql timestamp timezone bug

2016-03-19 Thread Davies Liu
In Spark SQL, timestamp is the number of micro seconds since epoch, so it has nothing with timezone. When you compare it again unix_timestamp or string, it's better to convert these into timestamp then compare them. In your case, the where clause should be: where (created > cast('{0}' as

Re: Re: The build-in indexes in ORC file does not work.

2016-03-19 Thread Joseph
terminal_type =0, 260,000,000 rows, almost cover half of the whole data.terminal_type =25066, just 3800 rows. orc

Error in "java.io.IOException: No input paths specified in job"

2016-03-19 Thread tinyocean
Hello, I am learning sparkR by myself and have little computer background. I am following the examples on http://spark.apache.org/docs/latest/sparkr.html and running /sc <- sparkR.init(sparkPackages="com.databricks:spark-csv_2.11:1.0.3") sqlContext <- sparkRSQL.init(sc) people <-

Re: OOM Exception in my spark streaming application

2016-03-19 Thread Jesse F Chen
Somewhat related, though this JIRA is on 1.6. https://issues.apache.org/jira/browse/SPARK-13288#

RE: Fwd: DF creation

2016-03-19 Thread Diwakar Dhanuskodi
Import sqlContext.implicits._  before  using  df () Sent from Samsung Mobile. Original message From: satyajit vegesna Date:19/03/2016 06:00 (GMT+05:30) To: user@spark.apache.org, d...@spark.apache.org Cc: Subject: Fwd: DF creation Hi , I am

<    1   2