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

Xuefu Zhang commented on HIVE-12616:
------------------------------------

[~nemon], thanks for reporting and investigating the problem. I believe that 
the value for spark.master is null if it's not set explicitly, so comes the 
error. The proposed fix seems fine, but I'm afraid other problems will arise if 
this NPE is fixed. Thus, I think it would be better if we can add some 
validation, making sure spark.master is specified. Would you be interested in 
providing a fix? Thanks.

> NullPointerException when spark session is reused to run a mapjoin
> ------------------------------------------------------------------
>
>                 Key: HIVE-12616
>                 URL: https://issues.apache.org/jira/browse/HIVE-12616
>             Project: Hive
>          Issue Type: Bug
>          Components: Spark
>    Affects Versions: 1.3.0
>            Reporter: Nemon Lou
>            Assignee: Xuefu Zhang
>
> The way to reproduce:
> {noformat}
> set hive.execution.engine=spark;
> create table if not exists test(id int);
> create table if not exists test1(id int);
> insert into test values(1);
> insert into test1 values(1);
> select max(a.id) from test a ,test1 b
> where a.id = b.id;
> {noformat}



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

Reply via email to