When called in an interactive session, this method checks for the Spark installation, and, if not
found, it will be downloaded and cached automatically. Alternatively, install.spark
can
be called manually.
A default warehouse is created automatically in the current directory when a managed table is
created via sql
statement CREATE TABLE
, for example. To change the location of the
warehouse, set the named parameter spark.sql.warehouse.dir
to the SparkSession. Along with
the warehouse, an accompanied metastore may also be automatically created in the current
directory when a new SparkSession is initialized with enableHiveSupport
set to
TRUE
, which is the default. For more details, refer to Hive configuration at
http://spark.apache.org/docs/latest/sql-programming-guide.html#hive-tables.
For details on how to initialize and use SparkR, refer to SparkR programming guide at
http://spark.apache.org/docs/latest/sparkr.html#starting-up-sparksession.