- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
beeline !sh source command not working
- Labels:
-
Apache Hive
Created on
‎10-20-2019
09:00 AM
- last edited on
‎10-20-2019
09:17 AM
by
ask_bill_brooks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
In beeline hql file shell commands why source filename not working and cat filename works with no issues
!sh cat filename --working
!sh source filename -- giving error
Exception raised from Shell command java.lang.Exception: Failed to execute source filename
Any help would be great
Created ‎10-23-2019 05:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @sundar_gampa,
Not sure, why the source command is not working.
But, rather than running the shell command from beeline, you can create a shell script which has beeline command after you have sourced the required file.
Created ‎10-23-2019 04:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes that is the approach we are following. Just wondering is there any list of commands that works in HQL -shell.
Tried for document on the same but with no luck.
