hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleksandr Shevchenko (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-8498) Yarn NodeManager OOM Listener Fails Compilation on Ubuntu 18.04
Date Thu, 04 Oct 2018 12:36:00 GMT

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

Oleksandr Shevchenko commented on YARN-8498:
--------------------------------------------

I faced the same error related to cleanup() function call on Ubuntu 18.04. I build project
on branch-3.2.
Do you get this error one more time? Not sure if everything is fine with my configuration
and installed libraries.
{noformat}
 mvn package -Pdist,native -DskipTests -Dtar -Dmaven.javadoc.skip=true

[WARNING] CMakeFiles/oom-listener.dir/main/native/oom-listener/impl/oom_listener_main.c.o:
In function `main':
[WARNING] /home/oshevchenko/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/oom-listener/impl/oom_listener_main.c:89:
undefined reference to `cleanup'
[WARNING] collect2: error: ld returned 1 exit status
[WARNING] make[2]: *** [target/usr/local/bin/oom-listener] Error 1
[WARNING] make[1]: *** [CMakeFiles/oom-listener.dir/all] Error 2
[WARNING] make[1]: *** Waiting for unfinished jobs....
[WARNING] /home/oshevchenko/Projects/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/test/test-container-executor.c:
In function ‘test_cleaning_docker_cgroups’:
[WARNING] /home/oshevchenko/Projects/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/test/test-container-executor.c:1358:5:
warning: argument 1 null where non-null expected [-Wnonnull]
[WARNING] closedir(dir);
[WARNING] ^~~~~~~~~~~~~
[WARNING] In file included from /home/oshevchenko/Projects/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/test/test-container-executor.c:26:0:
[WARNING] /usr/include/dirent.h:149:12: note: in a call to function ‘closedir’ declared
here
[WARNING] extern int closedir (DIR *__dirp) __nonnull ((1));
[WARNING] ^~~~~~~~
[WARNING] /home/oshevchenko/Projects/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/oom-listener/test/oom_listener_test_main.cc:
In member function ‘virtual void OOMListenerTest_test_oom_Test::TestBody()’:
[WARNING] /home/oshevchenko/Projects/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/oom-listener/test/oom_listener_test_main.cc:256:7:
error: ‘__WAIT_STATUS’ was not declared in this scope
[WARNING] __WAIT_STATUS mem_hog_status = {};
[WARNING] __WEXITSTATUS
[WARNING] /home/oshevchenko/Projects/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/oom-listener/test/oom_listener_test_main.cc:257:30:
error: ‘mem_hog_status’ was not declared in this scope
[WARNING] __pid_t exited0 = wait(mem_hog_status);
[WARNING] ^~~~~~~~~~~~~~
[WARNING] /home/oshevchenko/Projects/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/oom-listener/test/oom_listener_test_main.cc:257:30:
note: suggested alternative: ‘mem_hog_pid’
[WARNING] __pid_t exited0 = wait(mem_hog_status);
[WARNING] ^~~~~~~~~~~~~~
[WARNING] mem_hog_pid
[WARNING] /home/oshevchenko/Projects/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/oom-listener/test/oom_listener_test_main.cc:275:21:
error: expected ‘;’ before ‘oom_listener_status’
[WARNING] __WAIT_STATUS oom_listener_status = {};
[WARNING] ^~~~~~~~~~~~~~~~~~~
[WARNING] /home/oshevchenko/Projects/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/oom-listener/test/oom_listener_test_main.cc:276:30:
error: ‘oom_listener_status’ was not declared in this scope
[WARNING] __pid_t exited1 = wait(oom_listener_status);
[WARNING] ^~~~~~~~~~~~~~~~~~~
[WARNING] /home/oshevchenko/Projects/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/oom-listener/test/oom_listener_test_main.cc:276:30:
note: suggested alternative: ‘oom_listener’
[WARNING] __pid_t exited1 = wait(oom_listener_status);
[WARNING] ^~~~~~~~~~~~~~~~~~~
[WARNING] oom_listener
[WARNING] make[2]: *** [CMakeFiles/test-oom-listener.dir/main/native/oom-listener/test/oom_listener_test_main.cc.o]
Error 1
[WARNING] make[1]: *** [CMakeFiles/test-oom-listener.dir/all] Error 2
[WARNING] make: *** [all] Error 2
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:3.2.0-SNAPSHOT:cmake-compile
(cmake-compile) on project hadoop-yarn-server-nodemanager: make failed with error code 2 ->
[Help 1]

{noformat}

> Yarn NodeManager OOM Listener Fails Compilation on Ubuntu 18.04
> ---------------------------------------------------------------
>
>                 Key: YARN-8498
>                 URL: https://issues.apache.org/jira/browse/YARN-8498
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Jack Bearden
>            Priority: Blocker
>              Labels: trunk
>
> While building this project, I ran into a few compilation errors here. The first one
was in this file:
> hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/oom-listener/impl/oom_listener_main.c
> At the very end, during the compilation of the OOM test, it fails again:
>  hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/oom-listener/test/oom_listener_test_main.cc
> hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/oom-listener/test/oom_listener_test_main.cc:256:7:
error: ‘__WAIT_STATUS’ was not declared in this scope
>  __WAIT_STATUS mem_hog_status = {};
> hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/oom-listener/test/oom_listener_test_main.cc:257:30:
error: ‘mem_hog_status’ was not declared in this scope
>  __pid_t exited0 = wait(mem_hog_status);
> hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/oom-listener/test/oom_listener_test_main.cc:275:21:
error: expected ‘;’ before ‘oom_listener_status’
>  __WAIT_STATUS oom_listener_status = {};
> hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/oom-listener/test/oom_listener_test_main.cc:276:30:
error: ‘oom_listener_status’ was not declared in this scope
>  __pid_t exited1 = wait(oom_listener_status);
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message