AnsweredAssumed Answered

hdfsWrite() bug in libMapRClient.so - with program and data files

Question asked by leeho0703 on Mar 17, 2013
Latest reply on Mar 25, 2013 by peterconrad
One member of my team had notified hdfsWrite() bug on
[http://answers.mapr.com/questions/5711/hdfswrite-bug-in-libmaprclientso][1].

You can regenerate the error with the following program and data files.
(The compression option of the volume is turned on)

 - program file: [hdfs_test.cc][2]

 - data files: [data.1][3] [data.2][4]

 - compilation command: g++ -o hdfs\_test -fPIC -Wl,--allow-shlib-undefined -g -Wall -pthread -D\_REENTRANT -I/opt/mapr/hadoop/hadoop-0.20.2/src/c++/libhdfs -I/usr/include/mongo hdfs\_test.cc -L/opt/mapr/lib -lMapRClient

 - testing command: ./hdfs_test /test/data.merged data.1 data.2

 - explanation: The above command reads contents of files(data.1 and data.2) one by one from local file system and write the contents of those files /test/data.merged on MapR filesystem. When the program reads the second(data.2) file and writes the contents to the output MapR FS file(/test/data.merged), the segmentation fault error occurs.

Thanks.

  [1]: http://answers.mapr.com/questions/5711/hdfswrite-bug-in-libmaprclientso
  [2]: http://121.189.11.82/mapr/hdfs_test.cc
  [3]: http://121.189.11.82/mapr/data.1
  [4]: http://121.189.11.82/mapr/data.2

Outcomes