spark-sql
spark-sql
command line options
spark-sql
is a convenient tool to run the Hive Metastore service in local mode and execute queries from the command line.spark-sql
cannot talk to the Thrift JDBC server.hive-site.xml
, core-site.xml
and hdfs-site.xml
files in ${SPARK_HOME}/conf/.
spark-sql
spark-sql
type exit;
--hiveconf "hive.exec.scratchdir=/tmp/a-folder-that-the-current-user-has-permission-to-write-in"
hive.exec.scratchdir
" has the value to "/tmp/hive
"spark-sql
:
spark-shell
commands
show databases