[
https://issues.apache.org/jira/browse/OOZIE-2902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16024733#comment-16024733
]
Peter Bacsko commented on OOZIE-2902:
-------------------------------------
This piece of code doesn't make sense:
{code}
launcherConf.set(JavaActionExecutor.HADOOP_YARN_TIMELINE_SERVICE_ENABLED,
"true");
if (HadoopShims.isYARN()) {
assertEquals("true",
launcherConf.get(JavaActionExecutor.HADOOP_YARN_TIMELINE_SERVICE_ENABLED));
...
{code}
You set a config property to true then immediately you check whether it's been
set. The same here:
{code}
launcherConf.set(JavaActionExecutor.HADOOP_YARN_TIMELINE_SERVICE_ENABLED,
"true");
assertTrue(launcherConf.getBoolean(JavaActionExecutor.HADOOP_YARN_TIMELINE_SERVICE_ENABLED,
true));
{code}
Instead, we should think about how JavaActionExecutor worked before, that is,
why this value was "true". The method
{{injectLauncherTimelineServiceEnabled()}} should take care of this, but the
logic there depends entirely on Oozie properties. If that didn't change, it
makes me think that the property {{yarn.timeline-service.enabled}} used to
propagate into the Hadoop config that is prepared by {{HadoopAccessorService}}.
> org.apache.oozie.action.hadoop.TestJavaActionExecutor fails after hadoop 2.6
> upgrade
> ------------------------------------------------------------------------------------
>
> Key: OOZIE-2902
> URL: https://issues.apache.org/jira/browse/OOZIE-2902
> Project: Oozie
> Issue Type: Bug
> Components: core
> Affects Versions: 4.3.0
> Reporter: Artem Ervits
> Assignee: Artem Ervits
> Priority: Blocker
> Fix For: 5.0.0
>
> Attachments: OOZIE-2902-0.patch
>
>
> after https://issues.apache.org/jira/browse/OOZIE-2780 jira,
> {code}TestJavaActionExecutor{code} fails with
> {noformat}
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m;
> support was removed in 8.0
> Concurrency config is parallel='classes', perCoreThreadCount=false,
> threadCount=1, useUnlimitedThreads=false
> objc[81957]: Class JavaLaunchHelper is implemented in both
> /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/jre/bin/java
> (0x107ee74c0) and
> /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/jre/lib/libinstrument.dylib
> (0x1112e84e0). One of the two will be used. Which one is undefined.
> Running org.apache.oozie.action.hadoop.TestJavaActionExecutor
> Tests run: 49, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 210.336 sec
> <<< FAILURE!
> Results :
> Failed tests:
> testUpdateConfForTimeLineServiceEnabled(org.apache.oozie.action.hadoop.TestJavaActionExecutor):
> expected:<[tru]e> but was:<[fals]e>
> Tests run: 49, Failures: 1, Errors: 0, Skipped: 0
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache Oozie Main .................................. SUCCESS [ 0.487
> s]
> [INFO] Apache Oozie Hadoop Utils hadoop-2-4.4.0-SNAPSHOT .. SUCCESS [ 2.005
> s]
> [INFO] Apache Oozie Hadoop Distcp hadoop-2-4.4.0-SNAPSHOT . SUCCESS [ 0.073
> s]
> [INFO] Apache Oozie Hadoop Auth hadoop-2-4.4.0-SNAPSHOT Test SUCCESS [ 0.271
> s]
> [INFO] Apache Oozie Hadoop Libs ........................... SUCCESS [ 0.015
> s]
> [INFO] Apache Oozie Client ................................ SUCCESS [ 2.365
> s]
> [INFO] Apache Oozie Share Lib Oozie ....................... SUCCESS [ 2.465
> s]
> [INFO] Apache Oozie Share Lib HCatalog .................... SUCCESS [ 1.812
> s]
> [INFO] Apache Oozie Share Lib Distcp ...................... SUCCESS [ 0.535
> s]
> [INFO] Apache Oozie Core .................................. FAILURE [03:52
> min]
> [INFO] Apache Oozie Share Lib Streaming ................... SKIPPED
> [INFO] Apache Oozie Share Lib Pig ......................... SKIPPED
> [INFO] Apache Oozie Share Lib Hive ........................ SKIPPED
> [INFO] Apache Oozie Share Lib Hive 2 ...................... SKIPPED
> [INFO] Apache Oozie Share Lib Sqoop ....................... SKIPPED
> [INFO] Apache Oozie Examples .............................. SKIPPED
> [INFO] Apache Oozie Share Lib Spark ....................... SKIPPED
> [INFO] Apache Oozie Share Lib ............................. SKIPPED
> [INFO] Apache Oozie Docs .................................. SKIPPED
> [INFO] Apache Oozie WebApp ................................ SKIPPED
> [INFO] Apache Oozie Tools ................................. SKIPPED
> [INFO] Apache Oozie MiniOozie ............................. SKIPPED
> [INFO] Apache Oozie Server ................................ SKIPPED
> [INFO] Apache Oozie Distro ................................ SKIPPED
> [INFO] Apache Oozie ZooKeeper Security Tests .............. SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 04:03 min
> [INFO] Finished at: 2017-05-15T09:38:23-04:00
> [INFO] Final Memory: 150M/443M
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)