Re:Re: Fw:Re:How to add custom field to hadoop MR task log?

2016-11-04 Thread Maria
Hi Ravi, Thanks for your remind. Yes, as what you said, I am not sure that. I think this is a difficult problem for me. I really have no idea about how to confirm the log4j.properties file. Liberty of disturbance to you,can you please give me an advice about how to confirm if the

Re: Fw:Re:How to add custom field to hadoop MR task log?

2016-11-04 Thread Ravi Prakash
Hi Maria! You have to be careful which log4j.properties file is on the classpath of the task which was launched. Often times there are multiple log4j.properties file, perhaps in the classpaths or in one of the jars on the classpath. Are you sure the log4j.properties file you edited is the only

Re:Fw:Re:How to add custom field to hadoop MR task log?

2016-11-04 Thread Maria
Sorry,(clerical errors) . I just modified “log4j.appender.RFA.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n” to "log4j.appender.RFA.layout.ConversionPattern=%d{ISO8601} %p %c: [ID: %X{ID}] %m%n", and use "MDC.put("ID",ID)" in mapper class, It does not work. At 2016-11-04 17:01:16, "Maria"

Fw:Re:How to add custom field to hadoop MR task log?

2016-11-04 Thread Maria
I know that, A simple way is to write " " to every LOG.info()/LOG.warn()like this: logger.info(ID + " start map logic"); BUT,every LOG info has to add "ID" is not wise. Or else, can someone know how to modify the mapreduce task ConversionPattern  configuration? I tried to modify "RFA"

[jira] Lantao Jin shared "HDFS-11102: Deleting .Trash without -skipTrash should be confirmed" with you

2016-11-04 Thread Lantao Jin (JIRA)
Lantao Jin shared an issue with you --- > Deleting .Trash without -skipTrash should be confirmed > -- > > Key: HDFS-11102 > URL: