splunk / splunk-shuttl

Splunk app for archive management, including HDFS support.
Apache License 2.0
36 stars 19 forks source link

Document how the new script for testing configured Shuttl works #114

Open petterik opened 11 years ago

petterik commented 11 years ago

There's a script at built and installed Shuttl at $SPLUNK_HOME/etc/apps/shuttl/bin/testArchivingBucket.sh

It's meant for testing if a configured Shuttl works.

Document how it works and maybe include it somewhere in the Shuttl Quickstart (#106)?

Klevmarken commented 11 years ago

First test in ams on ubuntu.

Running the script with ./testArchivingBucket.sh cluster_shuttl_test 9090 results in:

ec2-user@ip-10-68-121-205:/mnt/KlevisTestArea/splunk/etc/apps/shuttl/bin$ ./testArchivingBucket.sh cluster_shuttl_test 9090 mktemp: too few X's in template `db_1336330530_1336330530_0' If you're having trouble, you can customize the shuttl vars with usage: ./testArchivingBucket.sh [shuttl_port] [shuttl_host]

Shuttling bucket with: index=TestIndexForTryingOutShuttlArchiving shuttl_host=9090 shuttl_port=cluster_shuttl_test curl: (6) Couldn't resolve host '9090:cluster_shuttl_test'

Failure!

Remember to delete all the archived buckets under TestIndexForTryingOutShuttlArchiving from the configured backend storage, when you're done testing.

Klevmarken commented 11 years ago

Usage: ./testArchivingBucket.sh [host] [port]

BUT:

./testArchivingBucket.sh shuttl_script_test localhost 9090 Usage: ./testArchivingBucket.sh [shuttl_port] [shuttl_host] ./testArchivingBucket.sh shuttl_script_test 9090 localhost Usage: ./testArchivingBucket.sh [shuttl_port] [shuttl_host]