Installing HDP Manually
Also available as:
PDF
loading table of contents...

Format and Start HDFS

  1. Execute these commands on the NameNode host machine:

    su - hdfs
    /usr/hdp/current/hadoop-hdfs-namenode/../hadoop/bin/hdfs namenode -format
    /usr/hdp/current/hadoop-hdfs-namenode/../hadoop/sbin/hadoop-daemon.sh --config $HADOOP_CONF_DIR start namenode
  2. Execute these commands on the SecondaryNameNode:

    su - hdfs
    /usr/hdp/current/hadoop-hdfs-secondarynamenode/../hadoop/sbin/hadoop-daemon.sh --config $HADOOP_CONF_DIR start secondarynamenode
  3. Execute these commands on all DataNodes:

    su - hdfs
    /usr/hdp/current/hadoop-hdfs-datanode/../hadoop/sbin/hadoop-daemon.sh --config $HADOOP_CONF_DIR start datanode
    [Note]Note

    $HADOOP_CONF_DIR is the directory for storing the Hadoop configuration files. For example, /etc/hadoop/conf.