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