[ https://issues.apache.org/jira/browse/HDFS-14506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17469783#comment-17469783 ]
wondertx commented on HDFS-14506: --------------------------------- FYI: g++ -g -Wall -std=c++11 -I/tmp/orc/build/libhdfspp_ep-prefix/src/libhdfspp_ep/extern/include -I/tmp/orc/build/libhdfspp_ep-prefix/src/libhdfspp_ep/include -I/mxnet/deps/include cat.cc -L/mxnet/deps/lib -lprotobuf -L/tmp/orc/build/libhdfspp_ep-prefix/src/libhdfspp_ep-build/tools -ltools_common -lhdfspp_static -lpthread -lsasl2 -lcrypto > 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 > Affects Versions: 3.1.0, 2.8.5 > Reporter: Krishna Kishore > Priority: Major > > 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 (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org