noobrocks.blogg.se

Install apache spark ubuntu 16.04
Install apache spark ubuntu 16.04










  1. INSTALL APACHE SPARK UBUNTU 16.04 INSTALL
  2. INSTALL APACHE SPARK UBUNTU 16.04 CODE

This ensures people reach the right site instead of the default one when they type in. The default file doesn’t come with a ServerName directive so we’ll have to add and define it by adding this line below the last directive: ServerName We should have our email in ServerAdmin so users can reach you in case Apache experiences any error: ServerAdmin also want the DocumentRoot directive to point to the directory our site files are hosted on: DocumentRoot /var/www/gci/ Now edit the configuration file: sudo nano gci.conf ( gci.conf is used here to match our subdomain name): sudo cp nf gci.conf Since Apache came with a default VirtualHost file, let’s use that as a base. We start this step by going into the configuration files directory: cd /etc/apache2/sites-available/ Setting up the VirtualHost Configuration File Now let’s create a VirtualHost file so it’ll show up when we type in. I'm running this website on an Ubuntu Server server! Spark provides high-level APIs in Java, Scala, Python and R, and an optimized engine that supports general execution graphs.

INSTALL APACHE SPARK UBUNTU 16.04 CODE

Paste the following code in the index.html file: Then, we need to download apache spark binaries package. Download Apache Spark using the following command. As of the writing of this article, version 3.0.1 is the newest release. The Mirrors with the latest Apache Spark version can be found here on the Apache Spark download page. First, we need to create a directory for apache Spark. The next step is to download Apache Spark to the server.

INSTALL APACHE SPARK UBUNTU 16.04 INSTALL

Let’s go into our newly created directory and create one by typing: cd /var/www/gci/ sudo apt-get update sudo apt-get y upgrade sudo add-apt-repository -y ppa:webupd8team/java sudo apt-get install oracle-java8-installer 3. Now that we have a directory created for our site, lets have an HTML file in it. We have it named gci here but any name will work, as long as we point to it in the virtual hosts configuration file later. So let’s start by creating a folder for our new website in /var/www/ by running sudo mkdir /var/www/gci/

install apache spark ubuntu 16.04

Today, we’re going to leave the default Apache virtual host configuration pointing to and set up our own at.

install apache spark ubuntu 16.04

We can modify its content in /var/We can modify how Apache handles incoming requests and have multiple sites running on the same server by editing its Virtual Hosts file. Creating Your Own Websiteīy default, Apache comes with a basic site (the one that we saw in the previous step) enabled.












Install apache spark ubuntu 16.04