NNbench - NameNode benchmark

NNbench是一款用于测试Hadoop集群中NameNode性能的工具,它模拟实际操作来检查NameNode的配置和硬件。主要操作包括文件创建、读取、重命名和删除。在使用时,需要注意在hdfs用户下运行,并确保blocksize大于等于dfs.namenode.fs-limits.min-block-size。
摘要由CSDN通过智能技术生成

In Hadoop clusters, the NameNode keeps the directory tree of all files in HDFS and locations of the files across the multiple DataNodes and the NNBench runs a test for the NameNode with some load. The NNBench NameNode benchmark is useful to check NameNode configuration with its hardware before running anything in production.

Sample Run of NNBench

hadoop jar /opt/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.7.1.jar nnbench -operation create_write -baseDir /user/$USER/NNBench

需要注意两点:

      1. 在hdfs用户下执行

      2. bloksize需要大于等于dfs.namenode.fs-limits.min-block-size

 

This command will create a file with 1 map and 1 reducer. You can change the options to increase the number of files, maps or reducers. For details, see the available options below.

Main Operations

  • create_write: is an operation you should run at first. It creates a file(s)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值