You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by rl...@apache.org on 2017/06/08 19:22:31 UTC
[17/50] [abbrv] ambari git commit: AMBARI-21163 : fixed : Hive view
1.5 and 2.0 not exporting/downloading the worksheet with entire number of
rows to csv (nitirajrathore)
AMBARI-21163 : fixed : Hive view 1.5 and 2.0 not exporting/downloading the worksheet with entire number of rows to csv (nitirajrathore)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/3b5f07f4
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3b5f07f4
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3b5f07f4
Branch: refs/heads/branch-feature-AMBARI-20859
Commit: 3b5f07f43f7c8914b3ff9aaa1b5504273f1ae59c
Parents: 3f90885
Author: Nitiraj Singh Rathore <ni...@gmail.com>
Authored: Mon Jun 5 12:33:46 2017 +0530
Committer: Nitiraj Singh Rathore <ni...@gmail.com>
Committed: Mon Jun 5 12:34:26 2017 +0530
----------------------------------------------------------------------
.../java/org/apache/ambari/view/hive2/actor/DeathWatch.java | 5 +++--
.../apache/ambari/view/hive2/client/NonPersistentCursor.java | 4 ++--
.../java/org/apache/ambari/view/hive20/actor/DeathWatch.java | 7 ++++---
.../apache/ambari/view/hive20/client/NonPersistentCursor.java | 4 ++--
4 files changed, 11 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/3b5f07f4/contrib/views/hive-next/src/main/java/org/apache/ambari/view/hive2/actor/DeathWatch.java
----------------------------------------------------------------------
diff --git a/contrib/views/hive-next/src/main/java/org/apache/ambari/view/hive2/actor/DeathWatch.java b/contrib/views/hive-next/src/main/java/org/apache/ambari/view/hive2/actor/DeathWatch.java
index dbb6c3d..d72eb29 100644
--- a/contrib/views/hive-next/src/main/java/org/apache/ambari/view/hive2/actor/DeathWatch.java
+++ b/contrib/views/hive-next/src/main/java/org/apache/ambari/view/hive2/actor/DeathWatch.java
@@ -41,13 +41,14 @@ public class DeathWatch extends HiveActor {
this.getContext().watch(actorRef);
LOG.info("Registered new actor "+ actorRef);
LOG.info("Registration for {} at {}", actorRef,new Date());
- }
- if(message instanceof Terminated){
+ }else if(message instanceof Terminated){
Terminated terminated = (Terminated) message;
ActorRef actor = terminated.actor();
LOG.info("Received terminate for actor "+ actor);
LOG.info("Termination for {} at {}", actor,new Date());
+ }else{
+ LOG.info("received unknown message : {}", hiveMessage);
}
}
http://git-wip-us.apache.org/repos/asf/ambari/blob/3b5f07f4/contrib/views/hive-next/src/main/java/org/apache/ambari/view/hive2/client/NonPersistentCursor.java
----------------------------------------------------------------------
diff --git a/contrib/views/hive-next/src/main/java/org/apache/ambari/view/hive2/client/NonPersistentCursor.java b/contrib/views/hive-next/src/main/java/org/apache/ambari/view/hive2/client/NonPersistentCursor.java
index 0be2683..13cab33 100644
--- a/contrib/views/hive-next/src/main/java/org/apache/ambari/view/hive2/client/NonPersistentCursor.java
+++ b/contrib/views/hive-next/src/main/java/org/apache/ambari/view/hive2/client/NonPersistentCursor.java
@@ -55,13 +55,14 @@ public class NonPersistentCursor implements Cursor<Row, ColumnDescription> {
private final List<ColumnDescription> descriptions = Lists.newLinkedList();
private int offSet = 0;
private boolean endReached = false;
-
+ private Inbox inbox;
public NonPersistentCursor(ViewContext context, ActorSystem system, ActorRef actorRef) {
this.context = context;
this.system = system;
this.actorRef = actorRef;
actorConfiguration = new HiveActorConfiguration(context);
+ inbox = Inbox.create(system);
}
@Override
@@ -120,7 +121,6 @@ public class NonPersistentCursor implements Cursor<Row, ColumnDescription> {
}
private void getNextRows() {
- Inbox inbox = Inbox.create(system);
inbox.send(actorRef, new Next());
Object receive;
try {
http://git-wip-us.apache.org/repos/asf/ambari/blob/3b5f07f4/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/actor/DeathWatch.java
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/actor/DeathWatch.java b/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/actor/DeathWatch.java
index 58cefcd..17b491c 100644
--- a/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/actor/DeathWatch.java
+++ b/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/actor/DeathWatch.java
@@ -41,13 +41,14 @@ public class DeathWatch extends HiveActor {
this.getContext().watch(actorRef);
LOG.info("Registered new actor "+ actorRef);
LOG.info("Registration for {} at {}", actorRef,new Date());
- }
- if(message instanceof Terminated){
+ }else if(message instanceof Terminated){
Terminated terminated = (Terminated) message;
ActorRef actor = terminated.actor();
- LOG.info("Received terminate for actor "+ actor);
+ LOG.info("Received terminate for actor {} with message : {}", actor, terminated);
LOG.info("Termination for {} at {}", actor,new Date());
+ }else{
+ LOG.info("received unknown message : {}", hiveMessage);
}
}
http://git-wip-us.apache.org/repos/asf/ambari/blob/3b5f07f4/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/client/NonPersistentCursor.java
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/client/NonPersistentCursor.java b/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/client/NonPersistentCursor.java
index 1d76e9c..80ffe79 100644
--- a/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/client/NonPersistentCursor.java
+++ b/contrib/views/hive20/src/main/java/org/apache/ambari/view/hive20/client/NonPersistentCursor.java
@@ -55,13 +55,14 @@ public class NonPersistentCursor implements Cursor<Row, ColumnDescription> {
private final List<ColumnDescription> descriptions = Lists.newLinkedList();
private int offSet = 0;
private boolean endReached = false;
-
+ private Inbox inbox;
public NonPersistentCursor(ViewContext context, ActorSystem system, ActorRef actorRef) {
this.context = context;
this.system = system;
this.actorRef = actorRef;
actorConfiguration = new HiveActorConfiguration(context);
+ inbox = Inbox.create(system);
}
@Override
@@ -120,7 +121,6 @@ public class NonPersistentCursor implements Cursor<Row, ColumnDescription> {
}
private void getNextRows() {
- Inbox inbox = Inbox.create(system);
inbox.send(actorRef, new Next());
Object receive;
try {