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

Nemon Lou commented on HIVE-12616:
----------------------------------

Method SparkUtilities#isDedicatedCluster
{code}
  public static boolean isDedicatedCluster(Configuration conf) {
    String master = conf.get("spark.master");
    return master.startsWith("yarn-") || master.startsWith("local");
  }
{code}
Changing to
{code}
  public static boolean isDedicatedCluster(Configuration conf) {
    String master = conf.get("spark.master","");
    return master.startsWith("yarn-") || master.startsWith("local");
  }
{code}
can fix this bug.But why "spark.master" is null after session reuse ? I haven't 
find out.


> 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