markdown 编译Hadoop-2.8

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 编译Hadoop-2.8相关的知识,希望对你有一定的参考价值。

# Compile Hadoop-2.8 on Ubuntu 16.04

1. Install some dependencies:

   ```Bash
   sudo apt -y install gcc*
   sudo apt -y install cmake
   sudo apt -y install glibc-headers
   sudo apt -y install gcc-c++
   sudo apt -y install zip-devel
   sudo apt -y install openssl-devel
   sudo apt -y install svn
   sudo apt -y install git
   sudo apt -y install ncurses-devel 
   sudo apt -y install lzo-devel
   sudo apt -y install autoconf
   sudo apt -y install libtool
   sudo apt -y install automake
   ```

2. Install protobuf:

   ```Bash
   wget https://github.com/google/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.gz
   tar zxvf protobuf-2.5.0.tar.gz
   cd protobuf-2.5.0
   ./configure
   make 
   make check
   sudo make install
   sudo ldconfig
   ```

3. Compile Hadoop:

   ```Bash
   wget http://apache.spinellicreations.com/hadoop/common/hadoop-2.8.1/hadoop-2.8.1-src.tar.gz
   tar -zxvf hadoop-2.8.1-src.tar.gz
   cd hadoop-2.8.1-src
   mvn package -Dmaven.javadoc.skip=true -Pdist,native -DskipTests -Dtar
   ```

4. The compiled hadoop tarball locates at `hadoop-2.8.1-src/hadoop-dist/target/hadoop-2.8.1.tar.gz`

以上是关于markdown 编译Hadoop-2.8的主要内容,如果未能解决你的问题,请参考以下文章

centos7 hadoop 2.8安装

mac或linux下安装hadoop-2.8流程

如何在 Spark Submit 中将 s3a 与 Apache spark 2.2(hadoop 2.8) 一起使用?

如何在Spark提交中使用s3a和Apache spark 2.2(hadoop 2.8)?

text 编译嵌套的markdown目录

markdown [动态与静态编译] gcc参数说明