Skip to content

Commit

Permalink
Added the Apache License at the file
Browse files Browse the repository at this point in the history
  • Loading branch information
Emaasit committed Jun 5, 2015
1 parent d705112 commit 486f44e
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions examples/src/main/r/0-getting-started.R
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
#
# Author: Daniel Emaasit (@emaasit)
# Purpose: This script shows how to install SparkR onto your workstation/PC
# and initialize a spark context and a SparkSQL context
# Date: 06/05/2015
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#


# Install SparkR from CRAN
install.packages("SparkR")

## OR Install the dev version from Github
install.packages(devtools)
devtools::install_github("amplab-extras/SparkR-pkg", subdir="pkg")

# Load SparkR onto your PC
library(SparkR)
Expand All @@ -20,4 +22,4 @@ library(SparkR)
sc <- sparkR.init(master = "local", appName = "MyApp")

## Initialize SQLContext
sqlCtx <- SparkRSQL.init(sc)
sqlCtx <- SparkRSQL.init(sc)

0 comments on commit 486f44e

Please sign in to comment.