Title
Create new category
Edit page index title
Edit category
Edit link
Controlling ODP Services Manually
You must follow the precise order while starting and stopping the various ODP services.
Starting ODP Services
Make sure to start the Hadoop services in the prescribed order.
About this task
Ranger
ZooKeeper
HDFS
Yarn
HBase
Hive Metastore
HiveServer2
Oozie
Nifi
Kafka
Spark2
Impala
Knox
Procedure
Start Ranger. Execute the following commands on the Ranger host machine:
a. Ranger Admin
b. Ranger Usersync
c. Ranger KMS
Start ZooKeeper. Execute this command on the ZooKeeper host machine(s):
3. Start HDFS
If you are running NameNode HA (High Availability), start the JournalNodes by executing these commands on the JournalNode host machines where $HDFS_USER is the HDFS user.
For example, hdfs.
Execute this command on the NameNode host machine(s):
If you are running NameNode HA, start the ZooKeeper Failover Controller (ZKFC) by executing the following command on all NameNode machines. The starting sequence of the ZKFCs determines which NameNode will become Active.
If you are not running NameNode HA, execute the following command on the Secondary NameNode host machine. If you are running NameNode HA, the Standby NameNode takes on the role of the Secondary NameNode.
Execute these commands on all DataNodes:
Execute this Yarn command on the ResourceManager host machine(s):
Execute this command on the ResourceManager host machine(s):
Execute this command on the History Server host machine:
Execute this command on the timeline server:
Execute this command on all NodeManagers:
Start HBase
Execute this command on the HBase Master host machine:
Execute this command on all RegionServers:
Start the Hive Metastore. On the Hive Metastore host machine, execute the following commands:
Where $HIVE_USER is the Hive user. For example, hive.
Start HiveServer2. On the Hive Server2 host machine, execute the following commands:
Where $HIVE_USER is the Hive user. For example, hive.
Start Oozie. Execute the following command on the Oozie host machine:
Start Kafka with the following commands:
where $KAFKA_USER is the operating system user that installed Kafka. For example, kafka.
Start Spark with the following commands:
a. History Server
b. Thrift Server
Knox
Stopping ODP Services
Before performing any upgrades or uninstalling software, stop all of the Hadoop services in the prescribed order.
About this task
Ranger
Oozie
Spark
HiveServer2
Hive Metastore
HBase
YARN
HDFS
ZooKeeper
Kafka
Procedure
Stop Ranger. Execute the following commands on the Ranger host machine:
a. Ranger Admin
b. Ranger Usersync
c. Ranger KMS
Stop Knox. Execute the following command on the Knox host machine.
Stop Oozie. Execute the following command on the Oozie host machine.
4. Stop Hive. Execute this command on the Hive Metastore and Hive Server2 host machine.
Stop HBase
Execute this command on all RegionServers:
Execute this command on the HBase Master host machine:
Stop YARN
Execute this command on all NodeManagers:
Execute this command on the History Server host machine:
Execute this command on the timeline server host machine(s):
Execute this command on the ResourceManager host machine(s):
7. Stop HDFS
Execute this command on all DataNodes:
Execute this command on the NameNode host machine(s):
If you are running NameNode HA, stop the ZooKeeper Failover Controllers (ZKFC) by executing this command on the NameNode host machines:
If you are running NameNode HA, stop the JournalNodes by executing these commands on the JournalNode host machines:
where $HDFS_USER is the HDFS user. For example, hdfs.
8. Stop ZooKeeper. Execute this command on the ZooKeeper host machine(s):
Stop Kafka. Execute this command on the Kafka host machine(s):
where$KAFKA_USER is the operating system user that installed Kafka. For example, Kafka.
Stop Spark2. Execute the following stop commands on the Kafka host machine(s):
a. History Server
b. Thrift Server