java - Yarn mini-cluster container log directories don't contain syslog files -


i have setup yarn mapreduce mini-cluster 1 node manager, 4 local , 4 log directories , on based on hadoop 2.3.0 cdh 5.1.0. looks more or less working. failed achieve syslog logging containers. see container log directories, stdout , stderr files not syslog mapreduce container logging. appropriate stderr warns have no log4j configuration , contains no other string:

log4j:warn no appenders found logger (org.apache.hadoop.metrics2.impl.metricssystemimpl). log4j:warn please initialize log4j system properly. log4j:warn see http://logging.apache.org/log4j/1.2/faq.html#noconfig more info.

how can add normal logging containers? yet time, yarn mini-cluaster.

any piece of advice or useful point?

just lower amount of tried ways answers:

  • yes, i'm sure logging directories correct , see correlation between container log directories , applications.
  • yes, mapreduce jobs work. @ least expected work.
  • mini-cluster logging @ normal way , in accordance have setup. related containers.
  • lower layers dfs clsuter works normally. have hbase , zk mini-clusters here , work ok. need logging mapreduce jobs debugging.

ok, happened classpath, client configuration , packaging.

  1. client configuration shall include proper classpath yarn applications. in case have added following lines yarn-site.xml (please note $hadoop_common_home substitution):
<property>     <name>yarn.application.classpath</name>     <value>$hadoop_common_home/*,$hadoop_common_home/lib/*</value> </property> 
  1. i have added following variable definition mini-cluster start-up script (it worth note have mini-cluster server-side jars ./lib relatively mini-cluster startup script:

base_path="pwd" export hadoop_common_home=${base_path}

the root cause of not working logging client map-reduce job starting inside new vm on yarn without knowledge locate hadoop-yarn-server-nodemanager.jar contains container-log4j.properties file in turn responsible container default logging configuration. working fine.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -