Kylin-web上的数据分析
2016-05-26 16:40
302 查看
Kylin Web Interface
Supported BrowsersWindows: Google Chrome, FireFox
Mac: Google Chrome, FireFox, Safari
1. Access & Login
Host to access: http://hostname:7070Login with username/password: ADMIN/KYLIN
![](http://kylin.apache.org/images/tutorial/1.5/Kylin-Web-Tutorial/1%20login.png)
2. Sync Hive Table into Kylin
Although Kylin will using SQL as query interface and leverage Hive metadata, kylin will not enable user to query all hive tables since it’s a pre-build OLAP (MOLAP) system so far. To enable Table in Kylin, it will be easy to using “Sync” function to syncup tables from Hive.
![](http://kylin.apache.org/images/tutorial/1.5/Kylin-Web-Tutorial/2%20tables.png)
3. Kylin OLAP Cube
Kylin’s OLAP Cubes are pre-calculation datasets from star schema tables, Here’s the web interface for user to explorer, manage all cubes. Go toModelmenu, it will list all cubes available in system:
![](http://kylin.apache.org/images/tutorial/1.5/Kylin-Web-Tutorial/3%20cubes.png)
To explore more detail about the Cube
Form View:
![](http://kylin.apache.org/images/tutorial/1.5/Kylin-Web-Tutorial/4%20form-view.png)
SQL View (Hive Query to read data to generate the cube):
![](http://kylin.apache.org/images/tutorial/1.5/Kylin-Web-Tutorial/5%20sql-view.png)
Access (Grant user/role privileges, grant operation only open to Admin):
![](http://kylin.apache.org/images/tutorial/1.5/Kylin-Web-Tutorial/7%20access.png)
4. Write and Execute SQL on web
Kylin’s web offer a simple query tool for user to run SQL to explorer existing cube, verify result and explorer the result set using #5’s Pivot analysis and visualizationQuery Limit
Only SELECT query be supported
SQL will not be redirect to Hive
Go to “Insight” menu:
![](http://kylin.apache.org/images/tutorial/1.5/Kylin-Web-Tutorial/8%20query.png)
Source Tables:
Browser current available tables (same structure and metadata as Hive):
![](http://kylin.apache.org/images/tutorial/1.5/Kylin-Web-Tutorial/9%20query-table.png)
New Query:
You can write and execute your query and explorer the result.
![](http://kylin.apache.org/images/tutorial/1.5/Kylin-Web-Tutorial/10%20query-result.png)
Saved Query (only work after enable LDAP security):
Associate with user account, you can get saved query from different browsers even machines.
Click “Save” in Result area, it will popup for name and description to save current query:
![](http://kylin.apache.org/images/tutorial/1.5/Kylin-Web-Tutorial/11%20save-query.png)
Click “Saved Queries” to browser all your saved queries, you could direct submit it or remove it.
Query History:
Only keep the current user’s query history in current bowser, it will require cookie enabled and will lost if you clean up bowser’s cache. Click “Query History” tab, you could directly resubmit any of them to execute again.
5. Pivot Analysis and Visualization
There’s one simple pivot and visualization analysis tool in Kylin’s web for user to explore their query result:General Information:
When the query execute success, it will present a success indictor and also a cube’s name which be hit.
Also it will present how long this query be executed in backend engine (not cover network traffic from Kylin server to browser):
![](http://kylin.apache.org/images/tutorial/1.5/Kylin-Web-Tutorial/12%20general.png)
Query Result:
It’s easy to order on one column.
![](http://kylin.apache.org/images/tutorial/1.5/Kylin-Web-Tutorial/13%20results.png)
Export to CSV File
Click “Export” button to save current result as CSV file.
Pivot Table:
Drag and drop one or more columns into the header, the result will grouping by such column’s value:
![](http://kylin.apache.org/images/tutorial/1.5/Kylin-Web-Tutorial/14%20drag.png)
Visualization:
Also, the result set will be easy to show with different charts in “Visualization”:
note: line chart only available when there’s at least one dimension with real “Date” data type of column from Hive Table.
Bar Chart:
![](http://kylin.apache.org/images/tutorial/1.5/Kylin-Web-Tutorial/15%20bar-chart.png)
Pie Chart:
![](http://kylin.apache.org/images/tutorial/1.5/Kylin-Web-Tutorial/16%20pie-chart.png)
Line Chart
![](http://kylin.apache.org/images/tutorial/1.5/Kylin-Web-Tutorial/17%20line-chart.png)
相关文章推荐
- 正则表达式【项目中碰到使用的】
- 安卓View开发心得(一)
- include 布局android:layout_below属性无法使用
- linux之bash介绍
- 一行行看SDWebImage源码(一)
- mysql slow_log 记录和获取
- Kafka入门教程
- Css选择器
- PHP浮点数的精确计算BCMath
- 如何开启Centos6.4系统的SSH服务
- 如何判断pc或者移动端
- MDK中寄存器地址名称映射分析
- Why can't we change access modifier while overriding methods in C#?
- python(十二)I/O编程
- Android-->EventBus 3.0新版使用说明(及其使用方法)
- 一起来学Android Studio:(四)导入eclipse项目
- EasyDarwin返回401 Unauthorized解决方法
- Kylin Cube 的权限管理
- Android集成PayPal支付
- 辨析JavaScript中的Undefined类型与null类型