使用命令:
doris-streamloader -u "aaa":"123123" --source_file="large*" --url="http://ip:5430" --header="column_separator:|?columns:id1,id2,id3,id4" --db="dwd" --table="tmp_data" --workers 8
说明:这里的ip我填的是fe的ip
报错内容:error message: stream load failed, response {"msg":"Unauthorized","code":401,"data":"Access denied for user 'default_cluster:aaa@ip' (using password: YES)","count":0} line=loader/stream_loader.go:352
权限排查:
| 'default_cluster:aaa'@'%' | Yes | | NULL | NULL | internal.default_cluster:dwd: Select_priv Load_priv ;
问题:已验证权限无问题,那么这个报错应该从哪里解决呢?