Error: Error while compiling statement: FAILED: SemanticException Unable to determine if hdfs://hado...

1.发现问题:

在hive客户端或者beeline查询hive表时候报错:

Error: Error while compiling statement: FAILED: SemanticException Unable to determine if hdfs://hado..._第1张图片

根据报错信息查看,是在集群namenode做了HA之后,产生的hdfs路径不对的问题;

2.解决问题,修改hive元数据mysql信息表DBS和SDS:

Error: Error while compiling statement: FAILED: SemanticException Unable to determine if hdfs://hado..._第2张图片

Error: Error while compiling statement: FAILED: SemanticException Unable to determine if hdfs://hado..._第3张图片

更改语句:

mysql> update sds set LOCATION = REPLACE(LOCATION,'hadoopNode2:8020','cdh-test-gxc');

Error: Error while compiling statement: FAILED: SemanticException Unable to determine if hdfs://hado..._第4张图片

更改后,查询表,就没问题了;

Error: Error while compiling statement: FAILED: SemanticException Unable to determine if hdfs://hado..._第5张图片

你可能感兴趣的:(hive,hdfs,hadoop,mysql,java)