增加mapreduce作业中的协商超时

yuvru6vn  于 2021-05-30  发布在  Hadoop
关注(0)|答案(2)|浏览(436)

需要增加mapreduce作业的协商超时。
我尝试设置以下属性:

  1. Configuration conf = new Configuration();
  2. conf.set("zk.connectiontimeout.ms", "60000");

但那没用。还是要不断得到下面给出的信息。如何通过编程更改此值?
以下是信息:
15/03/27 11:46:40 info zookeeper.clientcnxn:在服务器上完成会话建立,sessionid=0x14bxxbbf2c9e,协商超时=30000

wlsrxk51

wlsrxk511#

zookeeper配置仅在zookeeper服务器启动时使用。你不能在它们已经运行之后更改它们。

gk7wooem

gk7wooem2#

您可以在zookeeper配置中设置计时。@path zookeeper/conf编辑配置文件默认ticktime=2000您可以更改ticktime并重新启动zookeeper服务。。

  1. Here are detail configuration parameters :
  2. # The number of milliseconds of each tick
  3. tickTime=5000
  4. # The number of ticks that the initial
  5. # synchronization phase can take
  6. initLimit=10
  7. # The number of ticks that can pass between
  8. # sending a request and getting an acknowledgement
  9. syncLimit=5
  10. # the directory where the snapshot is stored.
  11. dataDir=/tmp/zookeep`
  12. # the port at which the clients will connect
  13. clientPort=2181
展开查看全部

相关问题