Dive into the complexities of HDFS with 30 essential MCQs covering fine-tuning configuration parameters, block replication strategies, HDFS caching, and advanced garbage collection tuning for optimal performance.
dfs.datanode.handler.count parameter in HDFS?
hdfs dfsadmin -cachehdfs cache -enablehdfs dfs -cachehdfs cache -sethdfs cache -manage commanddfs.cache.enable parameterhdfs dfs -set command-XX:+UseG1GC flag in HDFS?
hdfs.garbage.collection.sizehdfs.namenode.gc.intervaldfs.jvm.garbage.collectionhdfs.jvm.gchdfs gc command-XX:NewSize-XX:YoungGCSize-XX:MaxNewSize-XX:InitialHeapSize-XX:+UseConcMarkSweepGC-XX:+UseG1GC-XX:+UseParallelGC-XX:+UseSerialGC-Xmx-Xms-Xmn-Xgcthreshold| Qno | Answer |
|---|---|
| 1 | A) dfs.blocksize |
| 2 | A) dfs.replication |
| 3 | B) dfs.namenode.max.connections |
| 4 | A) To define the number of threads in the DataNode |
| 5 | B) hdfs.namenode.heap.size |
| 6 | C) 3 |
| 7 | B) By creating additional replicas on other DataNodes |
| 8 | B) The extra replicas are marked as obsolete |
| 9 | A) dfs.replication |
| 10 | C) Better fault tolerance and availability |
| 11 | A) To store frequently accessed data on fast storage media |
| 12 | C) hdfs dfs -cache |
| 13 | C) By specifying cache directories in the configuration file |
| 14 | B) It reduces the number of block scans from disk |
| 15 | B) It improves read performance by storing data in memory |
| 16 | A) To clean up unused or obsolete data blocks |
| 17 | A) CMS (Concurrent Mark Sweep) |
| 18 | B) To improve memory management and reduce pause times |
| 19 | B) hdfs.namenode.gc.interval |
| 20 | C) Increased response time and performance degradation |
| 21 | A) By checking the NameNode logs for GC-related messages |
| 22 | A) -XX |
| 23 | B) Reduced pause times and better performance for large heaps |
| 24 | C) The pause caused during garbage collection |
| 25 | B) By adjusting the heap size and garbage collection tuning |
| 26 | B) -XX:+UseG1GC |
| 27 | A) CMS (Concurrent Mark Sweep) |
| 28 | C) To improve system performance by managing memory effectively |
| 29 | A) -Xmx |
| 30 | C) Increased memory usage but less frequent GC pauses |