Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add status command to cloud local #22

Open
jahhulbert-ccri opened this issue Feb 16, 2016 · 5 comments
Open

Add status command to cloud local #22

jahhulbert-ccri opened this issue Feb 16, 2016 · 5 comments

Comments

@jahhulbert-ccri
Copy link
Contributor

So you can run bin/cloud-local.sh status I wonder if that is really hard

@vpipkt
Copy link
Contributor

vpipkt commented Feb 23, 2016

echo "zookeeper status"
$ZOOKEEPER_HOME/bin/zkServer.sh status
echo "hadoop status"
hdfs dfsadmin -report
echo "yarn status"
yarn node -list
echo "accumulo ping tserver"
accumulo shell -u root -p secret -e ping

If things are not running this can be messy...

Kafka has some pretty powerful metrics stuff... see monitoring section of https://kafka.apache.org/08/ops.html

jconsole:
Is controller active on broker "kafka.controller":name="ActiveControllerCount",type="KafkaController" only one broker in the cluster should have 1

@vpipkt
Copy link
Contributor

vpipkt commented Mar 2, 2016

Get status of overall hadoop file system using

hdfs fsck /

Tail of output:

 Number of data-nodes:      1
 Number of racks:       1
FSCK ended at Wed Mar 02 08:15:17 EST 2016 in 3 milliseconds


The filesystem under path '/' is HEALTHY

You can also call yarn application -list to see a (probably empty?) list of applications, but this will confirm the resourcemanager is up.

@vpipkt
Copy link
Contributor

vpipkt commented Mar 2, 2016

More spam...

To see if a zookeeper node is up call:

echo ruok | nc localhost 2181

it should print back imok if it's ok. Nothing if not.

@djr7m
Copy link
Contributor

djr7m commented May 23, 2016

"jps -l" could provide a cheap way to check for the services running before querying the service directly.

@jahhulbert-ccri
Copy link
Contributor Author

this would also be good for helping with "reconfigure" or other commands...check to see if it's running first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants