使用kudu的javaapi创建表报错

org.apache.kudu.client.NoLeaderFoundException: Master config, has no leader. Exceptions received: org.apache.kudu.client.RecoverableException: Failed to connect to peer master-cdh2:7051(cdh2:7051): Connection refused: no further information:

运行程序的时候发现抱错kudu master has no leader ,说明kudu 的master server拒绝了这次连接,是因为kudu自身的安全机制导致的,修改配置文件/etc/kudu/conf/master.gflagfile,增加以下内容

--unlock_unsafe_flags=true

--allow_unsafe_replication_factor=true

--default_num_replicas=1

--rpc_negotiation_timeout_ms=9000

--rpc-encryption=disabled

--rpc_authentication=disabled

--trusted_subnets=0.0.0.0/0

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值