PrepAway - Latest Free Exam Questions & Answers

What do you have to do on the cluster to allow the worker node to join, and start sorting HDFS blocks?

You have installed a cluster HDFS and MapReduce version 2 (MRv2) on YARN. You have no
dfs.hosts entry(ies) in your hdfs-site.xml configuration file. You configure a new worker node by
setting fs.default.name in its configuration files to point to the NameNode on your cluster, and you
start the DataNode daemon on that worker node. What do you have to do on the cluster to allow
the worker node to join, and start sorting HDFS blocks?

PrepAway - Latest Free Exam Questions & Answers

A.
Without creating a dfs.hosts file or making any entries, run the commands hadoop.dfsadminrefreshModes on the NameNode

B.
Restart the NameNode

C.
Creating a dfs.hosts file on the NameNode, add the worker Node’s name to it, then issue the
command hadoop dfsadmin –refresh Nodes = on the Namenode

D.
Nothing; the worker node will automatically join the cluster when NameNode daemon is started

16 Comments on “What do you have to do on the cluster to allow the worker node to join, and start sorting HDFS blocks?

  1. Yuriy says:

    http://wiki.apache.org/hadoop/FAQ#I_have_a_new_node_I_want_to_add_to_a_running_Hadoop_cluster.3B_how_do_I_start_services_on_just_one_node.3F
    If you are using the dfs.include/mapred.include functionality, you will need to additionally add the node to the dfs.include/mapred.include file, then issue hadoop dfsadmin -refreshNodes and hadoop mradmin -refreshNodes so that the NameNode and JobTracker know of the additional node that has been added.

    A is correct




    0



    0
  2. zhushuli says:

    Answer : C

    If you are using the dfs.include/mapred.include functionality, you will need to additionally add the node to the dfs.include/mapred.include file, then issue hadoop dfsadmin -refreshNodes and hadoop mradmin -refreshNodes so that the NameNode and JobTracker know of the additional node that has been added.

    A is wrong , because its command does not exsists.




    0



    0
    1. frank says:

      it might just be a typo, not Modes…but Nodes
      hadoop dfsadmin [GENERIC_OPTIONS] [-report] [-safemode enter | leave | get | wait] [-refreshNodes]




      0



      0
  3. jockie says:

    real quetion now in exam change…to

    You have dfs.hosts entry(ies) in your hdfs-site….

    Anyway, this blog /discussion very helpful




    0



    0
  4. thom says:

    D is right.

    A is a good choice, but there’s no need to run the hadoop dfsadmin refreshNodes specificaly on the nameNode.




    0



    0

Leave a Reply

Your email address will not be published. Required fields are marked *