Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A6F74200B6B for ; Thu, 25 Aug 2016 10:41:37 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A5898160A94; Thu, 25 Aug 2016 08:41:37 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1F25D160A93 for ; Thu, 25 Aug 2016 10:41:36 +0200 (CEST) Received: (qmail 73771 invoked by uid 500); 25 Aug 2016 08:41:36 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flink.apache.org Delivered-To: mailing list user@flink.apache.org Received: (qmail 73761 invoked by uid 99); 25 Aug 2016 08:41:36 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2016 08:41:36 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D03C7C0317 for ; Thu, 25 Aug 2016 08:41:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.486 X-Spam-Level: *** X-Spam-Status: No, score=3.486 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id DM2vqngSojRt for ; Thu, 25 Aug 2016 08:41:33 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 4CC6A5F30B for ; Thu, 25 Aug 2016 08:41:33 +0000 (UTC) Received: from mjoe.nabble.com (unknown [162.253.133.57]) by mwork.nabble.com (Postfix) with ESMTP id 5133F40887292 for ; Thu, 25 Aug 2016 01:41:32 -0700 (MST) Date: Thu, 25 Aug 2016 01:39:57 -0700 (PDT) From: Renkai To: user@flink.apache.org Message-ID: <1472114397746-8681.post@n4.nabble.com> In-Reply-To: <1472097129092-8676.post@n4.nabble.com> References: <1472097129092-8676.post@n4.nabble.com> Subject: Re: How to set a custom JAVA_HOME when run flink on YARN? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Thu, 25 Aug 2016 08:41:37 -0000 I think I solved myself,just add -yD yarn.taskmanager.env.JAVA_HOME=xx in the command line, a little hard to find the solution though. -- View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/How-to-set-a-custom-JAVA-HOME-when-run-flink-on-YARN-tp8676p8681.html Sent from the Apache Flink User Mailing List archive. mailing list archive at Nabble.com.