From issues-return-108298-archive-asf-public=cust-asf.ponee.io@hive.apache.org Thu Mar 8 20:15:11 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id BF745180676 for ; Thu, 8 Mar 2018 20:15:10 +0100 (CET) Received: (qmail 12041 invoked by uid 500); 8 Mar 2018 19:15:09 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 12031 invoked by uid 99); 8 Mar 2018 19:15:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2018 19:15:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6C3101803B7 for ; Thu, 8 Mar 2018 19:15:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id k7UbItGd0UBk for ; Thu, 8 Mar 2018 19:15:07 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 91F435FACE for ; Thu, 8 Mar 2018 19:15:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id C89FFE00A7 for ; Thu, 8 Mar 2018 19:15:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3EA2925426 for ; Thu, 8 Mar 2018 19:15:04 +0000 (UTC) Date: Thu, 8 Mar 2018 19:15:04 +0000 (UTC) From: "Aihua Xu (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-18858) System properties in job configuration not resolved when submitting MR job MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-18858?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1639= 1760#comment-16391760 ]=20 Aihua Xu commented on HIVE-18858: --------------------------------- [~dvoros] That's right. We have to go through all the=C2=A0properties=C2=A0= to replace the values for each MR job, but I really don't have a better sol= ution. Was hoping the community could come up with a nice one.=C2=A0 > System properties in job configuration not resolved when submitting MR jo= b > -------------------------------------------------------------------------= - > > Key: HIVE-18858 > URL: https://issues.apache.org/jira/browse/HIVE-18858 > Project: Hive > Issue Type: Bug > Affects Versions: 3.0.0 > Environment: Hadoop 3.0.0 > Reporter: Daniel Voros > Assignee: Daniel Voros > Priority: Major > Attachments: HIVE-18858.1.patch > > > Since [this hadoop commit|https://github.com/apache/hadoop/commit/5eb7dbe= 9b31a45f57f2e1623aa1c9ce84a56c4d1] that was first released in 3.0.0, Config= uration has a restricted mode, that disables the resolution of system prope= rties (that happens when retrieving a configuration option). > This leads to test failures when switching to Hadoop 3.0.0 (instead of 3.= 0.0-beta1), since we're relying on the [substitution of test.tmp.dir|https:= //github.com/apache/hive/blob/05d4719eefc56676a3e0e8f706e1c5e5e1f6b345/data= /conf/hive-site.xml#L37] during the [maven build|https://github.com/apache/= hive/blob/05d4719eefc56676a3e0e8f706e1c5e5e1f6b345/pom.xml#L83]. See test r= esults on HIVE-18327. > When we're passing job configurations to Hadoop, I believe there's no way= to disable the restricted mode, since we go through some Hadoop MR calls f= irst, see here: > {code} > "HiveServer2-Background-Pool: Thread-105@9500" prio=3D5 tid=3D0x69 nid=3D= NA runnable > java.lang.Thread.State: RUNNABLE > =09 at org.apache.hadoop.conf.Configuration.addResourceObject(Configurat= ion.java:970) > =09 - locked <0x2fe6> (a org.apache.hadoop.mapred.JobConf) > =09 at org.apache.hadoop.conf.Configuration.addResource(Configuration.ja= va:895) > =09 at org.apache.hadoop.mapred.JobConf.(JobConf.java:476) > =09 at org.apache.hadoop.mapred.LocalJobRunner$Job.(LocalJobRunner= .java:162) > =09 at org.apache.hadoop.mapred.LocalJobRunner.submitJob(LocalJobRunner.= java:788) > =09 at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSub= mitter.java:254) > =09 at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1570) > =09 at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1567) > =09 at java.security.AccessController.doPrivileged(AccessController.java= :-1) > =09 at javax.security.auth.Subject.doAs(Subject.java:422) > =09 at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInf= ormation.java:1962) > =09 at org.apache.hadoop.mapreduce.Job.submit(Job.java:1567) > =09 at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:576) > =09 at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:571) > =09 at java.security.AccessController.doPrivileged(AccessController.java= :-1) > =09 at javax.security.auth.Subject.doAs(Subject.java:422) > =09 at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInf= ormation.java:1962) > =09 at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.ja= va:571) > =09 at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:562) > =09 at org.apache.hadoop.hive.ql.exec.mr.ExecDriver.execute(ExecDriver.j= ava:415) > =09 at org.apache.hadoop.hive.ql.exec.mr.MapRedTask.execute(MapRedTask.j= ava:149) > =09 at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:205) > =09 at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunne= r.java:97) > =09 at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:2314) > =09 at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1985) > =09 at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1687) > =09 at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1438) > =09 at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1432) > =09 at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOp= eration.java:248) > =09 at org.apache.hive.service.cli.operation.SQLOperation.access$700(SQL= Operation.java:90) > =09 at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork= $1.run(SQLOperation.java:340) > =09 at java.security.AccessController.doPrivileged(AccessController.java= :-1) > =09 at javax.security.auth.Subject.doAs(Subject.java:422) > =09 at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInf= ormation.java:1962) > =09 at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork= .run(SQLOperation.java:353) > =09 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.jav= a:511) > =09 at java.util.concurrent.FutureTask.run(FutureTask.java:266) > =09 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecu= tor.java:1142) > =09 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExec= utor.java:617) > =09 at java.lang.Thread.run(Thread.java:745) > {code} > I suggest to resolve all variables before passing the configuration to Ha= doop in ExecDriver. -- This message was sent by Atlassian JIRA (v7.6.3#76005)