Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-14506

libhdfspp examples are not compiling

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.0, 2.8.5
    • None
    • examples, hdfs++, native
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            write2kishore@gmail.com Krishna Kishore
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: