spark-instrumented-optimizer/R/pkg/inst/tests/testthat
Felix Cheung 30b182bcc0 [SPARK-16184][SPARKR] conf API for SparkSession
## What changes were proposed in this pull request?

Add `conf` method to get Runtime Config from SparkSession

## How was this patch tested?

unit tests, manual tests

This is how it works in sparkR shell:
```
 SparkSession available as 'spark'.
> conf()
$hive.metastore.warehouse.dir
[1] "file:/opt/spark-2.0.0-bin-hadoop2.6/R/spark-warehouse"

$spark.app.id
[1] "local-1466749575523"

$spark.app.name
[1] "SparkR"

$spark.driver.host
[1] "10.0.2.1"

$spark.driver.port
[1] "45629"

$spark.executorEnv.LD_LIBRARY_PATH
[1] "$LD_LIBRARY_PATH:/usr/lib/R/lib:/usr/lib/x86_64-linux-gnu:/usr/lib/jvm/default-java/jre/lib/amd64/server"

$spark.executor.id
[1] "driver"

$spark.home
[1] "/opt/spark-2.0.0-bin-hadoop2.6"

$spark.master
[1] "local[*]"

$spark.sql.catalogImplementation
[1] "hive"

$spark.submit.deployMode
[1] "client"

> conf("spark.master")
$spark.master
[1] "local[*]"

```

Author: Felix Cheung <felixcheung_m@hotmail.com>

Closes #13885 from felixcheung/rconf.
2016-06-26 13:10:43 -07:00
..
jarTest.R [SPARK-15159][SPARKR] SparkR SparkSession API 2016-06-17 21:36:01 -07:00
packageInAJarTest.R [SPARK-15159][SPARKR] SparkR SparkSession API 2016-06-17 21:36:01 -07:00
test_binary_function.R [SPARK-15159][SPARKR] SparkR SparkSession API 2016-06-17 21:36:01 -07:00
test_binaryFile.R [SPARK-15159][SPARKR] SparkR SparkSession API 2016-06-17 21:36:01 -07:00
test_broadcast.R [SPARK-15159][SPARKR] SparkR SparkSession API 2016-06-17 21:36:01 -07:00
test_client.R [MINOR] [SPARKR] Update data-manipulation.R to use native csv reader 2016-05-09 09:58:36 -07:00
test_context.R [SPARK-16088][SPARKR] update setJobGroup, cancelJobGroup, clearJobGroup 2016-06-23 09:45:01 -07:00
test_includeJAR.R [SPARK-8603][SPARKR] Use shell() instead of system2() for SparkR on Windows 2016-05-26 20:55:06 -07:00
test_includePackage.R [SPARK-15159][SPARKR] SparkR SparkSession API 2016-06-17 21:36:01 -07:00
test_mllib.R [SPARK-15177][.1][R] make SparkR model params and default values consistent with MLlib 2016-06-21 08:31:15 -07:00
test_parallelize_collect.R [SPARK-15159][SPARKR] SparkR SparkSession API 2016-06-17 21:36:01 -07:00
test_rdd.R [SPARK-15159][SPARKR] SparkR SparkSession API 2016-06-17 21:36:01 -07:00
test_Serde.R [SPARK-15159][SPARKR] SparkR SparkSession API 2016-06-17 21:36:01 -07:00
test_shuffle.R [SPARK-15159][SPARKR] SparkR SparkSession API 2016-06-17 21:36:01 -07:00
test_sparkSQL.R [SPARK-16184][SPARKR] conf API for SparkSession 2016-06-26 13:10:43 -07:00
test_take.R [SPARK-15159][SPARKR] SparkR SparkSession API 2016-06-17 21:36:01 -07:00
test_textFile.R [SPARK-15159][SPARKR] SparkR SparkSession API 2016-06-17 21:36:01 -07:00
test_utils.R [SPARK-15159][SPARKR] SparkR SparkSession API 2016-06-17 21:36:01 -07:00
test_Windows.R [SPARK-8603][SPARKR] Use shell() instead of system2() for SparkR on Windows 2016-05-26 20:55:06 -07:00