Created
September 10, 2018 16:28
-
-
Save myloginid/51ce0599cf739df587c009959e129872 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /opt && mkdir -p /opt/cloudera/parcels/ | |
yum -y group install "Development Tools" | |
yum -y install git maven gcc gcc-c++ wget curl curl-devel | |
yum -y install openssl openssl-devel epel-release | |
yum -y install gtest gtest-devel | |
wget https://cmake.org/files/v3.11/cmake-3.11.0-rc4-Linux-x86_64.sh | |
chmod 744 cmake-3.11.0-rc4-Linux-x86_64.sh | |
mv cmake-3.11.0-rc4-Linux-x86_64.sh /opt | |
cd /opt && echo y Y | sh /opt/cmake-3.11.0-rc4-Linux-x86_64.sh | |
PATH=/opt/cmake-3.11.0-rc4-Linux-x86_64/bin:${PATH} | |
mkdir /home/dmlc && chmod 755 /home/dmlc/ && cd /home/dmlc/ && git clone --recursive https://github.com/dmlc/xgboost | |
export JAVA_HOME=/usr/java/default | |
cd /home/dmlc/xgboost/jvm-packages | |
vi pom.xml ...... | |
# <repository> | |
# <id>cloudera</id> | |
# <url>https://repository.cloudera.com/artifactory/cloudera-repos/</url> | |
# </repository> | |
# <dependency> | |
# <groupId>org.codehaus.jackson</groupId> | |
# <artifactId>jackson-core-asl</artifactId> | |
# <version>1.9.13</version> | |
# </dependency> | |
# <dependency> | |
# <groupId>org.codehaus.jackson</groupId> | |
# <artifactId>jackson-mapper-asl</artifactId> | |
# <version>1.9.13</version> | |
# </dependency> | |
# <spark.version>2.2.0.cloudera2</spark.version> | |
mvn clean package -DskipTests |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment