You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by chernetsov <gi...@git.apache.org> on 2014/12/16 20:53:50 UTC

[GitHub] spark pull request: [SPARK-3675][SQL] Allow starting a JDBC server...

Github user chernetsov commented on the pull request:

    https://github.com/apache/spark/pull/2515#issuecomment-67220789
  
    @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?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org