phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Dimiduk (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PHOENIX-2033) PSQ log environment details on launch
Date Tue, 09 Jun 2015 23:43:00 GMT

     [ 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)

Mime
View raw message