Re: Storing result of a query in a variable

2014-06-03 Thread Mohammad Tariq
iveconf MY_VAR =`cat /tmp/result/00_0`; > > > > Is not working > > > > *From:* Sanjay Subramanian [mailto:sanjaysubraman...@yahoo.com] > *Sent:* Tuesday, June 03, 2014 2:30 AM > *To:* user@hive.apache.org > *Subject:* Re: Storing result of a query in a variable &g

RE: Storing result of a query in a variable

2014-06-03 Thread Chhaya Vishwakarma
./hive -e --hiveconf MY_VAR =`cat /tmp/result/00_0`; Is not working From: Sanjay Subramanian [mailto:sanjaysubraman...@yahoo.com] Sent: Tuesday, June 03, 2014 2:30 AM To: user@hive.apache.org Subject: Re: Storing result of a query in a variable Add -e option ./hive -e --hiveconf MY_VAR

Re: Storing result of a query in a variable

2014-06-02 Thread Sanjay Subramanian
Add  -e option ./hive -e --hiveconf MY_VAR =`cat /tmp/result/00_0`; But u could use the following hdfs command as well MY_VAR=$(hdfs dfs -cat /tmp/result/00_0) thanks sanjay From: Chhaya Vishwakarma To: "user@hive.apache.org" Sent: Monday, June 2