hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sirisha Cheruvu <sirisha5...@gmail.com>
Subject how to change default database of hive for spark hivecontext
Date Sun, 15 Jan 2017 03:38:50 GMT
Hi All,

i have to change default database of hive

when running query in hive i used to give use pdbqa in hive-init script and
initialize hive using

hive -i hiveinit

but how to do it in spark-sql so that it wont use default database for udfs
and tables

is there anyway i can mention default database of hive in hive-site.xml

i know.i can use aliasing and call dbname.tablename but this is not
feasible when using udfs

Regards,
Sirisha

Mime
View raw message