Re: Spark SQL Thriftserver with HBase

2016-10-17 Thread Michael Segel
and all responsibility for any loss, damage or destructionof data or any other property which may arise from relying on this email's technical content is explicitly disclaimed.The author will in no case be liable for any monetary damages arising from suchloss, damage or destruction. O

Re: Spark SQL Thriftserver with HBase

2016-10-17 Thread Mich Talebzadeh
:47 AM, Mich Talebzadeh >>>> wrote: >>>> >>>> Like any other design what is your presentation layer and end users? >>>> >>>> Are they SQL centric users from Tableau background or they may use >>>> spark functional programming. &

Re: Spark SQL Thriftserver with HBase

2016-10-17 Thread Jörn Franke
t;> monetary damages arising from such loss, damage or destruction. >>>>>>>>> >>>>>>>>> >>>>>>>>>> On 8 October 2016 at 20:15, Benjamin Kim wrote: >>>>>>>>>> Mich,

Re: Spark SQL Thriftserver with HBase

2016-10-17 Thread Michael Segel
Without naming specifics, there are at least 4 or 5 different implementations of HBASE sources, each at varying level of development and different requirements (HBASE release version, Kerberos support etc) _____________ From: Benjamin Kim mailto:bbuil...@gmail.

Re: Spark SQL Thriftserver with HBase

2016-10-17 Thread Michael Segel
a...@gmail.com>>, Felix Cheung mailto:felixcheun...@hotmail.com>>, "user@spark.apache.org<mailto:user@spark.apache.org>" mailto:user@spark.apache.org>> Subject: Re: Spark SQL Thriftserver with HBase Instead of (or additionally to) saving results somewhere, you just star

Re: Spark SQL Thriftserver with HBase

2016-10-17 Thread Michael Segel
mailto:felixcheun...@hotmail.com>> wrote: I wouldn't be too surprised Spark SQL - JDBC data source - Phoenix JDBC server - HBASE would work better. Without naming specifics, there are at least 4 or 5 different implementations of HBASE sources, each at varying level of develo

Re: Spark SQL Thriftserver with HBase

2016-10-17 Thread Michael Segel
erent requirements (HBASE release version, Kerberos support etc) _____ From: Benjamin Kim mailto:bbuil...@gmail.com>> Sent: Saturday, October 8, 2016 11:26 AM Subject: Re: Spark SQL Thriftserver with HBase To: Mich Talebzadeh mailto:mich.talebza...@gmail.com>&

Re: Spark SQL Thriftserver with HBase

2016-10-17 Thread Jörn Franke
ey will connected to a located database >>>>>>>> server using JDBC. Either way, by using JDBC everywhere, it simplifies >>>>>>>> and unifies the code on the JDBC industry standard. >>>>>>>> >>>>>>>> Does this make sense? &g

Re: Spark SQL Thriftserver with HBase

2016-10-17 Thread Benjamin Kim
cted to a located database >>>>>> server using JDBC. Either way, by using JDBC everywhere, it simplifies >>>>>> and unifies the code on the JDBC industry standard. >>>>>> >>>>>> Does this make sense? >>>>>>

Re: Spark SQL Thriftserver with HBase

2016-10-17 Thread ayan guha
;> LinkedIn * >>> https://www.linkedin.com/profile/view?id=AAEWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw >>> <https://www.linkedin.com/profile/view?id=AAEWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw>* >>> >>> >>> http://talebzadehmich.wordpress.com >>>

Re: Spark SQL Thriftserver with HBase

2016-10-17 Thread Mich Talebzadeh
er 17, 2016 at 1:53 PM > *To: *Benjamin Kim > *Cc: *Michael Segel , Jörn Franke < > jornfra...@gmail.com>, Mich Talebzadeh , Felix > Cheung , "user@spark.apache.org" < > user@spark.apache.org> > > *Subject: *Re: Spark SQL Thriftserver with HBase > > > > I

Re: Spark SQL Thriftserver with HBase

2016-10-17 Thread Thakrar, Jayesh
Talebzadeh , Felix Cheung , "user@spark.apache.org" Subject: Re: Spark SQL Thriftserver with HBase Instead of (or additionally to) saving results somewhere, you just start a thriftserver that expose the Spark tables of the SQLContext (or SparkSession now). That means you can implement any

Re: Spark SQL Thriftserver with HBase

2016-10-17 Thread Mich Talebzadeh
>> JDBC directly within the same data-center. When not colocated in the same >>>>> data-center, they will connected to a located database server using JDBC. >>>>> Either way, by using JDBC everywhere, it simplifies and unifies the code >>>>> on >>>>> the JDB

Re: Spark SQL Thriftserver with HBase

2016-10-17 Thread vincent gromakowski
t 8, 2016, at 11:47 AM, Mich Talebzadeh >>>> wrote: >>>> >>>> Like any other design what is your presentation layer and end users? >>>> >>>> Are they SQL centric users from Tableau background or they may use >>>> spark funct

Re: Spark SQL Thriftserver with HBase

2016-10-17 Thread Benjamin Kim
On Oct 8, 2016, at 11:47 AM, Mich Talebzadeh >>>>> <mailto:mich.talebza...@gmail.com>> wrote: >>>>>> >>>>>> Like any other design what is your presentation layer and end users? >>>>>> >>>>>> Are they SQL cent

Re: Spark SQL Thriftserver with HBase

2016-10-17 Thread vincent gromakowski
>> >>> LinkedIn * >>> https://www.linkedin.com/profile/view?id=AAEWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw >>> <https://www.linkedin.com/profile/view?id=AAEWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw>* >>> >>> >>> http://talebzadehmich.wordpress.com >&

Re: Spark SQL Thriftserver with HBase

2016-10-17 Thread Michael Segel
nt and different requirements (HBASE release version, Kerberos support etc) _ From: Benjamin Kim mailto:bbuil...@gmail.com>> Sent: Saturday, October 8, 2016 11:26 AM Subject: Re: Spark SQL Thriftserver with HBase To: Mich Talebzadeh mailto:mich.talebza..

Re: Spark SQL Thriftserver with HBase

2016-10-09 Thread Benjamin Kim
AEWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw> >>>> >>>> http://talebzadehmich.wordpress.com <http://talebzadehmich.wordpress.com/> >>>> >>>> Disclaimer: Use it at your own risk. Any and all responsibility for any >>>> loss, damage

Re: Spark SQL Thriftserver with HBase

2016-10-09 Thread Jörn Franke
es >> arising from such loss, damage or destruction. >> >> >> >> On 8 October 2016 at 19:40, Felix Cheung >> wrote: >> >>> I wouldn't be too surprised Spark SQL - JDBC data source - Phoenix JDBC >>> server - HBASE would work better. >>>

Re: Spark SQL Thriftserver with HBase

2016-10-09 Thread Jörn Franke
from relying on this email's technical content is explicitly disclaimed. >>>> The author will in no case be liable for any monetary damages arising from >>>> such loss, damage or destruction. >>>> >>>> >>>>> On 8 October 2016 at 19:40, Felix Cheung >>>>> wrot

Re: Spark SQL Thriftserver with HBase

2016-10-08 Thread Benjamin Kim
>> server - HBASE would work better. >> >> Without naming specifics, there are at least 4 or 5 different >> implementations of HBASE sources, each at varying level of development and >> different requirements (HBASE release version, Kerberos support etc) >> &g

Re: Spark SQL Thriftserver with HBase

2016-10-08 Thread Mich Talebzadeh
d work better. >> >> Without naming specifics, there are at least 4 or 5 different >> implementations of HBASE sources, each at varying level of development and >> different requirements (HBASE release version, Kerberos support etc) >> >> >> ___

Re: Spark SQL Thriftserver with HBase

2016-10-08 Thread Benjamin Kim
aming specifics, there are at least 4 or 5 different implementations > of HBASE sources, each at varying level of development and different > requirements (HBASE release version, Kerberos support etc) > > > _____ > From: Benjamin Kim mailto:bbuil...

Re: Spark SQL Thriftserver with HBase

2016-10-08 Thread Mich Talebzadeh
ease version, Kerberos support etc) > > > _ > From: Benjamin Kim > Sent: Saturday, October 8, 2016 11:26 AM > Subject: Re: Spark SQL Thriftserver with HBase > To: Mich Talebzadeh > Cc: , Felix Cheung > > > > Mich, > > Are you talking about the Phoenix JDBC Server? If s

Re: Spark SQL Thriftserver with HBase

2016-10-08 Thread Felix Cheung
rsion, Kerberos support etc) _ From: Benjamin Kim mailto:bbuil...@gmail.com>> Sent: Saturday, October 8, 2016 11:26 AM Subject: Re: Spark SQL Thriftserver with HBase To: Mich Talebzadeh mailto:mich.talebza...@gmail.com>> Cc: mailto:user@spark.apache.or

Re: Spark SQL Thriftserver with HBase

2016-10-08 Thread Benjamin Kim
gt; loss, damage or destruction. > > > On 8 October 2016 at 19:05, Felix Cheung <mailto:felixcheun...@hotmail.com>> wrote: > Great, then I think those packages as Spark data source should allow you to > do exactly that (replace org.apache.spark.sql.jdbc with HBASE o

Re: Spark SQL Thriftserver with HBase

2016-10-08 Thread Benjamin Kim
experience with this! > > > _ > From: Benjamin Kim mailto:bbuil...@gmail.com>> > Sent: Saturday, October 8, 2016 11:00 AM > Subject: Re: Spark SQL Thriftserver with HBase > To: Felix Cheung <mailto:felixcheun...@hotmail.com>> > Cc: m

Re: Spark SQL Thriftserver with HBase

2016-10-08 Thread Mich Talebzadeh
or destruction. On 8 October 2016 at 19:05, Felix Cheung wrote: > Great, then I think those packages as Spark data source should allow you > to do exactly that (replace org.apache.spark.sql.jdbc with HBASE one) > > I do think it will be great to get more examples around this thoug

Re: Spark SQL Thriftserver with HBase

2016-10-08 Thread Felix Cheung
! _ From: Benjamin Kim mailto:bbuil...@gmail.com>> Sent: Saturday, October 8, 2016 11:00 AM Subject: Re: Spark SQL Thriftserver with HBase To: Felix Cheung mailto:felixcheun...@hotmail.com>> Cc: mailto:user@spark.apache.org>> Felix, My goal is to use Spark SQL JDBC Thri

Re: Spark SQL Thriftserver with HBase

2016-10-08 Thread Benjamin Kim
Thrift Server (with USING, > http://spark.apache.org/docs/latest/sql-programming-guide.html#tab_sql_10 > <http://spark.apache.org/docs/latest/sql-programming-guide.html#tab_sql_10>). > > > _ > From: Benjamin Kim mailto:bbuil...@gmail.com>&

Re: Spark SQL Thriftserver with HBase

2016-10-08 Thread Felix Cheung
tab_sql_10). _ From: Benjamin Kim mailto:bbuil...@gmail.com>> Sent: Saturday, October 8, 2016 10:40 AM Subject: Re: Spark SQL Thriftserver with HBase To: Felix Cheung mailto:felixcheun...@hotmail.com>> Cc: mailto:user@spark.apache.org>> Felix, The only alternative way is to create

Re: Spark SQL Thriftserver with HBase

2016-10-08 Thread Benjamin Kim
Felix, The only alternative way is to create a stored procedure (udf) in database terms that would run Spark scala code underneath. In this way, I can use Spark SQL JDBC Thriftserver to execute it using SQL code passing the key, values I want to UPSERT. I wonder if this is possible since I cann

Re: Spark SQL Thriftserver with HBase

2016-10-08 Thread Felix Cheung
HBase has released support for Spark hbase.apache.org/book.html#spark And if you search you should find several alternative approaches. On Fri, Oct 7, 2016 at 7:56 AM -0700, "Benjamin Kim" mailto:bbuil...@gmail.com>> wrote: Does anyone know if Spark

Re: Spark SQL Thriftserver

2016-09-13 Thread Mich Talebzadeh
Actually this is what it says Connecting to jdbc:hive2://rhes564:10055 Connected to: Spark SQL (version 2.0.0) Driver: Hive JDBC (version 1.2.1.spark2) Transaction isolation: TRANSACTION_REPEATABLE_READ Beeline version 1.2.1.spark2 by Apache Hive So it uses Spark SQL. However, they do not seem to

Re: Spark SQL Thriftserver

2016-09-13 Thread Takeshi Yamamuro
Hi, all Spark STS just uses HiveContext inside and does not use MR. Anyway, Spark STS misses some HiveServer2 functionalities such as HA (See: https://issues.apache.org/jira/browse/SPARK-11100) and has some known issues there. So, you'd better off checking all the jira issues related to STS for co

Re: Spark SQL Thriftserver

2016-09-13 Thread ayan guha
Hi AFAIK STS uses Spark SQL and not Map Reduce. Is that not correct? Best Ayan On Wed, Sep 14, 2016 at 8:51 AM, Mich Talebzadeh wrote: > STS will rely on Hive execution engine. My Hive uses Spark execution > engine so STS will pass the SQL to Hive and let it do the work and return > the result

Re: Spark SQL Thriftserver

2016-09-13 Thread Mich Talebzadeh
STS will rely on Hive execution engine. My Hive uses Spark execution engine so STS will pass the SQL to Hive and let it do the work and return the result set which beeline /usr/lib/spark-2.0.0-bin-hadoop2.6/bin/beeline ${SPARK_HOME}/bin/beeline -u jdbc:hive2://rhes564:10055 -n hduser -p

Re: Spark SQL Thriftserver

2016-09-13 Thread Benjamin Kim
Mich, It sounds like that there would be no harm in changing then. Are you saying that using STS would still use MapReduce to run the SQL statements? What our users are doing in our CDH 5.7.2 installation is changing the execution engine to Spark when connected to HiveServer2 to get faster resu

Re: Spark SQL Thriftserver

2016-09-13 Thread Mich Talebzadeh
Hi, Spark Thrift server (STS) still uses hive thrift server. If you look at $SPARK_HOME/sbin/start-thriftserver.sh you will see (mine is Spark 2) function usage { echo "Usage: ./sbin/start-thriftserver [options] [thrift server options]" pattern="usage" *pattern+="\|Spark assembly has been b

Re: Spark SQL Thriftserver and Hive UDF in Production

2015-10-19 Thread Todd Nist
>From tableau, you should be able to use the Initial SQL option to support this: So in Tableau add the following to the “Initial SQL” create function myfunc AS 'myclass' using jar 'hdfs:///path/to/jar'; HTH, Todd On Mon, Oct 19, 2015 at 11:22 AM, Deenar Toraskar wrote: > Reece > > You can

Re: Spark SQL Thriftserver and Hive UDF in Production

2015-10-19 Thread Deenar Toraskar
Reece You can do the following. Start the spark-shell. Register the UDFs in the shell using sqlContext, then start the Thrift Server using startWithContext from the spark shell: https://github.com/apache/spark/blob/master/sql/hive- thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver

RE: Spark SQL Thriftserver and Hive UDF in Production

2015-10-18 Thread Mohammed Guller
Have you tried registering the function using the Beeline client? Another alternative would be to create a Spark SQL UDF and launch the Spark SQL Thrift server programmatically. Mohammed -Original Message- From: ReeceRobinson [mailto:re...@therobinsons.gen.nz] Sent: Sunday, October 18,

Re: Spark SQL ThriftServer Impersonation Support

2015-05-03 Thread Night Wolf
Thanks Andrew. What version of HS2 is the SparkSQL thrift server using? What would be involved in updating? Is it a simple case of increasing the deep version in one of the project POMs? Cheers, ~N On Sat, May 2, 2015 at 11:38 AM, Andrew Lee wrote: > Hi N, > > See: https://issues.apache.org/jir