hive> select * from users;

报错信息:

FAILED: SemanticException Unable to determine if hdfs://mycluster/user/hive/warehouse/hive.db/users is encrypted: java.lang.IllegalArgumentException: Wrong FS: hdfs://mycluster/user/hive/warehouse/hive.db/users, expected: hdfs://s101:8020

出错原因:

    一般是hive的数据存储路径不对,具体到底是什么原因,还需要进一步深究

解决方案:

         到mysql中修改执行如下命令:

         mysql>update DBS setDB_LOCATION_URI=REPLACE (DB_LOCATION_URI,'mycluster','s101');

 

mysql> update SDS setLOCATION=REPLACE (LOCATION,'mycluster','s101');

 

修改之后,进入hive中进行查看

Hive数据仓库问题:SemanticException Unable to determine if hdfs

相关文章:

  • 2021-09-30
  • 2021-09-16
  • 2021-07-03
  • 2021-12-27
  • 2021-08-31
  • 2021-06-20
  • 2021-10-19
  • 2021-11-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2021-09-26
  • 2022-12-23
  • 2021-05-12
  • 2021-07-10
相关资源
相似解决方案