You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yin Huai (JIRA)" <ji...@apache.org> on 2016/03/08 00:21:40 UTC

[jira] [Comment Edited] (SPARK-13726) Spark 1.6.0 stopping working for HiveThriftServer2 and registerTempTable

    [ https://issues.apache.org/jira/browse/SPARK-13726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15183991#comment-15183991 ] 

Yin Huai edited comment on SPARK-13726 at 3/7/16 11:21 PM:
-----------------------------------------------------------

I took a look at the code. I think this change is caused by Session Management added in 1.6 (https://issues.apache.org/jira/browse/SPARK-10810). Basically, every jdbc session creates its own session. So, it does not see temp table registered through df.registerTempTable, which is registered in another session. You can set {{spark.sql.hive.thriftServer.singleSession}} to {{true}} to change the behavior back.


was (Author: yhuai):
I took a look at the code. I think this change is caused by Session Management added in 1.6. Basically, every jdbc session creates its own session. So, it does not see temp table registered through df.registerTempTable, which is registered in another session. You can set {{spark.sql.hive.thriftServer.singleSession}} to {{true}} to change the behavior back.

> Spark 1.6.0 stopping working for HiveThriftServer2 and registerTempTable
> ------------------------------------------------------------------------
>
>                 Key: SPARK-13726
>                 URL: https://issues.apache.org/jira/browse/SPARK-13726
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.6.0
>            Reporter: Michael Nguyen
>            Priority: Blocker
>
> In Spark 1.5.2, DataFrame.registerTempTable works and  hiveContext.table(registerTableName) and HiveThriftServer2 see those tables.
> In Spark 1.6.0, hiveContext.table(registerTableName) and HiveThriftServer2 do not see those tables, even though DataFrame.registerTempTable does not return an error.
> Since this feature used to work in Spark 1.5.2, there is existing code that breaks after upgrading to Spark 1.6.0. so this issue is a blocker and urgent. Therefore, please have it fixed asap.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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