Win7 Eclipse debugging Hadoop pits

Source: Internet
Author: User

1 problems when the environment is set up to run the program about LOG4J report error, and the console is not running log printing

1) Log4j:warn No Appenders could is found for logger (org.apache.ibatis.logging.LogFactory).

Log4j:warn Initialize the log4j system properly

Cause: log4j configuration file is not fully configured

Workaround:

Create a Log4j.propertities file to add configuration under the Hadoop project SRC you created

Log4j.rootlogger=info, stdout
Log4j.appender.stdout=org.apache.log4j.consoleappender
Log4j.appender.stdout.layout=org.apache.log4j.patternlayout
log4j.appender.stdout.layout.conversionpattern=%d%p [%c]-%m%n
Log4j.appender.logfile=org.apache.log4j.fileappender
Log4j.appender.logfile.file=target/spring.log
Log4j.appender.logfile.layout=org.apache.log4j.patternlayout
log4j.appender.logfile.layout.conversionpattern=%d%p [%c]-%m%n

2. Jobclinet jobfailed

Reason: The main is currently insufficient user rights for administrator users

solutions; User right to open response on HDFs

Win7 Eclipse debugging Hadoop pits

Related Article

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.