hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krishna Kishore (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-14506) libhdfspp examples are not compiling
Date Tue, 21 May 2019 11:04:00 GMT
Krishna Kishore created HDFS-14506:
--------------------------------------

             Summary: libhdfspp examples are not compiling
                 Key: HDFS-14506
                 URL: https://issues.apache.org/jira/browse/HDFS-14506
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: examples, hdfs++, native
            Reporter: Krishna Kishore


I have downloaded code from [https://github.com/apache/hadoop] and compiled libhdfspp. I
couldn't find how to use this library, libhdfspp.so . I see that some functions like hdfsWrite(),
hdfsHSync() are missing from this library. 

 

I have tried to compile the examples from hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/examples/cc/cat
 but getting the following kind of errors:

 

/tmp/ccRGjmdD.o: In function `main':

cat.cc:(.text+0x12e): undefined reference to `hdfs::parse_path_or_exit(std::string const&)'

cat.cc:(.text+0x149): undefined reference to `hdfs::doConnect(hdfs::URI&, bool)'

collect2: error: ld returned 1 exit status

 

I see that the function  parse_path_or_exit() is defined in libhdfspp/tools/tools_common.cc
but not compiled into any of the libraries. So, I couldn't manually include the library to
resolve the above issue. 

 

Is the libhdfspp code complete and working? Please let me know how to use it.



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

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


Mime
View raw message