Execute by SQL
select * from cities limit 10;
report errors
FAILED: SemanticException Unable to determine if hdfs://localhost:9000/user/hive/warehouse/cities is encrypted: org.apache.hadoop.hive.ql.metadata.HiveException: java.net.ConnectException: Call From bigdata/192.168.224.130 to localhost:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
The reason is that the metadata information of hive is stored in DBS and SDS in MySQL. I modified the fs.xml of core site defaultFS,
Cause metadata mismatch.
primary
<configuration> <property> <name>fs.defaultFS</name> <value>hdfs://bigdata:9000</value> </property> <property>
present
<configuration> <property> <name>fs.defaultFS</name> <value>hdfs://bigdata:9000</value> </property> <property>
So the solution is to modify
update DBS set DB_LOCATION_URI=REPLACE (DB_LOCATION_URI,'localhost:9000','bigdata:9000'); update SDS set LOCATION=REPLACE (LOCATION,'localhost:9000','bigdata:9000');
Similar Posts:
- Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster
- [Solved] Exception in thread “main“ java.net.ConnectException: Call From
- [Solved] Call to localhost/127.0.0.1:9000 failed on connection exception:java.net.ConnectException
- [Solved] spark Connect hive Error: javax.jdo.JDODataStoreException: Required table missing : “`DBS`” in Catalog “” Schema “”
- [Solved] Hadoop Error: The directory item limit is exceeded: limit=1048576 items=1048576
- “Execution error, return code 1 from org. Apache. Hadoop. Hive. QL. Exec. Movetask” error occurred when hive imported data locally
- Hive appears to refuse connection ConnectionRefused Solution
- This server is in the failed servers list: localhost/127.0.0.1:16000 (Error starting hbase api call)
- Hiveserver2 Connect Error: Could not open client transport with JDBC Uri: jdbc:hive2://hadoop01:100…
- [Solved] IDEA Remote Operate hdfs Hadoop Error: Caused by: java.net.ConnectException: Connection refused: no further information