zepplin in action

One sentence introduces Zeppelin
's data visualization tools in the form of Notes.

1. Download and install
http://zeppelin.apache.org/download.html
wget http://mirrors.tuna.tsinghua.edu.cn/apache/zeppelin/zeppelin-0.7.3/zeppelin-0.7.3-bin -all.tgz

tar -zvxf zeppelin-0.7.3-bin-all.tgz -C /opt

bin/zeppelin-daemon.sh start

2. Configure Interpreters
to connect hive
default.driver org.apache.hive.jdbc.HiveDriver
default. url jdbc:hive2://172.18.203.131:10000/default
default.user root (note that this configuration will result in no permission and connection failure)
For details, please refer to the hive log, http://master1:10002/logs/

Upload hive For related packages, note that the version driver version is the same as the installed hive version, go to /opt/zeppelin-0.7.3-bin-all/lib
hive-common-1.1.0.jar
hive-jdbc-1.1.0.jar
hive-metastore- 1.1.0.jar
hive-serde-1.1.0.jar
hive-service-1.1.0.jar


连接kylin
kylin.api.user ADMIN
kylin.api.password KYLIN
kylin.api.url http://master1:7070/kylin/api/query
kylin.query.project HiveProject

三.创建note

%jdbc
select fact.time_key, sum(fact.quantity_ordered), sum(fact.order_dollars), sum(fact.cost_dollars) from fact_order as fact
where fact.time_key >= "2016-05-01" and fact.time_key <= "2016-05-15"
group by fact.time_key order by fact.time_key;

%kylin
select fact.time_key, sum(fact.quantity_ordered), sum(fact.order_dollars), sum(fact.cost_dollars) from fact_order as fact
where fact.time_key between '2016-05-01' and '2016-05-15'
group by fact.time_key order by fact.time_key

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326399539&siteId=291194637