PlanetJava
Custom Search

java-hadoop-hive-user
[Top] [All Lists]

Run simple HiveQL query using shell script?

Subject: Run simple HiveQL query using shell script?
Date: Tue, 17 Jul 2012 22:28:22 -0700
I am new to Unix Shell Scripting world. I wanted to run a simple
*HiveQL*query from the Unix Shell script and output the result in a
.txt file and
then send that .txt file as an attachment in an email.
SQL Query and piping the output to a txt file is below:
    SELECT count(*) from pds_table > a.txt;
How can I do this from a shell script and send the output to a txt file and
then send that txt file as an attachment in an email.
*Raihan Jamal*
msgmiddle
<Prev in Thread] Current Thread [Next in Thread>
  • Run simple HiveQL query using shell script?,
    • Re: Run simple HiveQL query using shell script?
      • Re: Run simple HiveQL query using shell script?
        • Re: Run simple HiveQL query using shell script?
Current Sitemap | © 2012 planetjava | Contact | Privacy Policy