You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WARNING: Exception encountered while connecting to the server : java.lang.IllegalArgumentException: Failed to specify server's Kerberos principal name
2020-11-30 11:27:42.905 [job-0] ERROR HdfsWriter$Job - 判断文件路径[message:filePath =/user/hive/warehouse/zcm_test.db/t_time_sync_test]是否存在时发生网络IO异常,请检查您的网络是否正常!
2020-11-30 11:27:42.914 [job-0] ERROR JobContainer - Exception when job run
com.alibaba.datax.common.exception.DataXException: Code:[HdfsWriter-06], Description:[与HDFS建立连接时出现IO异常.]. - java.io.IOException: Failed on local exception: java.io.IOException: java.lang.IllegalArgumentException: Failed to specify server's Kerberos principal name; Host Details : local host is: "cluster-t01.zcm.com/192.168.1.207"; destination host is: "cluster-t02.zcm.com":8020;
kerberosPrincipal异常
在确定keytab账号密码无错误之后,将问题定位到kerberosPrincipal
kerberosPrincipal与hadoop.security.auth_to_local参数有关,参考这篇文章https://www.jianshu.com/p/2ad4be7ecf39
在尝试过后发现是acceptance filter的问题,于是去掉,留下hive@ZCM.COM
随后出现另一个异常:
该异常又指向了kerberosPrincipal
查看了hdfs的default_realm,发现配置了两个域,猜测是找不到域
添加参数dfs.namenode.kerberos.principal.pattern,令其匹配所有路径
"hadoopConfig": {"dfs.namenode.kerberos.principal.pattern": "*" }
然后就跑通了
textFile同步出现mysql与hive条数不一致,但同步log中却没有显示存在脏数据,显示同步完成
将表的文件格式改为orc,重新导入即可;或者改一个分隔符,但这就无法实现所有任务通用
The text was updated successfully, but these errors were encountered: