Created 02-24-2022 10:42 AM
hive has --database option to select database.
--database <databasename> Specify the database to use
What is the beeline equivalent of the same?
Created 02-24-2022 06:02 PM
@Ane ,
You can specify the database as part of the JDBC URI you pass to beeline. For example:
beeline -u "jdbc:hive2://<hostname>:10000/<dbname>"
HTH,
André
Created 02-24-2022 06:02 PM
@Ane ,
You can specify the database as part of the JDBC URI you pass to beeline. For example:
beeline -u "jdbc:hive2://<hostname>:10000/<dbname>"
HTH,
André