集群重置命令.txt 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /var/lib/hbase/hbase-1.2.6/bin/hbase-daemon.sh --config /var/hbase/conf stop regionserver
  2. /var/lib/hbase/hbase-1.2.6/bin/hbase-daemon.sh --config /var/hbase/conf stop master
  3. /var/lib/zookeeper/zookeeper-3.4.6/bin/zkServer.sh stop
  4. /var/lib/hadoop/hadoop-2.7.3/sbin/hadoop-daemon.sh --config /var/hadoop/conf --script hdfs stop secondarynamenode
  5. /var/lib/hadoop/hadoop-2.7.3/sbin/hadoop-daemon.sh --config /var/hadoop/conf --script hdfs stop namenode
  6. /var/lib/hadoop/hadoop-2.7.3/sbin/hadoop-daemon.sh --config /var/hadoop/conf --script hdfs stop datanode
  7. sudo chmod -R 777 /var/hadoop/log/
  8. sudo chmod -R 777 /var/hadoop/mapred/log/
  9. sudo chmod -R 777 /var/hadoop/yarn/log/
  10. sudo chmod -R 777 /var/hadoop/tmp/
  11. sudo chmod -R 777 /var/hadoop/hdfs/name/coredata/
  12. sudo chmod -R 777 /var/nfs-hadoop/hdfs/name/
  13. sudo chmod -R 777 /var/hadoop/hdfs/journal/
  14. sudo chmod -R 777 /var/hadoop/hdfs/data-1/coredata/
  15. sudo chmod -R 777 /var/hadoop/hdfs/data-2/coredata/
  16. sudo chmod -R 777 /var/hadoop/hdfs/namesecondary/coredata/
  17. sudo chmod -R 777 /var/nfs-hadoop/hdfs/namesecondary/
  18. sudo chmod -R 777 /var/hadoop/yarn/local-1/coredata/
  19. sudo chmod -R 777 /var/hadoop/yarn/local-2/coredata/
  20. sudo chmod -R 777 /var/hbase/
  21. sudo chmod -R 777 /var/zookeeper/
  22. sudo rm -r /var/hadoop/log/*
  23. sudo rm -r /var/hadoop/mapred/log/*
  24. sudo rm -r /var/hadoop/yarn/log/*
  25. sudo rm -r /var/hadoop/tmp/*
  26. sudo rm -r /var/hadoop/hdfs/journal/*
  27. sudo rm -r /mnt/data-disk-1/name/*
  28. sudo rm -r /mnt/data-disk-1/namesecondary/*
  29. sudo rm -r /mnt/data-disk-1/datanode/*
  30. sudo rm -r /mnt/data-disk-2/datanode/*
  31. sudo rm -r /mnt/data-disk-1/yarn/*
  32. sudo rm -r /mnt/data-disk-2/yarn/*
  33. sudo rm -r /var/hbase/log/*
  34. sudo rm -r /var/zookeeper/data/version-2
  35. sudo rm -r /var/zookeeper/log/*
  36. sudo rm /var/lib/hbase/hbase-1.2.6/lib/json-lib-zillion.jar
  37. sudo rm /var/lib/hbase/hbase-1.2.6/lib/zillion-util.jar
  38. sudo rm /var/lib/hbase/hbase-1.2.6/lib/json-lib-zillion-1.0-SNAPSHOT.jar
  39. sudo rm /var/lib/hbase/hbase-1.2.6/lib/zillion-util-1.0-SNAPSHOT.jar
  40. sudo rm /var/lib/hbase/hbase-1.2.6/lib/zillion-util-1.1-SNAPSHOT.jar
  41. sudo rm /var/lib/hbase/hbase-1.2.6/lib/json-lib-zillion-1.0.jar
  42. sudo rm /var/lib/hbase/hbase-1.2.6/lib/zillion-util-1.0.jar
  43. sudo rm /var/lib/hbase/hbase-1.2.6/lib/zillion-util-1.2.jar
  44. sudo rm /var/lib/hbase/hbase-1.2.6/lib/zillion-util-1.3.jar
  45. sudo rm /var/lib/hbase/hbase-1.2.6/lib/zillion-util-1.4.jar
  46. sudo rm /var/lib/hbase/hbase-1.2.6/lib/zillion-util-1.5.jar
  47. sudo rm /var/lib/hbase/hbase-1.2.6/lib/zillion-util-1.6.jar
  48. sudo rm /var/lib/hbase/hbase-1.2.6/lib/zillion-util-1.7.jar
  49. sudo rm /var/lib/hbase/hbase-1.2.6/lib/zillion-util-1.7.1.jar
  50. sudo rm /var/lib/hbase/hbase-1.2.6/lib/zillion-util-1.7.2.jar
  51. sudo cp share_ro/coprocessor/json-lib-zillion-1.0.jar /var/lib/hbase/hbase-1.2.6/lib/
  52. sudo cp share_ro/coprocessor/fastjson-1.2.47.jar /var/lib/hbase/hbase-1.2.6/lib/
  53. sudo cp share_ro/coprocessor/zillion-util-2.2.0.jar /var/lib/hbase/hbase-1.2.6/lib/
  54. sudo chmod -R 777 /var/lib/hbase/hbase-1.2.6/lib/*.jar
  55. /var/lib/hadoop/hadoop-2.7.3/bin/hadoop --config /var/hadoop/conf namenode -format
  56. /var/lib/hadoop/hadoop-2.7.3/sbin/hadoop-daemon.sh --config /var/hadoop/conf --script hdfs start namenode
  57. /var/lib/hadoop/hadoop-2.7.3/sbin/hadoop-daemon.sh --config /var/hadoop/conf --script hdfs start secondarynamenode
  58. /var/lib/hadoop/hadoop-2.7.3/sbin/hadoop-daemon.sh --config /var/hadoop/conf --script hdfs start datanode
  59. /var/lib/zookeeper/zookeeper-3.4.6/bin/zkServer.sh start
  60. /var/lib/hbase/hbase-1.2.6/bin/hbase-daemon.sh --config /var/hbase/conf start master
  61. /var/lib/hbase/hbase-1.2.6/bin/hbase-daemon.sh --config /var/hbase/conf start regionserver