You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Clay B. (Jira)" <ji...@apache.org> on 2019/08/31 00:44:00 UTC
[jira] [Comment Edited] (RATIS-665) Support easy metrics visibility
in the Vagrant environment
[ https://issues.apache.org/jira/browse/RATIS-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16919981#comment-16919981 ]
Clay B. edited comment on RATIS-665 at 8/31/19 12:43 AM:
---------------------------------------------------------
Hi [~elserj], I'm a bit lost. I don't see anything dumping out as configured from {{hadoop-metrics2.properties}} and I can not seem to get it to load specifying it in the classpath, both with {{-cp}} or {{$CLASSPATH}}:
{code}
vagrant@ratis-server:~$ ps 19409
PID TTY STAT TIME COMMAND
19409 pts/4 Sl+ 0:14 java -cp /tmp/metrics/hadoop-metrics2.properties -Xmx4864m -Dcom.sun.management.jmxremote.port=10003 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticat
vagrant@ratis-server:~$ head -n5 /proc/19409/environ
STY=1940.pts-0.ratis-serverSSH_CONNECTION=10.0.2.2 45896 10.0.2.15 22LANG=C.UTF-8OLDPWD=/home/vagrantJAVA_OPTS=-Xmx4864m -Dcom.sun.management.jmxremote.port=10003 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=falseCLASSPATH=/tmp/metrics/hadoop-metrics2.propertiesXDG_SESSION_ID=1USER=vagrantPWD=/home/vagrant/incubator-ratisHOME=/home/vagrantWINDOW=2SSH_CLIENT=10.0.2.2 45896 22XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktopMAIL=/var/mail/vagrantTERM=screenSHELL=/bin/bashSHLVL=6LOGNAME=vagrantXDG_RUNTIME_DIR=/run/user/1000PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/binTERMCAP=SC|screen|VT 100/ANSI X3.64 virtual terminal:\
:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\
:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\
:do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\
:le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\
vagrant@ratis-server:~$ cat /tmp/metrics/hadoop-metrics2.properties
*.period=10
*.sink.file.class=org.apache.hadoop.metrics2.sink.FileSink
ratis.sink.file.filename=/tmp/ratis-metrics.out
vagrant@ratis-server:~$ ls /tmp/ratis-metrics.out
ls: cannot access '/tmp/ratis-metrics.out': No such file or directory
{code}
I'm arguing to get {{docker-compose}} happy on my machine and will see what Ankit was achieving once that runs happily.
was (Author: clayb):
Hi [~elserj], I'm a bit lost. I don't see anything dumping out as configured from {{hadoop-metrics2.properties}} and I can not seem to get it to load specifying it in the classpath, both with {{-cp}} or {{$CLASSPATH}}:
{code}
vagrant@ratis-server:~$ ps 19409
PID TTY STAT TIME COMMAND
19409 pts/4 Sl+ 0:14 java -cp /tmp/metrics/hadoop-metrics2.properties -Xmx4864m -Dcom.sun.management.jmxremote.port=10003 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticat
vagrant@ratis-server:~$ head -n5 /proc/19409/environ
STY=1940.pts-0.ratis-serverSSH_CONNECTION=10.0.2.2 45896 10.0.2.15 22LANG=C.UTF-8OLDPWD=/home/vagrantJAVA_OPTS=-Xmx4864m -Dcom.sun.management.jmxremote.port=10003 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=falseCLASSPATH=/tmp/metrics/hadoop-metrics2.propertiesXDG_SESSION_ID=1USER=vagrantPWD=/home/vagrant/incubator-ratisHOME=/home/vagrantWINDOW=2SSH_CLIENT=10.0.2.2 45896 22XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktopMAIL=/var/mail/vagrantTERM=screenSHELL=/bin/bashSHLVL=6LOGNAME=vagrantXDG_RUNTIME_DIR=/run/user/1000PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/binTERMCAP=SC|screen|VT 100/ANSI X3.64 virtual terminal:\
:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\
:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\
:do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\
:le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\
vagrant@ratis-server:~$ cat /tmp/metrics/hadoop-metrics2.properties
*.period=10
*.sink.file.class=org.apache.hadoop.metrics2.sink.FileSink
ratis.sink.file.filename=/tmp/ratis-metrics.out
vagrant@ratis-server:~$ ls /tmp/ratis-metrics.out
ls: cannot access '/tmp/ratis-metrics.out': No such file or directory
{code
I'm arguing to get {{docker-compose}} happy on my machine and will see what Ankit was achieving once that runs happily.
> Support easy metrics visibility in the Vagrant environment
> ----------------------------------------------------------
>
> Key: RATIS-665
> URL: https://issues.apache.org/jira/browse/RATIS-665
> Project: Ratis
> Issue Type: Improvement
> Components: examples
> Reporter: Clay B.
> Assignee: Clay B.
> Priority: Trivial
> Attachments: 0001-Add-local-JMX-support.patch
>
>
> To be able to interrogate the good metrics work going on in Ratis, I would like an easier way to view the metrics available from the Ratis daemons (and clients).
--
This message was sent by Atlassian Jira
(v8.3.2#803003)