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

  1. Start Ranger. Execute the following commands on the Ranger host machine:

a. Ranger Admin

Bash
Copy

b. Ranger Usersync

Bash
Copy

c. Ranger KMS

Bash
Copy
  1. Start ZooKeeper. Execute this command on the ZooKeeper host machine(s):
Bash
Copy

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.
Bash
Copy

For example, hdfs.

  • Execute this command on the NameNode host machine(s):
Bash
Copy
  • 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.
Bash
Copy
  • 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.
Bash
Copy
  • Execute these commands on all DataNodes:
Bash
Copy
  1. Execute this Yarn command on the ResourceManager host machine(s):
  • Execute this command on the ResourceManager host machine(s):
Bash
Copy
  • Execute this command on the History Server host machine:
Bash
Copy
  • Execute this command on the timeline server:
Bash
Copy
  • Execute this command on all NodeManagers:
Bash
Copy
  1. Start HBase
  • Execute this command on the HBase Master host machine:
Bash
Copy
  • Execute this command on all RegionServers:
Bash
Copy
  1. Start the Hive Metastore. On the Hive Metastore host machine, execute the following commands:
Bash
Copy

Where $HIVE_USER is the Hive user. For example, hive.

  1. Start HiveServer2. On the Hive Server2 host machine, execute the following commands:
Bash
Copy

Where $HIVE_USER is the Hive user. For example, hive.

  1. Start Oozie. Execute the following command on the Oozie host machine:
Bash
Copy
  1. Start Kafka with the following commands:
Bash
Copy

where $KAFKA_USER is the operating system user that installed Kafka. For example, kafka.

  1. Start Spark with the following commands:

a. History Server

Bash
Copy

b. Thrift Server

Bash
Copy
  1. Knox
Bash
Copy

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

  1. Stop Ranger. Execute the following commands on the Ranger host machine:

a. Ranger Admin

Bash
Copy

b. Ranger Usersync

Bash
Copy

c. Ranger KMS

Bash
Copy
  1. Stop Knox. Execute the following command on the Knox host machine.
Bash
Copy
  1. Stop Oozie. Execute the following command on the Oozie host machine.
Bash
Copy

4. Stop Hive. Execute this command on the Hive Metastore and Hive Server2 host machine.

Bash
Copy
  1. Stop HBase
  • Execute this command on all RegionServers:
Bash
Copy
  • Execute this command on the HBase Master host machine:
Bash
Copy
  1. Stop YARN
  • Execute this command on all NodeManagers:
Bash
Copy
  • Execute this command on the History Server host machine:
Bash
Copy
  • Execute this command on the timeline server host machine(s):
Bash
Copy
  • Execute this command on the ResourceManager host machine(s):
Bash
Copy

7. Stop HDFS

  • Execute this command on all DataNodes:
Bash
Copy
Bash
Copy
  • Execute this command on the NameNode host machine(s):
Bash
Copy
  • If you are running NameNode HA, stop the ZooKeeper Failover Controllers (ZKFC) by executing this command on the NameNode host machines:
Bash
Copy
  • If you are running NameNode HA, stop the JournalNodes by executing these commands on the JournalNode host machines:
Bash
Copy

where $HDFS_USER is the HDFS user. For example, hdfs.

8. Stop ZooKeeper. Execute this command on the ZooKeeper host machine(s):

Bash
Copy
  1. Stop Kafka. Execute this command on the Kafka host machine(s):
Bash
Copy

where$KAFKA_USER is the operating system user that installed Kafka. For example, Kafka.

  1. Stop Spark2. Execute the following stop commands on the Kafka host machine(s):

a. History Server

Bash
Copy

b. Thrift Server

Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated