Question : You are having a Hadoop cluster in the Geneva Datacenter with a NameNode on host hadoopexam, a Secondary NameNode on host hadoopexam2 and 1000 slave node. Everyday you have to create a report thrice a day, when the last checkpoint happened. Select the best way to find this.
1. Connect to the web UI of the Primary NameNode (http://hadoopexam1:50090/) and look at the "Last Checkpoint" information. 2. Execute hdfs dfsadmin -lastreport on the command line 3. Access Mostly Uused Products by 50000+ Subscribers 4. With the command line option hdfs dfsadmin -Checkpointinformation
Explanation: The key information provided on the Secondary NameNode web interface from an administrative standpoint is the last checkpoint time. The Secondary NameNode's Web UI contains information on when it last performed its checkpoint operation. This is not displayed via the NameNode's Web UI, and is not available via the hdfs dfsadmin command. Like the NN web UI, you can also view the SNN's log files. The metrics exposed via JMX can be viewed from the URL http://(secondary_namenode):50090/jmx
Question : Which of the follwing information can be received by connecting the web UI of the Secondary NameNode
Explaination : The key information provided on the Secondary NameNode web interface from an administrative standpoint is the last checkpoint time. Other than that you can also view the following information.
NameNode Address Last Checkpoint Time Checkpoint Period CheckPoint Size CheckPoint Edit Dirs
Question : In HadoopExam Inc's Geneva Datacenter you have a Hadoop Clucter with NameNode as HadoopExam and Secondary Namenode as HadoopExam all other remaining nodes are data nodes. A specific node in your cluster appears to be running slower than other nodes with the same hardware configuration. You suspect that the system is swapping memory to disk due to over allocation of resources. Which commands may be used to view the memory and swap usage on the system?
Explanation: There is no command like memswap and memoryusage on the unix and linux operating system. ps -aef | grep java will list all the running java process without memory usage information. " du provides information about disk space but nothing about memory. vmstat : vmstat reports information about processes, memory, paging, block IO, traps, and cpu activity.
The first report produced gives averages since the last reboot. Addi- tional reports give information on a sampling period of length delay. The process and memory reports are instantaneous in either case. top : top provides an ongoing look at processor activity in real time. It displays a listing of the most CPU-intensive tasks on the system, and can provide an interactive interface for manipulating processes. It can sort the tasks by CPU usage, memory usage and runtime. can be better configured than the standard top from the procps suite. Most features can either be selected by an interactive command or by specifying the feature in the personal or system-wide configuration file. See below for more information. free is a command which can give us valuable information on available RAM in Linux machine. But many new Linux users and admins misinterpret its output. In this post we will walk through its output format and show you actual free RAM.Additionally memory and swap usage can be viewed with cat /proc/meminfo and swap usage can be viewed with cat /proc/swaps or swapon -s " top and free can be used to display memory and swap information. In both applications the memory in use includes read cache which will be released for application use before swapping begins.