Kudu报cannot import authentication data from a different user: old='', new='XXX'解决办法

今天Kudu又抽抽了,在导入数据的时候报错如下:

java.lang.IllegalArgumentException: cannot import authentication data from a different user: old='', new='XXX'

最后的解决方法是修改Kudu的设置。

首先在/etc/init.d关闭Kudu:

[hadoop@hadoop000 init.d]$ sudo ./kudu-master stop
Stopped Kudu Master Server:                                [  OK  ]
[hadoop@hadoop000 init.d]$ sudo ./kudu-tserver stop
Stopped Kudu Tablet Server:                                [  OK  ]

然后进入Kudu设置文件,默认在/etc/kudu/conf下,修改master.gflagfile:

[hadoop@hadoop000 conf]$ sudo vi master.gflagfile 

在里面加上

--trusted_subnets=0.0.0.0/0
--rpc_encryption=disabled
--rpc_authentication=disabled

意思是信任所有远程连接、 禁用RPC授权、禁用RPC加密,不查就不会出错(狗头)。

截图如下

Kudu报cannot import authentication data from a different user: old='', new='XXX'解决办法_第1张图片

最后去/etc/init.d里重启下Kudu就行了:

[hadoop@hadoop000 init.d]$ sudo ./kudu-master start
Started Kudu Master Server (kudu-master):                  [  OK  ]
[hadoop@hadoop000 init.d]$ sudo ./kudu-tserver start
Started Kudu Tablet Server (kudu-tserver):                 [  OK  ]

Kudu报cannot import authentication data from a different user: old='', new='XXX'解决办法_第2张图片


 

你可能感兴趣的:(hadoop)