0001 @echo off
0002
0003 rem
0004 rem Licensed to the Apache Software Foundation (ASF) under one or more
0005 rem contributor license agreements. See the NOTICE file distributed with
0006 rem this work for additional information regarding copyright ownership.
0007 rem The ASF licenses this file to You under the Apache License, Version 2.0
0008 rem (the "License"); you may not use this file except in compliance with
0009 rem the License. You may obtain a copy of the License at
0010 rem
0011 rem http://www.apache.org/licenses/LICENSE-2.0
0012 rem
0013 rem Unless required by applicable law or agreed to in writing, software
0014 rem distributed under the License is distributed on an "AS IS" BASIS,
0015 rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0016 rem See the License for the specific language governing permissions and
0017 rem limitations under the License.
0018 rem
0019
0020 rem Install development version of SparkR
0021 rem
0022
0023 set SPARK_HOME=%~dp0..
0024
0025 MKDIR %SPARK_HOME%\R\lib
0026
0027 R.exe CMD INSTALL --library="%SPARK_HOME%\R\lib" %SPARK_HOME%\R\pkg\
0028
0029 rem Zip the SparkR package so that it can be distributed to worker nodes on YARN
0030 pushd %SPARK_HOME%\R\lib
0031 %JAVA_HOME%\bin\jar.exe cfM "%SPARK_HOME%\R\lib\sparkr.zip" SparkR
0032 popd
0033