hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jd...@apache.org
Subject [21/58] [abbrv] hive git commit: HIVE-13438: Add a service check script for llap (Vikram Dixit K, reviewed by Gunther Hagleitner)
Date Tue, 19 Apr 2016 22:25:13 GMT
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/llap
Commit: 672419d0f5a519fa7fc8c506f5793881e95f6a80
Parents: af4be3d
Author: vikram <vikram@hortonworks.com>
Authored: Mon Apr 11 13:29:12 2016 -0700
Committer: vikram <vikram@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>


Mime
View raw message