Re: Anyone has some simple example with spark-sql with spark 1.3

2015-03-31 Thread Vincent He
On Sun, Mar 29, 2015 at 6:59 AM Vincent He vincent.he.andr...@gmail.com wrote: No luck, it does not work, anyone know whether there some special setting for spark-sql cli so we do not need to write code to use spark sql? Anyone have some simple example on this? appreciate any help. thanks

Re: Does Spark HiveContext supported with JavaSparkContext?

2015-03-30 Thread Vincent He
@gmail.com wrote: I mean JavaSparkContext has a field name sc, whose type is SparkContext. You may pass this sc to HiveContext. On 3/29/15 9:59 PM, Vincent He wrote: thanks . It does not work, and can not pass compile as HiveContext constructor does not accept JaveSparkContext

Re: Anyone has some simple example with spark-sql with spark 1.3

2015-03-29 Thread Vincent He
https://databricks.com/blog/2015/03/24/spark-sql-graduates-from-alpha-in-spark-1-3.html I haven't tried the SQL statements in above blog myself. Cheers On Sat, Mar 28, 2015 at 5:39 AM, Vincent He vincent.he.andr...@gmail.com wrote: thanks for your information . I have read it, I can run

Re: Does Spark HiveContext supported with JavaSparkContext?

2015-03-29 Thread Vincent He
: You may simply pass in JavaSparkContext.sc On 3/29/15 9:25 PM, Vincent He wrote: All, I try Spark SQL with Java, I find HiveContext does not accept JavaSparkContext, is this true? Or any special build of Spark I need to do (I build with Hive and thrift server)? Can we use HiveContext

Does Spark HiveContext supported with JavaSparkContext?

2015-03-29 Thread Vincent He
All, I try Spark SQL with Java, I find HiveContext does not accept JavaSparkContext, is this true? Or any special build of Spark I need to do (I build with Hive and thrift server)? Can we use HiveContext in Java? thanks in advance.

Anyone has some simple example with spark-sql with spark 1.3

2015-03-28 Thread Vincent He
I am learning spark sql and try spark-sql example, I running following code, but I got exception ERROR CliDriver: org.apache.spark.sql.AnalysisException: cannot recognize input near 'CREATE' 'TEMPORARY' 'TABLE' in ddl statement; line 1 pos 17, I have two questions, 1. Do we have a list of the

Anyone has some simple example with spark-sql with spark 1.3

2015-03-28 Thread Vincent He
I am learning spark sql and try spark-sql example, I running following code, but I got exception ERROR CliDriver: org.apache.spark.sql.AnalysisException: cannot recognize input near 'CREATE' 'TEMPORARY' 'TABLE' in ddl statement; line 1 pos 17, I have two questions, 1. Do we have a list of the

Re: Anyone has some simple example with spark-sql with spark 1.3

2015-03-28 Thread Vincent He
...@gmail.com wrote: Please take a look at https://spark.apache.org/docs/latest/sql-programming-guide.html Cheers On Mar 28, 2015, at 5:08 AM, Vincent He vincent.he.andr...@gmail.com wrote: I am learning spark sql and try spark-sql example, I running following code, but I got