[ 
https://issues.apache.org/jira/browse/SLIDER-986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15006494#comment-15006494
 ] 

Steve Loughran commented on SLIDER-986:
---------------------------------------

The changes for the log aggregation went in for YARN-3154; march 2015, so will 
be in 2.7.1.

What I suspect is happening is that you've got the 2.6 Hadoop jars on the 
classpath —which is what we still build and ship—, so the new constructor isn't 
there.

In which case, try dropping in the Hadoop 2.7.1 JARs into your slider lib dir, 
and see if this makes it go away. If it does, either you can build slider 08.x 
with the -Prelease-2.7.1 profile or I could do it for you.

This raises a separate question: should we move the default build to be 2.7.1 
only & get rid of the reflection entirely. I've just filed SLIDER-987 for that.

Until then, if my suggestions do fix it for you, this is something we need to 
highlight in the release notes.

(BTW, if you look at the YARN source —it's not actually a constructor, it's the 
{{newInstance()} factory method. The message you say was corrected in commit 
#507a87 to reflect this)

> partial logs upload does not working
> ------------------------------------
>
>                 Key: SLIDER-986
>                 URL: https://issues.apache.org/jira/browse/SLIDER-986
>             Project: Slider
>          Issue Type: Bug
>          Components: core
>    Affects Versions: Slider 0.80
>         Environment: hadoop-2.7.1
>            Reporter: kyungwan nam
>
> when I run my slider-app using slider that is depend on hadoop-2.7.1 I 
> thought the logs for my slider-app can be uploaded during running (refer to 
> SLIDER-810)
> but, It didn't work.
> the slider logs during creating my slider-app are as follows.
> {code}
> 2015-11-13 18:05:42,309 [main] INFO  launch.AbstractLauncher - Log include 
> patterns: *
> 2015-11-13 18:05:42,309 [main] INFO  launch.AbstractLauncher - Log exclude 
> patterns:
> 2015-11-13 18:05:42,309 [main] DEBUG launch.AbstractLauncher - 
> LogAggregationContext new constructor for rolled logs include/exclude 
> patterns is not available - fallback to old one
> 2015-11-13 18:05:42,309 [main] DEBUG launch.AbstractLauncher - 
> java.lang.NoSuchMethodException: 
> org.apache.hadoop.yarn.api.records.LogAggregationContext.<init>(java.lang.String,
>  java.lang.String, java.lang.String, java.lang.String)
> {code}
> I take a look “LogAggregationContext” in hadoop-2.7.1.
> but, It seems like there is just one constructor that has no argument.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to