You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chukwa.apache.org by "Prachi Bedekar (JIRA)" <ji...@apache.org> on 2010/11/03 08:50:26 UTC
[jira] Created: (CHUKWA-541) How to get the current status of
collector
How to get the current status of collector
------------------------------------------
Key: CHUKWA-541
URL: https://issues.apache.org/jira/browse/CHUKWA-541
Project: Chukwa
Issue Type: Task
Components: Data Processors
Affects Versions: 0.4.0
Environment: Linux operating syatem
Reporter: Prachi Bedekar
Fix For: 0.4.0
Hi,
I want to write the shell script for tracking the collector status after every one min. And if collector is down at some moment, I want to restart it.
I have done rest of the thing related to time n all, but I am not getting how to track the current status of the collector. So that I can take the necessary action.
Please reply as early as you can.
Thanks in advance.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CHUKWA-541) How to get the current status of
collector
Posted by "Ari Rabkin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CHUKWA-541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927917#action_12927917 ]
Ari Rabkin commented on CHUKWA-541:
-----------------------------------
Hm? No; that was part of the URL.
If your collector is at http://foo, then the status page is
http://foo/chukwa?ping=true
You'd use a tool like wget, I imagine, to check whether the collector is up.
> How to get the current status of collector
> ------------------------------------------
>
> Key: CHUKWA-541
> URL: https://issues.apache.org/jira/browse/CHUKWA-541
> Project: Chukwa
> Issue Type: Task
> Components: Data Processors
> Affects Versions: 0.4.0
> Environment: Linux operating syatem
> Reporter: Prachi Bedekar
> Fix For: 0.4.0
>
>
> Hi,
> I want to write the shell script for tracking the collector status after every one min. And if collector is down at some moment, I want to restart it.
> I have done rest of the thing related to time n all, but I am not getting how to track the current status of the collector. So that I can take the necessary action.
> Please reply as early as you can.
> Thanks in advance.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CHUKWA-541) How to get the current status of
collector
Posted by "Prachi Bedekar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CHUKWA-541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12929465#action_12929465 ]
Prachi Bedekar commented on CHUKWA-541:
---------------------------------------
For a particular time the collector is running or not is achieved with the help of
ps -ef | grep collector | wc -l
if its value is less than 1 then no collecor is running. At that time the output will be
hadoop@ps6007:/usr/local/hadoop_old/hadoop_old/bin$ ps -ef | grep collecor | wc -l
hadoop 25815 13732 0 11:06 pts/0 00:00:00 grep collecor
But if collector is running then output will be
hadoop@ps6007:/usr/local/hadoop_old/hadoop_old/bin$ ps -ef | grep collector | wc -l
postgres 2595 2589 0 Sep29 ? 00:00:38 postgres: stats collector process
hadoop 26741 13732 0 11:18 pts/0 00:00:00 grep collector
from this we will come to know the status of the collector.
Thank you all for putting effort to solve this issue.
> How to get the current status of collector
> ------------------------------------------
>
> Key: CHUKWA-541
> URL: https://issues.apache.org/jira/browse/CHUKWA-541
> Project: Chukwa
> Issue Type: Task
> Components: Data Processors
> Affects Versions: 0.4.0
> Environment: Linux operating syatem
> Reporter: Prachi Bedekar
> Fix For: 0.4.0
>
>
> Hi,
> I want to write the shell script for tracking the collector status after every one min. And if collector is down at some moment, I want to restart it.
> I have done rest of the thing related to time n all, but I am not getting how to track the current status of the collector. So that I can take the necessary action.
> Please reply as early as you can.
> Thanks in advance.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CHUKWA-541) How to get the current status of
collector
Posted by "Prachi Bedekar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CHUKWA-541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12929464#action_12929464 ]
Prachi Bedekar commented on CHUKWA-541:
---------------------------------------
For a particular time the collector is running or not is achieved with the help of
ps -ef | grep collector | wc -l
if its value is less than 1 then no collecor is running. At that time the output will be
hadoop@ps6007:/usr/local/hadoop_old/hadoop_old/bin$ ps -ef | grep collecor
hadoop 25815 13732 0 11:06 pts/0 00:00:00 grep collecor
But if collector is running then output will be
hadoop@ps6007:/usr/local/hadoop_old/hadoop_old/bin$ ps -ef | grep collector
postgres 2595 2589 0 Sep29 ? 00:00:38 postgres: stats collector process
hadoop 26741 13732 0 11:18 pts/0 00:00:00 grep collector
from this we will come to know the status of the collector.
Thank you all for putting effort to solve this issue.
> How to get the current status of collector
> ------------------------------------------
>
> Key: CHUKWA-541
> URL: https://issues.apache.org/jira/browse/CHUKWA-541
> Project: Chukwa
> Issue Type: Task
> Components: Data Processors
> Affects Versions: 0.4.0
> Environment: Linux operating syatem
> Reporter: Prachi Bedekar
> Fix For: 0.4.0
>
>
> Hi,
> I want to write the shell script for tracking the collector status after every one min. And if collector is down at some moment, I want to restart it.
> I have done rest of the thing related to time n all, but I am not getting how to track the current status of the collector. So that I can take the necessary action.
> Please reply as early as you can.
> Thanks in advance.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CHUKWA-541) How to get the current status of
collector
Posted by "Prachi Bedekar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CHUKWA-541?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Prachi Bedekar resolved CHUKWA-541.
-----------------------------------
Resolution: Fixed
> How to get the current status of collector
> ------------------------------------------
>
> Key: CHUKWA-541
> URL: https://issues.apache.org/jira/browse/CHUKWA-541
> Project: Chukwa
> Issue Type: Task
> Components: Data Processors
> Affects Versions: 0.4.0
> Environment: Linux operating syatem
> Reporter: Prachi Bedekar
> Fix For: 0.4.0
>
>
> Hi,
> I want to write the shell script for tracking the collector status after every one min. And if collector is down at some moment, I want to restart it.
> I have done rest of the thing related to time n all, but I am not getting how to track the current status of the collector. So that I can take the necessary action.
> Please reply as early as you can.
> Thanks in advance.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CHUKWA-541) How to get the current status of
collector
Posted by "Prachi Bedekar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CHUKWA-541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927776#action_12927776 ]
Prachi Bedekar commented on CHUKWA-541:
---------------------------------------
shall I keep track on collectors log file to get the status of it? Or is their any other way to do this?
> How to get the current status of collector
> ------------------------------------------
>
> Key: CHUKWA-541
> URL: https://issues.apache.org/jira/browse/CHUKWA-541
> Project: Chukwa
> Issue Type: Task
> Components: Data Processors
> Affects Versions: 0.4.0
> Environment: Linux operating syatem
> Reporter: Prachi Bedekar
> Fix For: 0.4.0
>
>
> Hi,
> I want to write the shell script for tracking the collector status after every one min. And if collector is down at some moment, I want to restart it.
> I have done rest of the thing related to time n all, but I am not getting how to track the current status of the collector. So that I can take the necessary action.
> Please reply as early as you can.
> Thanks in advance.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CHUKWA-541) How to get the current status of
collector
Posted by "Ari Rabkin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CHUKWA-541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927781#action_12927781 ]
Ari Rabkin commented on CHUKWA-541:
-----------------------------------
There's a web status page:
<collector-url>/chukwa?ping=true
That'll give you whether it's up, and also whether it's writing data.
> How to get the current status of collector
> ------------------------------------------
>
> Key: CHUKWA-541
> URL: https://issues.apache.org/jira/browse/CHUKWA-541
> Project: Chukwa
> Issue Type: Task
> Components: Data Processors
> Affects Versions: 0.4.0
> Environment: Linux operating syatem
> Reporter: Prachi Bedekar
> Fix For: 0.4.0
>
>
> Hi,
> I want to write the shell script for tracking the collector status after every one min. And if collector is down at some moment, I want to restart it.
> I have done rest of the thing related to time n all, but I am not getting how to track the current status of the collector. So that I can take the necessary action.
> Please reply as early as you can.
> Thanks in advance.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CHUKWA-541) How to get the current status of
collector
Posted by "Prachi Bedekar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CHUKWA-541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927786#action_12927786 ]
Prachi Bedekar commented on CHUKWA-541:
---------------------------------------
That means in the script, I have to enter the condition stated above.
that is chukwa?ping=true
then
do
--
--
else
do
--
--
fi
this will be the scenario. right?
> How to get the current status of collector
> ------------------------------------------
>
> Key: CHUKWA-541
> URL: https://issues.apache.org/jira/browse/CHUKWA-541
> Project: Chukwa
> Issue Type: Task
> Components: Data Processors
> Affects Versions: 0.4.0
> Environment: Linux operating syatem
> Reporter: Prachi Bedekar
> Fix For: 0.4.0
>
>
> Hi,
> I want to write the shell script for tracking the collector status after every one min. And if collector is down at some moment, I want to restart it.
> I have done rest of the thing related to time n all, but I am not getting how to track the current status of the collector. So that I can take the necessary action.
> Please reply as early as you can.
> Thanks in advance.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CHUKWA-541) How to get the current status of
collector
Posted by "Bill Graham (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CHUKWA-541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928477#action_12928477 ]
Bill Graham commented on CHUKWA-541:
------------------------------------
Note that there's another approach in keeping collectors running like CHUKWA-533, which is to make the collector more fault-tolerant. There was a discussion on the list not long ago about this.
> How to get the current status of collector
> ------------------------------------------
>
> Key: CHUKWA-541
> URL: https://issues.apache.org/jira/browse/CHUKWA-541
> Project: Chukwa
> Issue Type: Task
> Components: Data Processors
> Affects Versions: 0.4.0
> Environment: Linux operating syatem
> Reporter: Prachi Bedekar
> Fix For: 0.4.0
>
>
> Hi,
> I want to write the shell script for tracking the collector status after every one min. And if collector is down at some moment, I want to restart it.
> I have done rest of the thing related to time n all, but I am not getting how to track the current status of the collector. So that I can take the necessary action.
> Please reply as early as you can.
> Thanks in advance.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.