idea操作hive报错:org.apache.thrift.transport.TTransportException


19/10/17 19:28:27 INFO Logging.scala[58]: Loaded org.apache.hadoop.hive.shims.Hadoop23Shims for Hadoop version 2.6.0-cdh5.7.0
19/10/17 19:28:27 INFO HiveMetaStoreClient.java[376]: Trying to connect to metastore with URI thrift://hadoop102:9083
19/10/17 19:28:39 INFO HiveMetaStoreClient.java[421]: Opened a connection to metastore, current connections: 1
19/10/17 19:28:42 WARN HiveMetaStoreClient.java[445]: set_ugi() not successful, Likely cause: new client talking to old server. Continuing without it.
org.apache.thrift.transport.TTransportException

具体报错信息如图

原因是:window没有做主机名和ip的映射 ,在hosts文件中添加相应的集群主机名称的映射即可解决

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM