Skip to content

Commit 486f44e

Browse files
committed
Added the Apache License at the file
1 parent d705112 commit 486f44e

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
#
2-
# Author: Daniel Emaasit (@emaasit)
3-
# Purpose: This script shows how to install SparkR onto your workstation/PC
4-
# and initialize a spark context and a SparkSQL context
5-
# Date: 06/05/2015
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
616
#
7-
8-
9-
# Install SparkR from CRAN
10-
install.packages("SparkR")
11-
12-
## OR Install the dev version from Github
13-
install.packages(devtools)
14-
devtools::install_github("amplab-extras/SparkR-pkg", subdir="pkg")
1517

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

2224
## Initialize SQLContext
23-
sqlCtx <- SparkRSQL.init(sc)
25+
sqlCtx <- SparkRSQL.init(sc)

0 commit comments

Comments
 (0)