Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spark 2.3.0 #28

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The virtual machine will be running the following services:
* Sqoop 1.4.6
* Pig 0.17.0
* flume 1.7.0
* Zeppelin 0.7.2 (with Spark/scala, md, file and JDBC interpreters)
* Zeppelin 0.8.0 (with Spark/scala, md, file and JDBC interpreters)
* Release `Spark-2.3.0` based on: -
* Hadoop 2.7.6
* Hive 2.3.3
Expand All @@ -50,7 +50,7 @@ The virtual machine will be running the following services:
* Sqoop 1.4.6
* Pig 0.17.0
* flume 1.7.0
* Zeppelin 0.7.2 (with Spark/scala, md, file and JDBC interpreters)
* Zeppelin 0.8.0 (with Spark/scala, md, file and JDBC interpreters)
4. In your terminal change your directory into the project directory (i.e. `cd vagrant-hadoop-spark-hive-<version>`).
5. Run ```vagrant up``` to create the VM (**NOTE** *This will take a while the first time as many dependencies are downloaded - subsequent deployments will be quicker as dependancies are cached in the `resources` directory*).
6. Execute ```vagrant ssh``` to login to the VM.
Expand Down
10 changes: 5 additions & 5 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
i = 1
config.vm.network :forwarded_port, guest: 8080, host: 8080
config.vm.network :forwarded_port, guest: 9083, host: 9083
config.vm.network :forwarded_port, guest: 4040, host: 4040
config.vm.network :forwarded_port, guest: 3306, host: 3306
config.vm.define "node#{i}" do |node|
node.vm.box = 'ubuntu/xenial64'
config.vm.define :node1 do |t|
Expand All @@ -25,10 +25,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
node.vm.provision :shell, path: 'scripts/setup-hive.sh'
node.vm.provision :shell, path: 'scripts/setup-spark.sh'
node.vm.provision :shell, path: 'scripts/setup-tez.sh'
node.vm.provision :shell, path: 'scripts/setup-pig.sh'
node.vm.provision :shell, path: 'scripts/setup-flume.sh'
node.vm.provision :shell, path: 'scripts/setup-sqoop.sh'
node.vm.provision :shell, path: 'scripts/setup-zeppelin.sh'
# node.vm.provision :shell, path: 'scripts/setup-pig.sh'
# node.vm.provision :shell, path: 'scripts/setup-flume.sh'
# node.vm.provision :shell, path: 'scripts/setup-sqoop.sh'
# node.vm.provision :shell, path: 'scripts/setup-zeppelin.sh'
node.vm.provision :shell, path: 'scripts/finalize-ubuntu.sh'
node.vm.provision :shell, path: 'scripts/bootstrap.sh', run: 'always'
end
Expand Down
2 changes: 1 addition & 1 deletion resources/hive/hive-site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</property> -->
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://node1/hive_metastore?createDatabaseIfNotExist=true</value>
<value>jdbc:mysql://node1/hive_metastore?createDatabaseIfNotExist=true&amp;useSSL=false</value>
<description>JDBC connect string for a JDBC metastore</description>
</property>
<property>
Expand Down
6 changes: 3 additions & 3 deletions scripts/common.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash

# Curl options
CURL_OPTS="-Ss --retry 10 "
CURL_OPTS="-Ss --retry 10 --insecure"

# java
JAVA_ARCHIVE=jdk-8u51-linux-x64.gz
JAVA_MYSQL_CONNECTOR_VERSION=5.1.40
JAVA_MYSQL_CONNECTOR_JAR=mysql-connector-java-${JAVA_MYSQL_CONNECTOR_VERSION}.jar
JAVA_MYSQL_CONNECTOR_DOWNLOAD=http://central.maven.org/maven2/mysql/mysql-connector-java/${JAVA_MYSQL_CONNECTOR_VERSION}/mysql-connector-java-${JAVA_MYSQL_CONNECTOR_VERSION}.jar
JAVA_MYSQL_CONNECTOR_DOWNLOAD=https://repo1.maven.org/maven2/mysql/mysql-connector-java/${JAVA_MYSQL_CONNECTOR_VERSION}/mysql-connector-java-${JAVA_MYSQL_CONNECTOR_VERSION}.jar

# hadoop
HADOOP_PREFIX=/usr/local/hadoop
Expand Down Expand Up @@ -62,7 +62,7 @@ SQOOP_RES_DIR=/vagrant/resources/sqoop
TEZ_VERSION=0.9.1
TEZ_RELEASE=apache-tez-${TEZ_VERSION}-bin
TEZ_ARCHIVE=${TEZ_RELEASE}.tar.gz
TEZ_MIRROR_DOWNLOAD=http://mirror.catn.com/pub/apache/tez/${TEZ_VERSION}/${TEZ_ARCHIVE}
TEZ_MIRROR_DOWNLOAD=https://dlcdn.apache.org/tez/${TEZ_VERSION}/${TEZ_ARCHIVE}
TEZ_RES_DIR=/vagrant/resources/tez

# Pig
Expand Down