From user-return-26064-archive-asf-public=cust-asf.ponee.io@flink.apache.org Wed Feb 20 16:21:16 2019 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 1235B18075F for ; Wed, 20 Feb 2019 17:21:15 +0100 (CET) Received: (qmail 79906 invoked by uid 500); 20 Feb 2019 16:21:14 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@flink.apache.org Received: (qmail 79890 invoked by uid 99); 20 Feb 2019 16:21:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2019 16:21:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 54888C27CD for ; Wed, 20 Feb 2019 16:21:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.798 X-Spam-Level: * X-Spam-Status: No, score=1.798 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=live.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 52AqmY2Ndxvg for ; Wed, 20 Feb 2019 16:21:12 +0000 (UTC) Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-oln040092004076.outbound.protection.outlook.com [40.92.4.76]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 00F515FB8E for ; Wed, 20 Feb 2019 16:21:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=d+T10qJ1vCs/teo9S9g03UdCOKNmhwkxzWERZSbcBDQ=; b=rgQrKIo7Sv+GihQwTaZaK98YzI2KyJyKHkaNW2vIrvhJSpyYbC+hiOfQhomq/CB+gFEBRxgAIoS4uF45HzQgFJ2ZjXM8/VmNtoPQkN8IZ/q4mk8SzF08cceHBtoTB/ZCI/7UfYbKYft6S0WXQWS1aduQJSjzFnk+yuCBsp/egUrZIrvpS42WWQAy72K6ladNoFkgFgCUCeToWnLgxn2xpKOcMshODN1jSz7hjgzENZ/E4SOZA9Sx9h7iWKXoZm+4TIdD4O4Lm0clpvWj9WMm2cOz3MfcH+JkQXleB3fIqWmviKgc3gMvhOPRRKHrzOwSU6GQnKymHUZyxvu/CnwbGA== Received: from SN1NAM02FT027.eop-nam02.prod.protection.outlook.com (10.152.72.58) by SN1NAM02HT171.eop-nam02.prod.protection.outlook.com (10.152.73.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1643.11; Wed, 20 Feb 2019 16:21:04 +0000 Received: from DM5PR1401MB2107.namprd14.prod.outlook.com (10.152.72.56) by SN1NAM02FT027.mail.protection.outlook.com (10.152.72.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1643.11 via Frontend Transport; Wed, 20 Feb 2019 16:21:04 +0000 Received: from DM5PR1401MB2107.namprd14.prod.outlook.com ([fe80::c4e:f50f:d9ba:d8fd]) by DM5PR1401MB2107.namprd14.prod.outlook.com ([fe80::c4e:f50f:d9ba:d8fd%3]) with mapi id 15.20.1622.018; Wed, 20 Feb 2019 16:21:04 +0000 From: Yun Tang To: peibin wang , "user@flink.apache.org" Subject: Re: How to use my custom log4j.properties when running minicluster in idea Thread-Topic: How to use my custom log4j.properties when running minicluster in idea Thread-Index: AQHUyM32nHK5bSpmsUq/AfT121LVE6Xo3J81 Date: Wed, 20 Feb 2019 16:21:04 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:704D053F79F1789B8DB892BAF80E99F7ED27BFB3B9E969094CED2BAFF96641AF;UpperCasedChecksum:1DE979EEF8B68BAD6DED80AA32DD090CBF5DD8721ECD62CB8D64C055DEF6A7DA;SizeAsReceived:6879;Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [4zhkpenlJrHfsX8HDHjsjyefuwPQQgpB] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(20181119070)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031322404)(2017031324274)(2017031323274)(1601125500)(1603101475)(1701031045);SRVR:SN1NAM02HT171; x-ms-traffictypediagnostic: SN1NAM02HT171: x-microsoft-antispam-message-info: U+RtKisLAUNHhhlI7UkI2Eb4+wjYBvW0U9SZEzhiS3dD3ysL3tRpDkw3lOTXpPCf Content-Type: multipart/alternative; boundary="_000_DM5PR1401MB21077F1399DA2117E19E6904DA7D0DM5PR1401MB2107_" MIME-Version: 1.0 X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 890d8b24-3c0a-4d74-8473-08d6974f695d X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Feb 2019 16:21:04.4900 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1NAM02HT171 --_000_DM5PR1401MB21077F1399DA2117E19E6904DA7D0DM5PR1401MB2107_ Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable Hi Peibin I believe you could refer to the directory structure of flink/flink-example= s/flink-examples-streaming/src/main/java/org/apache/flink/streaming/example= s/wordcount/WordCount.java, and the its log4j.properties file located at fl= ink/flink-examples/flink-examples-streaming/src/main/resources/log4j.proper= ties . You could compare your directory structure and the file contents with those= I mentioned above and I believe you could finally make it work. Best Yun Tang ________________________________ From: peibin wang Sent: Tuesday, February 19, 2019 12:04 To: user@flink.apache.org Subject: How to use my custom log4j.properties when running minicluster in = idea Hi, I am running flink job in the Intellij IDEA with mini cluster (not = submit it to the flink cluster ) for convenience . Now I have put my custom log config file ( both log4j.properties and logbac= k.xml) in src/main/resources/. But it does not work. Is there any solution= s=1B$B!)=1B(B --_000_DM5PR1401MB21077F1399DA2117E19E6904DA7D0DM5PR1401MB2107_ Content-Type: text/html; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable
Hi Peibin

I believe you could refer to the directory structure of flink/flink-examples/flink-examples-streaming/src/main/java/org/apache/flin= k/streaming/examples/wordcount/WordCount.java, and the its log4j.pro= perties file located at flink/flink-exam= ples/flink-examples-streaming/src/main/resources/log4j.properties .

You could compare your directory structure and the file contents with those= I mentioned above and I believe you could finally make it work.

Best
Yun Tang

From: peibin wang <wangp= eibin713@gmail.com>
Sent: Tuesday, February 19, 2019 12:04
To: user@flink.apache.org
Subject: How to use my custom log4j.properties when running miniclus= ter in idea
 

Hi,

     = ;  I am running flink job in the Intellij IDEA  with mini cluster= (not submit it to the flink cluster ) for  convenience .

= Now I have put my custom log config file ( both log4j.properties and logbac= k.xml)  in src/main/resources/. But it does not work. Is there any sol= utions=1B$B!)=1B(B

--_000_DM5PR1401MB21077F1399DA2117E19E6904DA7D0DM5PR1401MB2107_--