Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Solved
Go to solution
Beeline equivalent of hive command line potion: --database
Labels:
- Labels:
-
Apache Hadoop
-
Apache Hive
Explorer
Created ‎02-24-2022 10:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hive has --database option to select database.
--database <databasename> Specify the database to use
What is the beeline equivalent of the same?
1 ACCEPTED SOLUTION
Super Guru
Created ‎02-24-2022 06:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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é
--
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.
1 REPLY 1
Super Guru
Created ‎02-24-2022 06:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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é
--
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.
