start master
as cassandra user:
/opt/hadoop/sbin/start-all.sh
as root user:
su - cassandra -c "/opt/hadoop/sbin/start-all.sh"
stop master
as cassandra user:
/opt/hadoop/sbin/stop-all.sh
start data node
as cassandra user:
/opt/hadoop/sbin/hadoop-daemon.sh start datanode /opt/hadoop/sbin/start-balancer.sh
as root user:
su - cassandra -c "/opt/hadoop/sbin/hadoop-daemon.sh start datanode" su - cassandra -c "/opt/hadoop/sbin/start-balancer.sh"
stop data node
as cassandra user:
/opt/hadoop/sbin/hadoop-daemon.sh stop datanode
No comments:
Post a Comment