[
https://issues.apache.org/jira/browse/HIVE-12616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15046799#comment-15046799
]
Nemon Lou commented on HIVE-12616:
----------------------------------
Another finding.Setting spark.master explicitly can also fix this.
"set spark.master=yarn-cluster;"
I used to use a spark-defaults.conf on HiveServer2 side ,which contains
"spark.master = yarn-cluster".
> 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)