-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix libhdfs problem in CDH #10
Comments
I use .so and jars which provided by hadoop2.6.2 instead of libhdfs.a. Everything seems went well, it can successfully compile and access CDH HDFS :) |
@mli I had make the changes according to your suggestions, but it still come out with the error as following: |
@wenmin-wu I also encountered this error. have you fixed it? |
I had questions the same as @wenmin-wu and @cicadas , Can anyone fixed it? |
@peperxuhui
this package contains libhdfs.so, and you can compile xgboost using libhdfs.so. However, this is a dynamic library, you have to install hadoop-libhdfs on every node in your hadoop grid, otherwise, you may encounter running time error. |
I tried what @cicadas said, but unfortunately, after i added cdh.repo to yum.repos.d, hadoop-libhdfs-devel was so big that i can't download, it was always DOWNLOAD ERROR in China , so I tried the second way, I didn't know how to add -fPIC in CMakeLists.txt so I complied the hadoop-2.6.4-src without add -fPIC and finally I got libhdfs.so in lib/native and I add DMLC_LDFLAGS+=$(HADOOP_HDFS_HOME)/lib/native/libhdfs.so -L$(LIBJVM) -ljvm -Wl,-rpath=$(LIBJVM) in xgboost config.mk instead of libhdfs.a . Finally ,After I compiled xgboost success, I export LD_LIBRARY_PATH=....../xgboost_hdfs_lib:$LD_LIBRARY_PATH which ....../xgboost_hdfs_lib only hold libhdfs.so and libhdfs.so.0.0.0, After that xgboost can work on yarn and also can read file from CDH HDFS, It worked well! |
@peperxuhui unzip cdh, and run mvn command in cdh path: |
FYI here is a script to build libhdfs from CDH5 on both OSX and Linux. |
@superbobry I follow your script to compile .so files.
many containers show the following errors:
any suggestion? |
@antant-shenzhen-2013 I have posted blog on CSDN about how to deploy xgboost on yarn, you can follow it step by step. The blog link is http://blog.csdn.net/u010306433/article/details/51403894 |
@wenmin-wu thx. I would try it |
CDH is slightly difference to the native hadoop. We can support it or write a document to let users change the things accordingly.
hdfs.h
hdfs.a
check the version, on my case:
the solution:
according to my version, i download
extract, and copy
to the fold
include/
.make/dmlc.mk
to use the .a versionIt should compile now. Then we need to set the environment properly (I guess it is also necessary for the the native hadoop). In my case, I set
.bashrc
And there is warning in 64bit centos
but it seems OK to ignore it according to this
The text was updated successfully, but these errors were encountered: