flume.sh 417 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. set -e
  3. start_flume()
  4. {
  5. check hadoop
  6. hadoop_mkdir flume
  7. #flume-ng agent -n agent1 -c conf -f /usr/local/flume/conf/flume.conf -Dflume.root.logger=DEBUG,console
  8. if [ "$1" != '' ]; then
  9. flume-ng agent -n $1 -c conf -f /usr/local/flume/conf/flume.conf
  10. else
  11. flume-ng agent -n agent -c conf -f /usr/local/flume/conf/flume.conf
  12. fi
  13. }
  14. stop_flume()
  15. {
  16. true
  17. }
  18. monit_flume()
  19. {
  20. process_monit flume-ng
  21. }