No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

OceanStor 9000 V300R006C00 File System Feature Guide 12

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Uninstalling HDFS Plugin

Uninstalling HDFS Plugin

This section explains how to uninstall HDFS Plugin from Hadoop nodes and clients and cancel the interconnection between the OceanStor 9000 and Hadoop cluster.

Prerequisites

The interconnection parameters or configuration file content backed up in Installing HDFS Plugin for FusionInsight Hadoop Nodes and Clients or Installing HDFS Plugin for Cloudera Hadoop Nodes have been obtained.

Procedure

  1. Stop the Hadoop cluster.

    • FusionInsight Hadoop: Log in to FusionInsight Hadoop Manager and choose Services > More Actions > Stop cluster.

    • Cloudera Hadoop: Log in to Cloudera Manager and choose > Stop.

  2. Log in to the first Hadoop node as user root.
  3. (Applicable only to the FusionInsight Hadoop cluster) Run the following command to obtain the value of ACTIVE_OM_NODE.

    node1:~ # /opt/huawei/Bigdata/om-0.0.1/sbin/status-oms.sh
    ...
    NodeName      HostName   HaVersion    StartTime             HAActive   HAallResOK  HARunPhase
    10-10-10-11   node1      V100R001C01  2015-10-23 10:09:50   active     normal      Actived
    10-10-10-12   node2      V100R001C01  2015-10-13 20:01:55   standby     normal      Deactived

    In the row where HAActive is active, record the value of HostName. The value is the value of ACTIVE_OM_NODE to be set in the following settings.

  4. Check parameter values in deploy.properties.
    1. Use the vi editor to check the values in /temp/tools/tools/deploy.properties.

      The requirements are as follows:

      • HADOOP_NODES: Set the parameter value to the IP addresses of all Hadoop nodes. The IP addresses are separated by commas (,). If one node has multiple IP addresses that can communicate with the network where the first Hadoop node resides, you only need to enter one IP address.

      • ACTIVE_OM_NODE: For FusionInsight Hadoop, set the parameter value to the value of HostName recorded in 3. For Cloudera Hadoop, there is no need to set this parameter.

      • NEED_UPDATE_CLUSTER: Set the parameter value to true.

      • NEED_DO_MOUNT: Set the parameter value to true.

      • NEED_DO_PRECREATE_DIR: Set the parameter value to true.

      • NEED_UPDATE_CLIENT: For FusionInsight Hadoop, set the parameter value to true. For Cloudera Hadoop, set the parameter value to false.

      • HADOOP_CLIENT_NODE: For FusionInsight Hadoop, set the parameter value to the IP addresses of all Hadoop clients. The IP addresses are separated by commas (,). If one client has multiple IP addresses that can communicate with the network where the first Hadoop node resides, you only need to enter one IP address. For Cloudera Hadoop, there is no need to set this parameter.

      • HADOOP_CLIENT_HOME: For FusionInsight Hadoop, set the parameter value to the installation directory of the Hadoop client. For Cloudera Hadoop, there is no need to set this parameter.

      Set parameter values according to the preceding requirements.

  5. Run the uninstallation command.

    node1:~ # cd /temp/tools/tools
    node1:/temp/tools/tools # ./deployTools.sh undeploy

    Enter the password of user root as prompted. When Completed is displayed, the software uninstallation succeeds.

  6. (Applicable only to the FusionInsight Hadoop cluster) Restart the OMS.
    1. Log in to the node to which the HostName value recorded in 3 corresponds.
    2. Run the following command:

      node1:/temp/tools # cd /opt/huawei/Bigdata/om-0.0.1/sbin
      node1:/opt/huawei/Bigdata/om-0.0.1/sbin # ./restart-oms.sh

  7. Restore interconnection configurations.

  8. Clear ZooKepper configurations.

    Log in to FusionInsight Hadoop Manager and choose Services > ZooKeeper > Status > Start Service, and click OK. On the Hadoop client, run the following command: zkserverX is the IP address of ZooKeeper.

    # Go to the installation path of Hadoop client (for example: /opt/client), and configure environmental variables. 
    node1:~ # cd /opt/client
    node1:/opt/client # source bigdata_env
    # When FusionInsight Hadoop adopts the security mode, run kinit hbase and enter the login password. 
    
    node1:/opt/client # zkCli.sh -server zkserver1:24002,zkserver2:24002,zkserver3:24002,...
    ...
    WATCHER::
    WatchedEvent state:...
    
    # Press Enter.
    # Viewing existing directories.
    ls /
    ...
    # Delete the HBase root directory.
    rmr /hbase
    quit

    Log in to Cloudera Manager and choose ZooKeeper > Actions > Start. On the first Hadoop node, run the following command: zkserverX is the IP address of ZooKeeper.

    node1:/temp/tools/tools # zookeeper-client -server zkserver1,zkserver2,zkserver3,...:2181
    ...
    WATCHER::
    WatchedEvent state:...
    # Press Enter.
    # View existing directories.
    ls /
    ...
    # Delete /hbase.
    rmr /hbase
    quit

  9. Start the Hadoop cluster.

    • FusionInsight Hadoop: Log in to FusionInsight Hadoop Manager and choose Services > More Actions > Start cluster.

    • Cloudera Hadoop: Log in to Cloudera Manager and choose > Start.

Translation
Download
Updated: 2019-06-27

Document ID: EDOC1000122519

Views: 84828

Downloads: 151

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next