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

Clay B. commented on HAWQ-307:
------------------------------

Double checking I did not run all tests for libyarn. When running {{make 
unittest}} under either CentOS or Ubuntu, I end up with the following error:
{code}
[ 92%] Building CXX object 
test/unit/CMakeFiles/unit.dir/TestApplicationClient.cpp.o
cd /tmp/kitchen/cache/libyarn/depends/libyarn/build/test/unit && /usr/bin/g++   
-DDATA_DIR=\"/tmp/kitchen/cache/libyarn/depends/libyarn/test/data//\" 
-DGTEST_LANG_CXX11=0 -DMOCKTEST -DTEST_HDFS_PREFIX=\"./\" -D_GNU_SOURCE 
-D__STDC_FORMAT_MACROS -Dprivate=public -Dprotected=public 
-fno-omit-frame-pointer -msse4.2 -Wl,--export-dynamic -std=c++0x 
-D_GLIBCXX_USE_NANOSLEEP -Wall -O2 -g -DNDEBUG 
-I/tmp/kitchen/cache/libyarn/depends/libyarn/gmock/include 
-I/tmp/kitchen/cache/libyarn/depends/libyarn/gtest 
-I/tmp/kitchen/cache/libyarn/depends/libyarn/gtest/include 
-I/tmp/kitchen/cache/libyarn/depends/libyarn/src 
-I/tmp/kitchen/cache/libyarn/depends/libyarn/src/common 
-I/tmp/kitchen/cache/libyarn/depends/libyarn/build/test/unit 
-I/tmp/kitchen/cache/libyarn/depends/libyarn/build/src -I/usr/include/libxml2 
-I/tmp/kitchen/cache/libyarn/depends/libyarn/mock    -o 
CMakeFiles/unit.dir/TestApplicationClient.cpp.o -c 
/tmp/kitchen/cache/libyarn/depends/libyarn/test/unit/TestApplicationClient.cpp
In file included from 
/tmp/kitchen/cache/libyarn/depends/libyarn/test/unit/TestApplicationClient.cpp:24:0:
/tmp/kitchen/cache/libyarn/depends/libyarn/mock/MockApplicationClientProtocol.h:
 In constructor 
‘Mock::MockApplicationClientProtocol::MockApplicationClientProtocol(const 
string&, const string&, const string&, const Yarn::Internal::SessionConfig&, 
const Yarn::Internal::RpcAuth&)’:
/tmp/kitchen/cache/libyarn/depends/libyarn/mock/MockApplicationClientProtocol.h:42:61:
 error: no matching function for call to 
‘libyarn::ApplicationClientProtocol::ApplicationClientProtocol(const string&, 
const string&, const string&, const Yarn::Internal::SessionConfig&, const 
Yarn::Internal::RpcAuth&)’
    ApplicationClientProtocol(rmHost,rmPort,tokenService, c,a){
                                                             ^
/tmp/kitchen/cache/libyarn/depends/libyarn/mock/MockApplicationClientProtocol.h:42:61:
 note: candidates are:
In file included from 
/tmp/kitchen/cache/libyarn/depends/libyarn/src/libyarnclient/ApplicationClient.h:25:0,
                 from 
/tmp/kitchen/cache/libyarn/depends/libyarn/test/unit/TestApplicationClient.cpp:23:
/tmp/kitchen/cache/libyarn/depends/libyarn/src/libyarnserver/ApplicationClientProtocol.h:66:2:
 note: libyarn::ApplicationClientProtocol::ApplicationClientProtocol(const 
string&, const string&, const string&, const string&, const 
Yarn::Internal::SessionConfig&)
  ApplicationClientProtocol(const string &user, const string &rmHost, const 
string &rmPort,
  ^
/tmp/kitchen/cache/libyarn/depends/libyarn/src/libyarnserver/ApplicationClientProtocol.h:66:2:
 note:   no known conversion for argument 4 from ‘const 
Yarn::Internal::SessionConfig’ to ‘const string& {aka const 
std::basic_string<char>&}’
/tmp/kitchen/cache/libyarn/depends/libyarn/src/libyarnserver/ApplicationClientProtocol.h:64:7:
 note: libyarn::ApplicationClientProtocol::ApplicationClientProtocol(const 
libyarn::ApplicationClientProtocol&)
 class ApplicationClientProtocol {
       ^
/tmp/kitchen/cache/libyarn/depends/libyarn/src/libyarnserver/ApplicationClientProtocol.h:64:7:
 note:   candidate expects 1 argument, 5 provided
/tmp/kitchen/cache/libyarn/depends/libyarn/test/unit/TestApplicationClient.cpp: 
In constructor ‘TestApplicationClient::TestApplicationClient()’:
/tmp/kitchen/cache/libyarn/depends/libyarn/test/unit/TestApplicationClient.cpp:71:42:
 error: no matching function for call to 
‘libyarn::ApplicationClient::ApplicationClient(Mock::MockApplicationClientProtocol*&)’
   client = new ApplicationClient(protocol);
                                          ^
/tmp/kitchen/cache/libyarn/depends/libyarn/test/unit/TestApplicationClient.cpp:71:42:
 note: candidate is:
In file included from 
/tmp/kitchen/cache/libyarn/depends/libyarn/test/unit/TestApplicationClient.cpp:23:0:
/tmp/kitchen/cache/libyarn/depends/libyarn/src/libyarnclient/ApplicationClient.h:119:5:
 note: libyarn::ApplicationClient::ApplicationClient(std::string&, 
std::string&, std::string&)
     ApplicationClient(string &user, string &host, string &port);
     ^
/tmp/kitchen/cache/libyarn/depends/libyarn/src/libyarnclient/ApplicationClient.h:119:5:
 note:   candidate expects 3 arguments, 1 provided
make[3]: *** [test/unit/CMakeFiles/unit.dir/TestApplicationClient.cpp.o] Error 1
{code}

This looks a little deep for me but perhaps [~lei_chang] can provide some 
pointers on better tests to run.

Are there any packaging ideas running around for RPM's as well? It would be 
nice to include DEB support which I can then use for testing on one of my 
Hadoop clusters.

> Ubuntu Support
> --------------
>
>                 Key: HAWQ-307
>                 URL: https://issues.apache.org/jira/browse/HAWQ-307
>             Project: Apache HAWQ
>          Issue Type: New Feature
>          Components: Build
>            Reporter: Lei Chang
>            Assignee: Clay B.
>             Fix For: 2.1.0
>
>
> To support HAWQ running on Ubuntu OS 14.04.3



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

Reply via email to