spark worker 自动停止么 ?

时间:2022-07-22 20:48:20
[zk: localhost:2181(CONNECTED) 7] quit 
Quitting...
2016-06-12 18:10:29,234 [myid:] - INFO  [main-EventThread:ClientCnxn$EventThread@512] - EventThread shut down
2016-06-12 18:10:29,234 [myid:] - INFO  [main:ZooKeeper@684] - Session: 0x15547453b750000 closed
[root@name01 bin]# zkServer.sh status
JMX enabled by default
Using config: /usr/local/zookeeper/zookeeper-3.4.6/bin/../conf/zoo.cfg
Mode: standalone
[root@name01 bin]# jps
18433 Master
17602 DataNode
17926 ResourceManager
26249 Jps
17513 NameNode
19322 SparkSubmit
17724 SecondaryNameNode
26062 QuorumPeerMain
18015 NodeManager
[root@name01 bin]# zkServer.sh status
JMX enabled by default
Using config: /usr/local/zookeeper/zookeeper-3.4.6/bin/../conf/zoo.cfg
Mode: standalone
[root@name01 bin]# zkServer.sh stop
JMX enabled by default
Using config: /usr/local/zookeeper/zookeeper-3.4.6/bin/../conf/zoo.cfg
Stopping zookeeper ... STOPPED
[root@name01 bin]# jps
18433 Master
17602 DataNode
17926 ResourceManager
17513 NameNode
19322 SparkSubmit
17724 SecondaryNameNode
26302 Jps
18015 NodeManager
[root@name01 bin]# 

[root@name01 spark-1.4.0]# pwd
/usr/local/spark/spark-1.4.0
[root@name01 spark-1.4.0]# ls -l
total 680
drwxr-xr-x 2 hadoop hadoop   4096 Jun  2  2015 bin
-rw-r--r-- 1 hadoop hadoop 561149 Jun  2  2015 CHANGES.txt
drwxr-xr-x 2 hadoop hadoop   4096 Jun 10 21:38 conf
drwxr-xr-x 3 hadoop hadoop   4096 Jun 11 05:12 data
drwxr-xr-x 3 hadoop hadoop   4096 Jun  2  2015 ec2
drwxr-xr-x 3 hadoop hadoop   4096 Jun  2  2015 examples
drwxr-xr-x 2 hadoop hadoop   4096 Jun  2  2015 lib
-rw-r--r-- 1 hadoop hadoop  50902 Jun  2  2015 LICENSE
drwxr-xr-x 2 root   root     4096 Jun 12 05:37 logs
drwxr-xr-x 2 root   root     4096 Jun 11 00:35 lyc_test
-rw-r--r-- 1 hadoop hadoop  22559 Jun  2  2015 NOTICE
drwxr-xr-x 6 hadoop hadoop   4096 Jun  2  2015 python
drwxr-xr-x 3 hadoop hadoop   4096 Jun  2  2015 R
-rw-r--r-- 1 hadoop hadoop   3624 Jun  2  2015 README.md
-rw-r--r-- 1 hadoop hadoop    134 Jun  2  2015 RELEASE
drwxr-xr-x 2 hadoop hadoop   4096 Jun 10 21:53 sbin
drwxr-xr-x 2 root   root     4096 Jun 10 21:50 work
[root@name01 spark-1.4.0]# start-all.sh
org.apache.spark.deploy.master.Master running as process 18433.  Stop it first.
localhost: starting org.apache.spark.deploy.worker.Worker, logging to /usr/local/spark/spark-1.4.0/sbin/../logs/spark-root-org.apache.spark.deploy.worker.Worker-1-name01.out
[root@name01 spark-1.4.0]# jps
18433 Master
17602 DataNode
17926 ResourceManager
17513 NameNode
19322 SparkSubmit
26508 Worker
17724 SecondaryNameNode
26558 Jps
18015 NodeManager
[root@name01 spark-1.4.0]#