Skip to content

Conversation

@marmbrus
Copy link
Contributor

No description provided.

@SparkQA
Copy link

SparkQA commented Sep 24, 2014

QA tests have started for PR 2515 at commit 7866fad.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Sep 24, 2014

QA tests have finished for PR 2515 at commit 7866fad.

  • This patch passes unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Sep 24, 2014

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/20744/

@rxin
Copy link
Contributor

rxin commented Sep 27, 2014

Merging in master. Thanks.

@asfgit asfgit closed this in d8a9d1d Sep 27, 2014
@pwendell
Copy link
Contributor

Is this actually usable in this form? IIRC there are a bunch of e.g. command line arguments the JDBC server takes in order to initialize. What about having a form where you can also pass in an arguments array in addition to a context.

@marmbrus
Copy link
Contributor Author

@pwendell yeah, sorry I probably should have labeled this WIP, but it does actually work in this form. You just can't configure things like the port to listen on. Unfortunately I think those are read from env vars and so can't be set at runtime anyway...

@marmbrus marmbrus deleted the jdbcExistingContext branch November 19, 2014 02:45
@chernetsov
Copy link
Contributor

@marmbrus Hi, Michael.

I am trying to make use of the commit you introduced (access my rdd exposed to sqlcontext via registerTempTable) but have problems with it:

  • I cherry-picked the change to 1.1.0 release
  • edited my spark app to call HiveThriftServer2.startWithContext(sqlContext) and added app thread wait() in the very end so that job does not finish
  • launched my app via spark-submit on local master
  • all the programmatical sql operations (like sqlContext.sql("select * from ...").collect().foreach(println)) work fine
  • thift server starts as well
  • but connecting via beeline shows that no tables are exposed to it
0: jdbc:hive2://localhost:10000> show tables;                         
+---------+
| result  |
+---------+
+---------+
No rows selected (0.136 seconds)

Is there any other trick I should do?

@marmbrus
Copy link
Contributor Author

Temporary tables don't show up in show tables (we should fix this, feel free to open a JIRA). You should still be able to query it though.

@chernetsov
Copy link
Contributor

Thank you for quick answer, @marmbrus
Indeed I was able to query table.

Created the jira to fix show tables: https://issues.apache.org/jira/browse/SPARK-4865

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants