You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@livy.apache.org by js...@apache.org on 2017/07/18 04:21:34 UTC

[07/13] incubator-livy git commit: LIVY-343. Web UI: Create Session Page

http://git-wip-us.apache.org/repos/asf/incubator-livy/blob/27625a0b/server/src/main/resources/org/apache/livy/server/ui/static/fonts/glyphicons-halflings-regular.ttf
----------------------------------------------------------------------
diff --git a/server/src/main/resources/org/apache/livy/server/ui/static/fonts/glyphicons-halflings-regular.ttf b/server/src/main/resources/org/apache/livy/server/ui/static/fonts/glyphicons-halflings-regular.ttf
new file mode 100644
index 0000000..1413fc6
Binary files /dev/null and b/server/src/main/resources/org/apache/livy/server/ui/static/fonts/glyphicons-halflings-regular.ttf differ

http://git-wip-us.apache.org/repos/asf/incubator-livy/blob/27625a0b/server/src/main/resources/org/apache/livy/server/ui/static/fonts/glyphicons-halflings-regular.woff
----------------------------------------------------------------------
diff --git a/server/src/main/resources/org/apache/livy/server/ui/static/fonts/glyphicons-halflings-regular.woff b/server/src/main/resources/org/apache/livy/server/ui/static/fonts/glyphicons-halflings-regular.woff
new file mode 100644
index 0000000..9e61285
Binary files /dev/null and b/server/src/main/resources/org/apache/livy/server/ui/static/fonts/glyphicons-halflings-regular.woff differ

http://git-wip-us.apache.org/repos/asf/incubator-livy/blob/27625a0b/server/src/main/resources/org/apache/livy/server/ui/static/fonts/glyphicons-halflings-regular.woff2
----------------------------------------------------------------------
diff --git a/server/src/main/resources/org/apache/livy/server/ui/static/fonts/glyphicons-halflings-regular.woff2 b/server/src/main/resources/org/apache/livy/server/ui/static/fonts/glyphicons-halflings-regular.woff2
new file mode 100644
index 0000000..64539b5
Binary files /dev/null and b/server/src/main/resources/org/apache/livy/server/ui/static/fonts/glyphicons-halflings-regular.woff2 differ

http://git-wip-us.apache.org/repos/asf/incubator-livy/blob/27625a0b/server/src/main/resources/org/apache/livy/server/ui/static/html/batches-table.html
----------------------------------------------------------------------
diff --git a/server/src/main/resources/org/apache/livy/server/ui/static/html/batches-table.html b/server/src/main/resources/org/apache/livy/server/ui/static/html/batches-table.html
new file mode 100644
index 0000000..aeab23b
--- /dev/null
+++ b/server/src/main/resources/org/apache/livy/server/ui/static/html/batches-table.html
@@ -0,0 +1,52 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<h4 id="batches-header" class="sessions-template">Batch Sessions</h4>
+
+<table id="batches-table" class="table table-striped sessions-table sessions-template">
+  <thead class="sessions-table-head">
+  <tr>
+    <th>
+      <span data-toggle="tooltip"
+            title="Livy Batch Id for this session. Batches do not have a Session Summary Page">
+        Batch Id
+      </span>
+    </th>
+    <th>
+      <span data-toggle="tooltip"
+            title="Spark Application Id for this session.
+            If available, links to Spark Application Web UI">
+        Application Id
+      </span>
+    </th>
+    <th>
+      <span data-toggle="tooltip"
+            title="Session State (not_started, starting, idle, busy,
+            shutting_down, error, dead, success)">
+        State
+      </span>
+    </th>
+    <th>
+      <span data-toggle="tooltip" title="Link to YARN driver log if available">
+        Logs
+      </span>
+    </th>
+  </tr>
+  </thead>
+  <tbody class="sessions-table-body">
+  </tbody>
+</table>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-livy/blob/27625a0b/server/src/main/resources/org/apache/livy/server/ui/static/html/sessions-table.html
----------------------------------------------------------------------
diff --git a/server/src/main/resources/org/apache/livy/server/ui/static/html/sessions-table.html b/server/src/main/resources/org/apache/livy/server/ui/static/html/sessions-table.html
new file mode 100644
index 0000000..8c64100
--- /dev/null
+++ b/server/src/main/resources/org/apache/livy/server/ui/static/html/sessions-table.html
@@ -0,0 +1,69 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<h4 id="interactive-sessions-header" class="sessions-template">Interactive Sessions</h4>
+
+<table id="interactive-sessions-table"
+       class="table table-striped sessions-table sessions-template">
+  <thead class="sessions-table-head">
+  <tr>
+    <th>
+      <span data-toggle="tooltip"
+            title="Livy Interactive Session Id for this session. Links to the Session Summary Page">
+        Session Id
+      </span>
+    </th>
+    <th>
+      <span data-toggle="tooltip"
+            title="Spark Application Id for this session.
+            If available, links to Spark Application Web UI">
+        Application Id
+      </span>
+    </th>
+    <th>
+      <span data-toggle="tooltip" title="Remote user who submitted this session">
+        Owner
+      </span>
+    </th>
+    <th>
+      <span data-toggle="tooltip" title="User to impersonate when running">
+        Proxy User
+      </span>
+    </th>
+    <th>
+      <span data-toggle="tooltip"
+            title="Session kind (spark, pyspark, pyspark3, or sparkr)">
+        Session Kind
+      </span>
+    </th>
+    <th>
+      <span data-toggle="tooltip"
+            title="Session State (not_started, starting, idle, busy,
+            shutting_down, error, dead, success)">
+        State
+      </span>
+    </th>
+    <th>
+      <span data-toggle="tooltip" title="Link to YARN driver log if available">
+        Logs
+      </span>
+    </th>
+  </tr>
+  </thead>
+  <tbody class="sessions-table-body">
+  </tbody>
+</table>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-livy/blob/27625a0b/server/src/main/resources/org/apache/livy/server/ui/static/html/statements-table.html
----------------------------------------------------------------------
diff --git a/server/src/main/resources/org/apache/livy/server/ui/static/html/statements-table.html b/server/src/main/resources/org/apache/livy/server/ui/static/html/statements-table.html
new file mode 100644
index 0000000..6f25d59
--- /dev/null
+++ b/server/src/main/resources/org/apache/livy/server/ui/static/html/statements-table.html
@@ -0,0 +1,63 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<h4 id="statements-header" class="statements-template">Statements</h4>
+
+<table id="statements-table" class="table table-striped statements-table statements-template">
+  <thead class="statements-table-head">
+  <tr>
+    <th>
+      <span>
+        Id
+      </span>
+    </th>
+    <th>
+      <span data-toggle="tooltip"
+            title="The statement code to be executed">
+        Execution Code
+      </span>
+    </th>
+    <th>
+      <span data-toggle="tooltip"
+            title="Current State (waiting, running, [output] available,
+            error, cancelling, cancelled)">
+        Execution State
+      </span>
+    </th>
+    <th>
+      <span data-toggle="tooltip" title="Percent of known tasks completed">
+        Progress
+      </span>
+    </th>
+    <th>
+      <span data-toggle="tooltip"
+            title="On completion ok or error, blank otherwise">
+        Execution Status
+      </span>
+    </th>
+    <th>
+      <span data-toggle="tooltip"
+            title="Statement output if available (an empty code box means no statement output).
+            Displays error stacktrace in case of an error.">
+        Output
+      </span>
+    </th>
+  </tr>
+  </thead>
+  <tbody class="statements-table-body">
+  </tbody>
+</table>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-livy/blob/27625a0b/server/src/main/resources/org/apache/livy/server/ui/static/img/livy-mini-logo.png
----------------------------------------------------------------------
diff --git a/server/src/main/resources/org/apache/livy/server/ui/static/img/livy-mini-logo.png b/server/src/main/resources/org/apache/livy/server/ui/static/img/livy-mini-logo.png
new file mode 100644
index 0000000..49606b4
Binary files /dev/null and b/server/src/main/resources/org/apache/livy/server/ui/static/img/livy-mini-logo.png differ