SlideShare a Scribd company logo
Installing SPARK 2.0:
https://www.cloudera.com/documentation/spark2/latest/topics/spark2_installing.html
[root@mugzy ~]# wget http://archive.cloudera.com/spark2/csd/SPARK2_ON_YARN-2.3.0.cloudera2.jar
--2018-05-12 05:12:50-- http://archive.cloudera.com/spark2/csd/SPARK2_ON_YARN-2.3.0.cloudera2.jar
Resolving archive.cloudera.com (archive.cloudera.com)... 151.101.0.167, 151.101.64.167,
151.101.128.167, ...
Connecting to archive.cloudera.com (archive.cloudera.com)|151.101.0.167|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19010 (19K) [application/java-archive]
Saving to: ‘SPARK2_ON_YARN-2.3.0.cloudera2.jar’
100%[======================================>] 19,010 13.9KB/s in 1.3s
2018-05-12 05:12:52 (13.9 KB/s) - ‘SPARK2_ON_YARN-2.3.0.cloudera2.jar’ saved [19010/19010]
[root@mugzy ~]# cp SPARK2_ON_YARN-2.3.0.cloudera2.jar /opt/cloudera/csd
[root@mugzy ~]# cd /opt/cloudera/csd
[root@mugzy csd]# ls
SPARK2_ON_YARN-2.3.0.cloudera2.jar
[root@mugzy csd]# chmod 644 SPARK2_ON_YARN-2.3.0.cloudera2.jar
[root@mugzy csd]# chown cloudera-scm:cloudera-scm SPARK2_ON_YARN-2.3.0.cloudera2.jar
[root@mugzy csd]# ls -l
total 20
-rw-r--r-- 1 cloudera-scm cloudera-scm 19010 May 12 05:16 SPARK2_ON_YARN-2.3.0.cloudera2.jar
[root@mugzy csd]#
[root@mugzy csd]# service cloudera-scm-server restart
Restarting cloudera-scm-server (via systemctl): [ OK ]
[root@mugzy csd]#
Installing spark 2
Installing spark 2
Installing spark 2
Installing spark 2
Installing spark 2
Installing spark 2
Installing spark 2
Installing spark 2
Installing spark 2
Installing Oracle Java JDK 1.8
https://tecadmin.net/install-java-8-on-centos-rhel-and-fedora/
[root@mugzy bin]# cd /opt/
[root@mugzy opt]# wget --no-cookies --no-check-certificate --header "Cookie: gpw
_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "
http://download.oracle.com/otn-pub/java/jdk/8u171-b11/512cd62ec5174c3487ac17c61a
aa89e8/jdk-8u171-linux-x64.tar.gz"
--2018-05-12 06:46:24-- http://download.oracle.com/otn-pub/java/jdk/8u171-b11/5
12cd62ec5174c3487ac17c61aaa89e8/jdk-8u171-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 23.35.212.173
Connecting to download.oracle.com (download.oracle.com)|23.35.212.173|:80... con
nected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u171-b11/512cd62ec5174c
3487ac17c61aaa89e8/jdk-8u171-linux-x64.tar.gz [following]
--2018-05-12 06:46:25-- https://edelivery.oracle.com/otn-pub/java/jdk/8u171-b11
/512cd62ec5174c3487ac17c61aaa89e8/jdk-8u171-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.50.186.175, 2a02:26f
0:c000:186::2d3e, 2a02:26f0:c000:183::2d3e
Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.50.186.175|:443...
connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u171-b11/512cd62ec5174c34
87ac17c61aaa89e8/jdk-8u171-linux-x64.tar.gz?AuthParam=1526100506_26535ed17999858
17a2f3c9440bf8c35 [following]
--2018-05-12 06:46:26-- http://download.oracle.com/otn-pub/java/jdk/8u171-b11/5
12cd62ec5174c3487ac17c61aaa89e8/jdk-8u171-linux-x64.tar.gz?AuthParam=1526100506_
26535ed1799985817a2f3c9440bf8c35
Connecting to download.oracle.com (download.oracle.com)|23.35.212.173|:80... con
nected.
HTTP request sent, awaiting response... 200 OK
Length: 190890122 (182M) [application/x-gzip]
Saving to: ‘jdk-8u171-linux-x64.tar.gz’
100%[================================================================>] 190,890,122
106KB/s in 29m 40s
2018-05-12 07:16:07 (105 KB/s) - ‘jdk-8u171-linux-x64.tar.gz’ saved [190890122/190890122]
[root@mugzy opt]# ls
cloudera jdk-8u171-linux-x64.tar.gz
[root@mugzy opt]# scp jdk-8u171-linux-x64.tar.gz moly:/opt
ssh: Could not resolve hostname moly: Name or service not known
lost connection
[root@mugzy opt]# scp jdk-8u171-linux-x64.tar.gz molly:/opt
jdk-8u171-linux-x64.tar.gz 100% 182MB 60.7MB/s 00:03
[root@mugzy opt]# tar xzf jdk-8u171-linux-x64.tar.gz
[root@mugzy opt]# cd /opt/jdk1.8.0_171/
[root@mugzy jdk1.8.0_171]# cd /opt/jdk1.8.0_171/
[root@mugzy jdk1.8.0_171]# alternatives --install /usr/bin/java java /opt/jdk1.8.0_171/bin/java 2
[root@mugzy jdk1.8.0_171]# alternatives --config java
There is 1 program that provides 'java'.
Selection Command
-----------------------------------------------
*+ 1 /opt/jdk1.8.0_171/bin/java
Enter to keep the current selection[+], or type selection number:
[root@mugzy jdk1.8.0_171]# java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
[root@mugzy jdk1.8.0_171]#
Installing spark 2
Installing spark 2
/var/lib/hadoop-yarn/yarn-nm-recovery/yarn-nm-state/LOCK: Permission denied
https://community.cloudera.com/t5/Cloudera-Manager-Installation/CDH5-2-yarn-nm-state-LOCK-
Permission-denied/td-p/42828
https://community.cloudera.com/t5/Advanced-Analytics-Apache-Spark/Spark2-Error-deploying-and-
status-ok/td-p/61657
[root@mugzy conf]# alternatives --display spark2-conf
spark2-conf - status is auto.
link currently points to /etc/spark2/conf.cloudera.spark2_on_yarn
/opt/cloudera/parcels/SPARK2-2.3.0.cloudera2-1.cdh5.13.3.p0.316101/etc/spark2/conf.dist - priority 10
/etc/spark2/conf.cloudera.spark2_on_yarn - priority 51
Current `best' version is /etc/spark2/conf.cloudera.spark2_on_yarn.
[root@mugzy conf]# export JAVA_HOME=/opt/jdk1.8.0_171
[root@mugzy conf]# spark2-shell
Setting default log level to "WARN".
To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).
Welcome to
____ __
/ __/__ ___ _____/ /__
_ / _ / _ `/ __/ '_/
/___/ .__/_,_/_/ /_/_ version 2.3.0.cloudera2
/_/
Using Scala version 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_171)
Type in expressions to have them evaluated.
Type :help for more information.
scala>

More Related Content

PPTX
How to manage Microsoft Azure with open source
PPSX
Linux configer
ODP
Triangle OpenStack meetup 09 2013
PDF
Openstack installation using rdo multi node
PPT
Montreal On Rails 5 : Rails deployment using : Nginx, Mongrel, Mongrel_cluste...
PDF
Oracle cluster installation with grid and iscsi
PDF
Openstack kilo installation using rdo
PPTX
Installing OpenStack Juno using RDO on RHEL
How to manage Microsoft Azure with open source
Linux configer
Triangle OpenStack meetup 09 2013
Openstack installation using rdo multi node
Montreal On Rails 5 : Rails deployment using : Nginx, Mongrel, Mongrel_cluste...
Oracle cluster installation with grid and iscsi
Openstack kilo installation using rdo
Installing OpenStack Juno using RDO on RHEL

What's hot (20)

PDF
Hammr Project Update: Machine Images and Docker Containers for your Cloud, OW...
 
PDF
MySQL Slow Query log Monitoring using Beats & ELK
PPTX
Elastic stack
PPTX
Bare-metal and Virtual Provisioning with Razor
PDF
Deploying Percona XtraDB Cluster in Openshift
PPT
Intrusion Detection System using Snort
PPTX
How to scheduled jobs in a cloudera cluster without oozie
PPTX
Creating "Secure" PHP applications, Part 2, Server Hardening
PPTX
How to implement a gdpr solution in a cloudera architecture
PDF
Instalasi Solr
PPTX
How to create a multi tenancy for an interactive data analysis
PPTX
Advanced Replication
PDF
Build your own private openstack cloud
PDF
使用 CLI 管理 OpenStack 平台
PPT
Replica Sets (NYC NoSQL Meetup)
PDF
Хокку про Heroku
PDF
Setting up mongo replica set
PPTX
Web sockets
PPTX
How to create a secured cloudera cluster
PDF
Oracle 12c r1 installation on solaris 11.1
Hammr Project Update: Machine Images and Docker Containers for your Cloud, OW...
 
MySQL Slow Query log Monitoring using Beats & ELK
Elastic stack
Bare-metal and Virtual Provisioning with Razor
Deploying Percona XtraDB Cluster in Openshift
Intrusion Detection System using Snort
How to scheduled jobs in a cloudera cluster without oozie
Creating "Secure" PHP applications, Part 2, Server Hardening
How to implement a gdpr solution in a cloudera architecture
Instalasi Solr
How to create a multi tenancy for an interactive data analysis
Advanced Replication
Build your own private openstack cloud
使用 CLI 管理 OpenStack 平台
Replica Sets (NYC NoSQL Meetup)
Хокку про Heroku
Setting up mongo replica set
Web sockets
How to create a secured cloudera cluster
Oracle 12c r1 installation on solaris 11.1
Ad

Similar to Installing spark 2 (20)

PPT
TopicMapReduceComet log analysis by using splunk
PDF
Oracle cluster installation with grid and nfs
PDF
Oracle 11g R2 RAC setup on rhel 5.0
PDF
Whitepaper MS SQL Server on Linux
PDF
ERP System Implementation Kubernetes Cluster with Sticky Sessions
PDF
Install tomcat 5.5 in debian os and deploy war file
PDF
Operation outbreak
PPTX
Docker container management
PDF
Openstack 101
PPT
vBACD - Introduction to Opscode Chef - 2/29
PDF
OSMC 2019 | Use Cloud services & features in your redundant Icinga2 Environme...
ODP
Asian Spirit 3 Day Dba On Ubl
PDF
Docker security
PDF
Learning the command line
PDF
Docker and friends at Linux Days 2014 in Prague
PDF
K8s上の containerized cloud foundryとcontainerized open stackをprometheusで監視してみる
PDF
AtlasCamp 2015 Docker continuous integration training
DOCX
MariaDB10.7_install_Ubuntu.docx
PDF
Kubernetes Basic Operation
PDF
EF09-Installing-Alfresco-components-1-by-1.pdf
TopicMapReduceComet log analysis by using splunk
Oracle cluster installation with grid and nfs
Oracle 11g R2 RAC setup on rhel 5.0
Whitepaper MS SQL Server on Linux
ERP System Implementation Kubernetes Cluster with Sticky Sessions
Install tomcat 5.5 in debian os and deploy war file
Operation outbreak
Docker container management
Openstack 101
vBACD - Introduction to Opscode Chef - 2/29
OSMC 2019 | Use Cloud services & features in your redundant Icinga2 Environme...
Asian Spirit 3 Day Dba On Ubl
Docker security
Learning the command line
Docker and friends at Linux Days 2014 in Prague
K8s上の containerized cloud foundryとcontainerized open stackをprometheusで監視してみる
AtlasCamp 2015 Docker continuous integration training
MariaDB10.7_install_Ubuntu.docx
Kubernetes Basic Operation
EF09-Installing-Alfresco-components-1-by-1.pdf
Ad

More from Ahmed Mekawy (6)

PDF
Oracle linux kube
PDF
Kafka Confluent Platform services on Kubernetes
PDF
Kubernetes installation
PDF
Blockchain fundamentals
PDF
Clouldera Implementation Guide for Production Deployments
PPT
Exadata overview audio
Oracle linux kube
Kafka Confluent Platform services on Kubernetes
Kubernetes installation
Blockchain fundamentals
Clouldera Implementation Guide for Production Deployments
Exadata overview audio

Recently uploaded (20)

PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Cloud computing and distributed systems.
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
cuic standard and advanced reporting.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Cloud computing and distributed systems.
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
“AI and Expert System Decision Support & Business Intelligence Systems”
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
The AUB Centre for AI in Media Proposal.docx
Building Integrated photovoltaic BIPV_UPV.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Modernizing your data center with Dell and AMD
Diabetes mellitus diagnosis method based random forest with bat algorithm
Reach Out and Touch Someone: Haptics and Empathic Computing
Network Security Unit 5.pdf for BCA BBA.
Per capita expenditure prediction using model stacking based on satellite ima...
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Understanding_Digital_Forensics_Presentation.pptx
cuic standard and advanced reporting.pdf

Installing spark 2

  • 1. Installing SPARK 2.0: https://www.cloudera.com/documentation/spark2/latest/topics/spark2_installing.html [root@mugzy ~]# wget http://archive.cloudera.com/spark2/csd/SPARK2_ON_YARN-2.3.0.cloudera2.jar --2018-05-12 05:12:50-- http://archive.cloudera.com/spark2/csd/SPARK2_ON_YARN-2.3.0.cloudera2.jar Resolving archive.cloudera.com (archive.cloudera.com)... 151.101.0.167, 151.101.64.167, 151.101.128.167, ... Connecting to archive.cloudera.com (archive.cloudera.com)|151.101.0.167|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 19010 (19K) [application/java-archive] Saving to: ‘SPARK2_ON_YARN-2.3.0.cloudera2.jar’ 100%[======================================>] 19,010 13.9KB/s in 1.3s 2018-05-12 05:12:52 (13.9 KB/s) - ‘SPARK2_ON_YARN-2.3.0.cloudera2.jar’ saved [19010/19010]
  • 2. [root@mugzy ~]# cp SPARK2_ON_YARN-2.3.0.cloudera2.jar /opt/cloudera/csd [root@mugzy ~]# cd /opt/cloudera/csd [root@mugzy csd]# ls SPARK2_ON_YARN-2.3.0.cloudera2.jar [root@mugzy csd]# chmod 644 SPARK2_ON_YARN-2.3.0.cloudera2.jar [root@mugzy csd]# chown cloudera-scm:cloudera-scm SPARK2_ON_YARN-2.3.0.cloudera2.jar [root@mugzy csd]# ls -l total 20 -rw-r--r-- 1 cloudera-scm cloudera-scm 19010 May 12 05:16 SPARK2_ON_YARN-2.3.0.cloudera2.jar [root@mugzy csd]# [root@mugzy csd]# service cloudera-scm-server restart Restarting cloudera-scm-server (via systemctl): [ OK ] [root@mugzy csd]#
  • 12. Installing Oracle Java JDK 1.8 https://tecadmin.net/install-java-8-on-centos-rhel-and-fedora/ [root@mugzy bin]# cd /opt/ [root@mugzy opt]# wget --no-cookies --no-check-certificate --header "Cookie: gpw _e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" " http://download.oracle.com/otn-pub/java/jdk/8u171-b11/512cd62ec5174c3487ac17c61a aa89e8/jdk-8u171-linux-x64.tar.gz" --2018-05-12 06:46:24-- http://download.oracle.com/otn-pub/java/jdk/8u171-b11/5 12cd62ec5174c3487ac17c61aaa89e8/jdk-8u171-linux-x64.tar.gz Resolving download.oracle.com (download.oracle.com)... 23.35.212.173 Connecting to download.oracle.com (download.oracle.com)|23.35.212.173|:80... con nected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u171-b11/512cd62ec5174c 3487ac17c61aaa89e8/jdk-8u171-linux-x64.tar.gz [following]
  • 13. --2018-05-12 06:46:25-- https://edelivery.oracle.com/otn-pub/java/jdk/8u171-b11 /512cd62ec5174c3487ac17c61aaa89e8/jdk-8u171-linux-x64.tar.gz Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.50.186.175, 2a02:26f 0:c000:186::2d3e, 2a02:26f0:c000:183::2d3e Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.50.186.175|:443... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://download.oracle.com/otn-pub/java/jdk/8u171-b11/512cd62ec5174c34 87ac17c61aaa89e8/jdk-8u171-linux-x64.tar.gz?AuthParam=1526100506_26535ed17999858 17a2f3c9440bf8c35 [following] --2018-05-12 06:46:26-- http://download.oracle.com/otn-pub/java/jdk/8u171-b11/5 12cd62ec5174c3487ac17c61aaa89e8/jdk-8u171-linux-x64.tar.gz?AuthParam=1526100506_ 26535ed1799985817a2f3c9440bf8c35 Connecting to download.oracle.com (download.oracle.com)|23.35.212.173|:80... con nected. HTTP request sent, awaiting response... 200 OK Length: 190890122 (182M) [application/x-gzip] Saving to: ‘jdk-8u171-linux-x64.tar.gz’ 100%[================================================================>] 190,890,122 106KB/s in 29m 40s 2018-05-12 07:16:07 (105 KB/s) - ‘jdk-8u171-linux-x64.tar.gz’ saved [190890122/190890122] [root@mugzy opt]# ls cloudera jdk-8u171-linux-x64.tar.gz [root@mugzy opt]# scp jdk-8u171-linux-x64.tar.gz moly:/opt ssh: Could not resolve hostname moly: Name or service not known lost connection
  • 14. [root@mugzy opt]# scp jdk-8u171-linux-x64.tar.gz molly:/opt jdk-8u171-linux-x64.tar.gz 100% 182MB 60.7MB/s 00:03 [root@mugzy opt]# tar xzf jdk-8u171-linux-x64.tar.gz [root@mugzy opt]# cd /opt/jdk1.8.0_171/ [root@mugzy jdk1.8.0_171]# cd /opt/jdk1.8.0_171/ [root@mugzy jdk1.8.0_171]# alternatives --install /usr/bin/java java /opt/jdk1.8.0_171/bin/java 2 [root@mugzy jdk1.8.0_171]# alternatives --config java There is 1 program that provides 'java'. Selection Command ----------------------------------------------- *+ 1 /opt/jdk1.8.0_171/bin/java Enter to keep the current selection[+], or type selection number: [root@mugzy jdk1.8.0_171]# java -version java version "1.8.0_171" Java(TM) SE Runtime Environment (build 1.8.0_171-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode) [root@mugzy jdk1.8.0_171]#
  • 18. [root@mugzy conf]# alternatives --display spark2-conf spark2-conf - status is auto. link currently points to /etc/spark2/conf.cloudera.spark2_on_yarn /opt/cloudera/parcels/SPARK2-2.3.0.cloudera2-1.cdh5.13.3.p0.316101/etc/spark2/conf.dist - priority 10 /etc/spark2/conf.cloudera.spark2_on_yarn - priority 51 Current `best' version is /etc/spark2/conf.cloudera.spark2_on_yarn. [root@mugzy conf]# export JAVA_HOME=/opt/jdk1.8.0_171 [root@mugzy conf]# spark2-shell Setting default log level to "WARN". To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel). Welcome to ____ __ / __/__ ___ _____/ /__ _ / _ / _ `/ __/ '_/ /___/ .__/_,_/_/ /_/_ version 2.3.0.cloudera2 /_/ Using Scala version 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_171) Type in expressions to have them evaluated. Type :help for more information. scala>