Return-Path: X-Original-To: apmail-phoenix-dev-archive@minotaur.apache.org Delivered-To: apmail-phoenix-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5EB26179E3 for ; Tue, 9 Jun 2015 23:43:12 +0000 (UTC) Received: (qmail 63851 invoked by uid 500); 9 Jun 2015 23:43:12 -0000 Delivered-To: apmail-phoenix-dev-archive@phoenix.apache.org Received: (qmail 63803 invoked by uid 500); 9 Jun 2015 23:43:12 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 63791 invoked by uid 99); 9 Jun 2015 23:43:12 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jun 2015 23:43:12 +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 C04F5CCD3F for ; Tue, 9 Jun 2015 23:43:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.991 X-Spam-Level: X-Spam-Status: No, score=0.991 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 1GltOpV5Y2wG for ; Tue, 9 Jun 2015 23:43:01 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 2A05D27621 for ; Tue, 9 Jun 2015 23:43:01 +0000 (UTC) Received: (qmail 63641 invoked by uid 99); 9 Jun 2015 23:43:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jun 2015 23:43:01 +0000 Date: Tue, 9 Jun 2015 23:43:00 +0000 (UTC) From: "Nick Dimiduk (JIRA)" To: dev@phoenix.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PHOENIX-2033) PSQ log environment details on launch MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PHOENIX-2033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nick Dimiduk updated PHOENIX-2033: ---------------------------------- Attachment: PHOENIX-2033.00.patch Simple patch; with this I see {noformat} $ ./bin/queryserver.py 15/06/09 16:37:30 INFO util.ServerCommandLine: env:TERM=screen-256color 15/06/09 16:37:30 INFO util.ServerCommandLine: env:TERM_PROGRAM_VERSION=326 15/06/09 16:37:30 INFO util.ServerCommandLine: env:JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home 15/06/09 16:37:30 INFO util.ServerCommandLine: env:SHLVL=2 15/06/09 16:37:30 INFO util.ServerCommandLine: env:HBASE_HOME=/Users/ndimiduk/repos/hbase 15/06/09 16:37:30 INFO util.ServerCommandLine: env:TERM_PROGRAM=Apple_Terminal 15/06/09 16:37:30 INFO util.ServerCommandLine: env:__CF_USER_TEXT_ENCODING=0x1F6:0:0 15/06/09 16:37:30 INFO util.ServerCommandLine: env:TMUX=/private/var/folders/qj/_4zc7trx64j_9cq7dc5q1f_40000gp/T/tmux-502/default,1815,0 15/06/09 16:37:30 INFO util.ServerCommandLine: env:PWD=/Users/ndimiduk/repos/phoenix 15/06/09 16:37:30 INFO util.ServerCommandLine: env:TERM_SESSION_ID=B0744DF4-FCC9-4D18-ADAA-7B124AE01352 15/06/09 16:37:30 INFO util.ServerCommandLine: env:JAVA_MAIN_CLASS_4506=org.apache.phoenix.queryserver.server.Main 15/06/09 16:37:30 INFO util.ServerCommandLine: env:HBASE_CONF_DIR=/Users/ndimiduk/repos/hbase/conf 15/06/09 16:37:30 INFO util.ServerCommandLine: env:LOGNAME=ndimiduk 15/06/09 16:37:30 INFO util.ServerCommandLine: env:_=./bin/queryserver.py 15/06/09 16:37:30 INFO util.ServerCommandLine: env:SSH_AUTH_SOCK=/tmp/launch-bDKJZQ/Listeners 15/06/09 16:37:30 INFO util.ServerCommandLine: env:__CHECKFIX1436934=1 15/06/09 16:37:30 INFO util.ServerCommandLine: env:COMP_WORDBREAKS= "'><;|&(: 15/06/09 16:37:30 INFO util.ServerCommandLine: env:OLDPWD=/tmp 15/06/09 16:37:30 INFO util.ServerCommandLine: env:SHELL=/bin/bash 15/06/09 16:37:30 INFO util.ServerCommandLine: env:TMPDIR=/var/folders/qj/_4zc7trx64j_9cq7dc5q1f_40000gp/T/ 15/06/09 16:37:30 INFO util.ServerCommandLine: env:EDITOR=emacsclient 15/06/09 16:37:30 INFO util.ServerCommandLine: env:PATH=/usr/local/bin:/usr/local/sbin:/Users/ndimiduk/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/sbin:/Users/ndimiduk/bin:/Users/ndimiduk/.rvm/bin:/Users/ndi miduk/repos/hbase/bin:/Users/ndimiduk/repos/hive/packaging/target/apache-hive-1.2.0-SNAPSHOT-bin/apache-hive-1.2.0-SNAPSHOT-bin/bin:/Users/ndimiduk/.rvm/bin:/Users/ndimiduk/repos/hbase/bin:/Users/ndimiduk/repos/hive/packaging/target/apa che-hive-1.2.0-SNAPSHOT-bin/apache-hive-1.2.0-SNAPSHOT-bin/bin 15/06/09 16:37:30 INFO util.ServerCommandLine: env:DISPLAY=/tmp/launch-fapaiu/org.macosforge.xquartz:0 15/06/09 16:37:30 INFO util.ServerCommandLine: env:CLICOLOR=1 15/06/09 16:37:30 INFO util.ServerCommandLine: env:USER=ndimiduk 15/06/09 16:37:30 INFO util.ServerCommandLine: env:HOME=/Users/ndimiduk 15/06/09 16:37:30 INFO util.ServerCommandLine: env:Apple_PubSub_Socket_Render=/tmp/launch-vL1Wtm/Render 15/06/09 16:37:30 INFO util.ServerCommandLine: env:TMUX_PANE=%15 15/06/09 16:37:30 INFO util.ServerCommandLine: env:LANG=en_US.UTF-8 15/06/09 16:37:30 INFO util.ServerCommandLine: vmName=Java HotSpot(TM) 64-Bit Server VM, vmVendor=Oracle Corporation, vmVersion=24.65-b04 15/06/09 16:37:30 INFO util.ServerCommandLine: vmInputArguments=[-Dproc_phoenixserver, -Dlog4j.configuration=file:/Users/ndimiduk/repos/phoenix/bin/log4j.properties, -Dpsql.root.logger=INFO,console, -Dpsql.log.dir=., -Dpsql.log.file=psq l.log] ... {noformat} Only trouble is that this is an HBase private API. > PSQ log environment details on launch > ------------------------------------- > > Key: PHOENIX-2033 > URL: https://issues.apache.org/jira/browse/PHOENIX-2033 > Project: Phoenix > Issue Type: Improvement > Reporter: Nick Dimiduk > Assignee: Nick Dimiduk > Fix For: 5.0.0, 4.5.0, 4.4.1 > > Attachments: PHOENIX-2033.00.patch > > > Follow HBase's lead and include environment details in log at process launch. There's already a handy utility for this in {{ServerCommandLine}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332)