Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Apache Spark1.1.0 deployment and development environment to build     - Linux command binlog by filtering out the complete SQL statement (Database)

- Python Dir find a folder several files (Programming)

- Puppet subcommands Introduction (Server)

- Comparison of sorting algorithms (Programming)

- shellinabox: one uses AJAX Web-based terminal emulator (Linux)

- Configure shared library PCRE (Linux)

- Deep understanding of C # generics (Programming)

- Ubucompilator-Ubuntu, Debian, Linux Mint created deb package of graphical tools (Linux)

- Hard disk encryption to protect data security (Linux)

- Linux Network Programming - non-blocking program (Programming)

- SQL Beginner Guide (Database)

- Ubuntu install Liferea news subscription software (Linux)

- Elasticsearch Kibana installation notes (Linux)

- Manual cleaning Oracle audit records (Database)

- Installed FFmpeg 2.6.3 on Ubuntu / Debian / Fedora system (Linux)

- Oracle how to maintain the consistency of read? (Database)

- Java Generics Introduction --HashMap summary (Programming)

- 20 open source / commercial Linux server management control panel (Server)

- Installation configuration CUDA under Ubuntu 14.04 (Linux)

- Let you Fun Ubuntu desktop eleven weapon (Linux)

 
         
  Apache Spark1.1.0 deployment and development environment to build
     
  Add Date : 2018-11-21      
         
         
         
  Spark is the Apache-based company introduced a Hadoop Distributed File System (HDFS) parallel computing architecture. And MapReduce different, Spark is not limited to the preparation of map and reduce two methods, which provide a more powerful computing memory (in-memory computing) model, so that the user can be programmed to read the data into memory among the cluster, and users can easily and quickly repeated queries, ideally suited for machine learning algorithms. This article introduces Apache Spark1.1.0 deployment and development environment to build.
0. Prepare

For learning purposes, this article Spark deployed in a virtual machine, select the virtual machine VMware WorkStation. In the virtual machine, you need to install the following software:

Ubuntu 14.04.1 LTS 64-bit desktop version
hadoop-2.4.0.tar.gz
jdk-7u67-linux-x64.tar.gz
scala-2.10.4.tgz
spark-1.1.0-bin-hadoop2.4.tgz
Spark's development environment, the paper choose Windows7 platform, IDE choose IntelliJ IDEA. In Windows, you need to install the following software:

IntelliJ IDEA 13.1.4 Community Edition
apache-maven-3.2.3-bin.zip (installation process is relatively simple, the reader self-installation)
1. Install JDK

Unzip jdk installation package to / usr / lib directory:

sudo cp jdk-7u67-linux-x64.gz / usr / lib
cd / usr / lib
sudo tar -xvzf jdk-7u67-linux-x64.gz
sudo gedit / etc / profile

Add the environment variable to the end of / etc / profile file:

export JAVA_HOME = / usr / lib / jdk1.7.0_67
export JRE_HOME = / usr / lib / jdk1.7.0_67 / jre
export PATH = $ JAVA_HOME / bin: $ JRE_HOME / bin: $ PATH
export CLASSPATH =:. $ JAVA_HOME / lib: $ JRE_HOME / lib: $ CLASSPATH
Save and update the / etc / profile:

source / etc / profile
Jdk test whether the installation was successful:

java -version



 

2. Install and configure SSH

sudo apt-get update
sudo apt-get install openssh-server
sudo /etc/init.d/ssh start
Build and add keys:

ssh-keygen -t rsa -P ""
cd /home/hduser/.ssh
cat id_rsa.pub >> authorized_keys
ssh login:

ssh localhost


 

3. Install hadoop2.4.0

Pseudo-distributed mode installation hadoop2.4.0. Unzip hadoop2.4.0 to / usr / local directory:

sudo cp hadoop-2.4.0.tar.gz / usr / local /
sudo tar -xzvf hadoop-2.4.0.tar.gz
Add the environment variable to the end of / etc / profile file:

export HADOOP_HOME = / usr / local / hadoop-2.4.0
export PATH = $ HADOOP_HOME / bin: $ HADOOP_HOME / sbin: $ PATH

export HADOOP_COMMON_LIB_NATIVE_DIR = $ HADOOP_HOME / lib / native
export HADOOP_OPTS = "- Djava.library.path = $ HADOOP_HOME / lib"
Save and update the / etc / profile:

source / etc / profile
Modify jdk path located /usr/local/hadoop-2.4.0/etc/hadoop of hadoop-env.sh and yarn-env.sh file:

cd /usr/local/hadoop-2.4.0/etc/hadoop
sudo gedit hadoop-env.sh
sudo gedit yarn-evn.sh
hadoop-env.sh:

#The java implementation to use.
export JAVA_HOME=/usr/lib/jdk1.7.0_67

yarn-env.sh:

#some Java parameters
#export JAVA_HOME=/home/y/libexec/jdk1.6.0/
export JAVA_HOME=/usr/lib/jdk1.7.0_67


Modify core-site.xml:

sudo gedit core-site.xml
In the < configuration > < / configuration > add between: