Member since
06-15-2016
12
Posts
4
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
27146 | 07-29-2016 07:42 PM |
06-10-2017
03:37 PM
@Girish Chaudhari Note, when you change the location of the file by using alter command, the old data file is not moved to new location. On your issue, 1) do you have any data files in the mentioned path? 2) Did you get any warnings / errors while you executed this ALTER command?
... View more
08-25-2016
09:50 PM
Even though the main requirement is addressed based on the choice of selected answer, thought I should log this for reference in the future: 0: jdbc:hive2://node1.hortonworks.com:10000/d> select * from src;
+----------+------------+--+
| src.key | src.value |
+----------+------------+--+
| 1 | Value1 |
| 2 | Value2 |
+----------+------------+--+
2 rows selected (0.187 seconds)
0: jdbc:hive2://node1.hortonworks.com:10000/d> select * from tgt;
+----------+------------+--+
| tgt.key | tgt.value |
+----------+------------+--+
+----------+------------+--+
No rows selected (0.154 seconds)
0: jdbc:hive2://node1.hortonworks.com:10000/d> from (from src select transform(src.key,src.value) using '/bin/cat' as (tkey,tvalue) )tmap insert overwrite table tgt select tkey,tvalue;
INFO : Tez session hasn't been created yet. Opening session
INFO : Dag name: from (from src select transfor...tkey,tvalue(Stage-1)
INFO :
INFO : Status: Running (Executing on YARN cluster with App id application_1471888656011_0009)
INFO : Map 1: -/-
INFO : Map 1: 0/1
INFO : Map 1: 0/1
INFO : Map 1: 0(+1)/1
INFO : Map 1: 1/1
INFO : Loading data to table default.tgt from hdfs://node1.hortonworks.com:8020/apps/hive/warehouse/tgt/.hive-staging_hive_2016-08-25_21-51-10_715_1000932141605500109-1/-ext-10000
INFO : Table default.tgt stats: [numFiles=1, numRows=2, totalSize=18, rawDataSize=16]
No rows affected (19.992 seconds)
0: jdbc:hive2://node1.hortonworks.com:10000/d> select * from tgt;
+----------+------------+--+
| tgt.key | tgt.value |
+----------+------------+--+
| 1 | Value1 |
| 2 | Value2 |
+----------+------------+--+
2 rows selected (0.197 seconds)
... View more
04-09-2018
01:50 PM
Hi Team, I am facing the same issue and not able to fix. java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask
... View more