Member since
05-31-2016
89
Posts
14
Kudos Received
8
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
4075 | 03-10-2017 07:05 AM | |
5960 | 03-07-2017 09:58 AM | |
3526 | 06-30-2016 12:13 PM | |
5800 | 05-20-2016 09:15 AM | |
27285 | 05-17-2016 02:09 PM |
04-21-2016
06:13 AM
I would like to elaborate my requirement here. We have a process that runs on a data set that cleanse it and transforms the data. This process runs in both Staging and Prod individually. We found that there was a data miss match in both the clusters after the job completes. And we wanted to find out the different records that were available in both the clusters. For this purpose I wrote a shell script that will run two beeline queries in the two clusters, generate the output locally and using the shell commands. I, then compare the data and generate a report out of it which is quite a long process. So, I wanted to know if we can compare the two tables from different cluster at the same time with any hive or beeline query.
... View more
04-20-2016
07:17 AM
I have similar hive tables in two clusters, say my Staging and Prod. I would like to compare the tables in Staging and Prod. Is there a straight way to do it using Hive or Beeline?
... View more
Labels:
- Labels:
-
Apache Hive
04-19-2016
07:12 AM
After a lot of trial and error I found the issue. The hive.hql file was expecting a new line at the end of the query which is a bug in Hive 0.13.1 and has been fixed in hive 0.14.0.
... View more
04-19-2016
05:47 AM
I was working with beeline for quite a long time and this morning I got a strange issue. When I executed the below simple beeline command I didn't get any output. beeline -u jdbc:hive2://10.241.1.8:10000 -f testarea/hive.hql here is what I get $ beeline -u jdbc:hive2://10.241.1.8:10000 -f testarea/hive.hql
scan complete in 3ms
Connecting to jdbc:hive2://10.241.1.8:10000
Connected to: Apache Hive (version 0.13.1-cdh5.3.6)
Driver: Hive JDBC (version 0.13.1-cdh5.3.6)
Transaction isolation: TRANSACTION_REPEATABLE_READ
0: jdbc:hive2://10.241.1.8:10000> select count (*) from active_139;
Closing: 0: jdbc:hive2://10.241.1.8:10000 the hive.hql contains the below hive query select count (*) from active_139; However if I execute the same hive query from beeline it works. $ beeline -u jdbc:hive2://10.241.1.8:10000 -e 'select count (*) from active_139;'
scan complete in 3ms
Connecting to jdbc:hive2://10.241.1.8:10000
Connected to: Apache Hive (version 0.13.1-cdh5.3.6)
Driver: Hive JDBC (version 0.13.1-cdh5.3.6)
Transaction isolation: TRANSACTION_REPEATABLE_READ
+---------+--+
| _c0 |
+---------+--+
| 121837 |
+---------+--+
1 row selected (23.827 seconds)
Beeline version 0.13.1-cdh5.3.6 by Apache Hive
Closing: 0: jdbc:hive2://10.241.1.8:10000 Any body got a clue on this?
... View more
Labels:
- Labels:
-
Apache Hive
04-18-2016
10:28 AM
Ok!!!! Finally I have figured out an alternative for this issue. I used beeline to connect the hiveserver2 of clusterB from clusterA and it worked. happy days!!!!
... View more
04-18-2016
10:17 AM
Hiveserver2 instance is running at port 10000 which I have tried already.
... View more
04-18-2016
09:53 AM
Hi, I am back with another question and as usual I hope I will get a great answer from our members. I am trying to connect to a hive server in clusterB from clusterA. I am firing the below command $ hive -h clusterB-ip -p 9083 It connects but when I issue the below hive query I get an error hive> show tables;
[Thrift Error]: Invalid method name: 'execute'
[Thrift Error]: Hive server is not cleaned due to thrift exception: Invalid method name: 'clean' I have tried with different Hive server IP's with port combination of 9083 and 10000 which connects but cannot execute any hive query. Any help is much appreciated.
... View more
Labels:
- Labels:
-
Apache Hive
04-06-2016
07:12 AM
Hi @Benjamin Leonhardi, still the same problem. Here is what I get.
I am using CDH 5.3.6 with 0.13.1 beeline version. Also I have another question if you don't mind answering, please. How to add a string in the output file while we execute the above command? Here is what I want to see in my output file In Hive I can get this using '!echo' but the same does not work with beeline. I have tried '!sh echo' also but that does not seems to work. Much much appreciate your time.
... View more
04-05-2016
05:31 AM
Hi @Benjamin Leonhardi, Thanks for your answer. I got a clue from it that has made task to attain the output almost close to my expectation. If you go through my comments in @Ana Gillan 's answer I have described my issue and if you can get an answer for it, I am done for the day 🙂
... View more
04-05-2016
05:26 AM
Hi @Ana Gillan, thank you for your answer. This method is perfect to dump the output into a file however the HQL I write has some echo statements which will be printed before the result and this is why I wanted to redirect the output in the SQL style. However after reading @Benjamin Leonhardi 's answer I got a clue from it. Here is the modified query that will print a neat output without any logs included. Thanks to @Benjamin Leonhardi. beeline -u jdbc:hive2://somehost_ip/ --silent=true -f hive.hql >op.txt But in the output file there are still couple of Blank lines printed. Here is the screen shot of the output. In the output file there are two blank lines at the beginning and three trailing blank lines. If this can be fixed it would be great.
... View more
- « Previous
- Next »