当前位置: 代码迷 >> 综合 >> xgboost(1.0) yarn(附CDH 5.14的个人心得)
  详细解决方案

xgboost(1.0) yarn(附CDH 5.14的个人心得)

热度:82   发布时间:2023-12-09 22:34:38.0

个人心得(CDH5.14,心得是对下文转载步骤的补充):

CDH5.14的config.mk

config.mk的配置要改成如下:

USE_HDFS = 1
HDFS_LIB_PATH = /home/user/xgboost/xgboost-package/libhdfs/lib
HADOOP_HOME = /opt/cloudera/parcels/CDH
HADOOP_HDFS_HOME = /opt/cloudera/parcels/CDH

环境变量

export HADOOP_CONF_DIR=/etc/hadoop/conf
export HADOOP_HOME=/opt/cloudera/parcels/CDH

 

修改yarn.py

编辑 xgboost-package/dmlc-core/tracker/dmlc_tracker/yarn.py,

在48行修改:

out = out.decode('utf-8').split('\n')[0].split()

 

编译dmlc-yarn.jar

No FileSystem for scheme: hdfs 错误

修改xgboost目录下的文件/xgboost-package/dmlc-core/tracker/yarn/src/main/java/org/apache/hadoop/yarn/dmlc/Client.java

  相关解决方案