You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by vi...@apache.org on 2016/04/11 22:33:13 UTC

hive git commit: HIVE-13438: Add a service check script for llap (Vikram Dixit K, reviewed by Gunther Hagleitner)

Repository: hive
Updated Branches:
  refs/heads/master af4be3de1 -> 672419d0f


HIVE-13438: Add a service check script for llap (Vikram Dixit K, reviewed by Gunther Hagleitner)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/672419d0
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/672419d0
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/672419d0

Branch: refs/heads/master
Commit: 672419d0f5a519fa7fc8c506f5793881e95f6a80
Parents: af4be3d
Author: vikram <vi...@hortonworks.com>
Authored: Mon Apr 11 13:29:12 2016 -0700
Committer: vikram <vi...@hortonworks.com>
Committed: Mon Apr 11 13:29:12 2016 -0700

----------------------------------------------------------------------
 llap-server/sql/serviceCheckScript.sql | 12 ++++++++++++
 packaging/src/main/assembly/bin.xml    |  9 +++++++++
 2 files changed, 21 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/672419d0/llap-server/sql/serviceCheckScript.sql
----------------------------------------------------------------------
diff --git a/llap-server/sql/serviceCheckScript.sql b/llap-server/sql/serviceCheckScript.sql
new file mode 100644
index 0000000..0c3d64e
--- /dev/null
+++ b/llap-server/sql/serviceCheckScript.sql
@@ -0,0 +1,12 @@
+set hive.execution.mode=llap;
+set hive.llap.execution.mode=all;
+
+
+CREATE temporary TABLE ${hiveconf:hiveLlapServiceCheck} (name VARCHAR(64), age INT)
+  CLUSTERED BY (age) INTO 2 BUCKETS STORED AS ORC;
+ 
+INSERT INTO TABLE ${hiveconf:hiveLlapServiceCheck}
+  VALUES ('fred flintstone', 35), ('barney rubble', 32);
+ 
+select count(1) from ${hiveconf:hiveLlapServiceCheck};
+

http://git-wip-us.apache.org/repos/asf/hive/blob/672419d0/packaging/src/main/assembly/bin.xml
----------------------------------------------------------------------
diff --git a/packaging/src/main/assembly/bin.xml b/packaging/src/main/assembly/bin.xml
index aaf5c0e..97bef59 100644
--- a/packaging/src/main/assembly/bin.xml
+++ b/packaging/src/main/assembly/bin.xml
@@ -168,6 +168,15 @@
     </fileSet>
 
     <fileSet>
+      <fileMode>666</fileMode>
+      <directory>${project.parent.basedir}/llap-server/sql</directory>
+      <includes>
+        <include>**/*</include>
+      </includes>
+      <outputDirectory>scripts/llap/sql/</outputDirectory>
+    </fileSet>
+
+    <fileSet>
       <directory>${project.parent.basedir}/llap-server/src/main/resources/</directory>
       <includes>
         <include>**/*.py</include>