Hadoop/HIVE error solution Summary

Source: Internet
Author: User

1. Retrying connect to server: localhost/127.0.0.1: 9000.

Call to localhost/127.0.0.1: 9000 failed on connection exception: java.net. connectexception: Connection refused

Cause: hadoop is not started or configuration error in core-site.xml

 

Solution: Start hadoop or modify the configuration.

2. Exception in thread "main" java. io. IOException: Call to localhost/127.0.0.1: 9000 failed on local exception: java. io. EOFException

If this error is reported, the hadoop version on the client and the hadoop version on the server are inconsistent. Modify the version of hadoop referenced by the client.

3. Cannot delete/home/hadoop/part. Name node is in safe mode.

 

 

It indicates that hadoop's namenode is in safe mode. So what is the hadoop security mode? When the Distributed File System is started, there will be security mode at the beginning. When the Distributed File System is in security mode, the content in the file system cannot be modified or deleted, until the security mode is closed. The security mode is mainly used to check the validity of data blocks on each datanode when the system starts, and to copy or delete some data blocks as required by the policy. You can also enter security mode through commands during runtime. In practice, when the system starts, an error message indicating that the file cannot be modified in security mode is displayed when the system modifies or deletes the file. You only need to wait for a while (18 S ).

 

When NameNode is started, it first enters the security mode. If the proportion of the block lost by datanode reaches a certain level (1-dfs.safemode.threshold.pct), the system will remain in the security mode, that is, read-only status. Dfs. safemode. threshold. pct (default value: 0.999f) indicates that when HDFS is started, if the number of blocks reported by DataNode reaches 0.999 times the number of blocks recorded by metadata, the security mode can be left; otherwise, the read-only mode is used. If it is set to 1, HDFS is always in SafeMode. The following line extracts logs from NameNode startup (block reporting ratio 1 reaches 0.9990) the ratio of reported blocks 1.0000 has reached The threshold 0.9990. safe mode will be turned off automatically in 18 seconds. hadoop dfsadmin-safemode leave has two ways to exit this security mode. 1. modify dfs. safemode. threshold. pct is a relatively small value. The default value is 0.999. 2. hadoop dfsadmin-safemode leave command force leave http://bbs.hadoopor.com/viewthread.php? Tid = 61 & extra = page = 1

 

You can use dfsadmin-safemode value to operate the security mode. The value parameter is described as follows: enter-enter security mode leave-force NameNode to Exit security mode get-return information about whether security mode is enabled wait-wait until the end of security mode.

4. mismatched input 'from 'expecting CharSetLiteral in character string literal: columnName contains special characters. You can simply add ''.

hive> select id,\`_bucketname\` from default__table02_table02_index__;FAILED: Parse Error: line 1:26 cannot recognize input 'from' in select expressionhive> select id,`_bucketname` from default__table02_table02_index__;

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.