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文件中添加相应的集群主机名称的映射即可解决

猜你喜欢

转载自www.cnblogs.com/shsgshn/p/11694326.html