-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
109 changed files
with
4,616 additions
and
833 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
eclipse.preferences.version=1 | ||
encoding//src/main/java=UTF-8 | ||
encoding//src/main/resources=UTF-8 | ||
encoding//src/test/java=UTF-8 | ||
encoding//src/test/resources=UTF-8 | ||
encoding/<project>=UTF-8 |
2 changes: 1 addition & 1 deletion
2
atopcalcite/src/main/java/net/hydromatic/optiq/runtime/SqlFunctions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
|
||
ALERT="[email protected]" | ||
|
||
OUTPUT=$( | ||
curl --max-time 20 -# \ | ||
--data '{"sql":"select count(*) from test_kylin_fact","offset":0,"limit":50000,"acceptPartial":true,"project":"default"}' \ | ||
-H "Authorization:Basic QURNSU46S1lMSU4=" \ | ||
-H "Content-Type:application/json;charset=UTF-8" \ | ||
http://localhost:7070/kylin/api/query \ | ||
) | ||
|
||
# ---------------------------------------------------------------------------- | ||
|
||
date | ||
|
||
if [[ $OUTPUT == *"results"* ]]; then | ||
echo "Good." | ||
else | ||
echo "Bad." | ||
TS_FILE=/tmp/kylin_healthmon_ts | ||
LAST_TS=`stat -c%Y $TS_FILE 2>/dev/null` | ||
CURR_TS=`date +%s` | ||
echo last: $LAST_TS | ||
echo curr: $CURR_TS | ||
if (( ${LAST_TS:-"0"} < $CURR_TS - 3600 )); then | ||
echo "Sending mail..." | ||
echo "Kylin Prod health check failed as of $(date)." | mail -s "KYLIN PROD DOWN" $ALERT | ||
if [ "$?" == "0" ]; then | ||
touch $TS_FILE | ||
fi | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/usr/bin/env bash | ||
|
||
|
||
cd ~ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
26 changes: 26 additions & 0 deletions
26
docs/Installation/Frequently Asked Questions on Installation.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Frequently Asked Questions on Installation | ||
--- | ||
* Some NPM error causes ERROR exit (中国大陆地区用户请特别注意此问题)? | ||
> Check out https://github.com/KylinOLAP/Kylin/issues/35 | ||
* Can't get master address from ZooKeeper" when installing Kylin on Hortonworks Sandbox | ||
> Check out https://github.com/KylinOLAP/Kylin/issues/9. | ||
* Install scripted finished in my virtual machine, but cannot visit via http://localhost:9080 | ||
> Check out https://github.com/KylinOLAP/Kylin/issues/12. | ||
* Map Reduce Job information can't display on sandbox deployment | ||
> Check out https://github.com/KylinOLAP/Kylin/issues/40 | ||
* Install Kylin on CDH 5.2 or Hadoop 2.5.x | ||
> Check out discussion: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/kylin-olap/X0GZfsX1jLc/nzs6xAhNpLkJ | ||
> | ||
``` | ||
I was able to deploy Kylin with following option in POM. | ||
<hadoop2.version>2.5.0</hadoop2.version> | ||
<yarn.version>2.5.0</yarn.version> | ||
<hbase-hadoop2.version>0.98.6-hadoop2</hbase-hadoop2.version> | ||
<zookeeper.version>3.4.5</zookeeper.version> | ||
<hive.version>0.13.1</hive.version> | ||
My Cluster is running on Cloudera Distribution CDH 5.2.0. | ||
``` |
Binary file not shown.
76 changes: 76 additions & 0 deletions
76
docs/Installation/Off Hadoop CLI Installation (Dev Env Setup).md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
Off Hadoop CLI Installation (Dev Env Setup) | ||
=== | ||
Off-Hadoop-CLI installation is usually for **development use**. | ||
|
||
Developers want to run kylin test cases or applications at their development machine. The scenario is depicted at https://github.com/KylinOLAP/Kylin#off-hadoop-cli-installation. | ||
|
||
|
||
By following this tutorial, you will be able to build kylin test cubes by running a specific test case, and you can further run other test cases against the cubes having been built. | ||
|
||
|
||
## Environment on the Hadoop CLI | ||
|
||
Off-Hadoop-CLI installation requires you having a hadoop CLI machine (or a hadoop sandbox) as well as your local develop machine. To make things easier we strongly recommend you starting with running Kylin on a hadoop sandbox, like <http://hortonworks.com/products/hortonworks-sandbox/>. In the following tutorial we'll go with **Hortonworks Sandbox 2.1**. | ||
|
||
### Start Hadoop | ||
|
||
In Hortonworks sandbox, ambari helps to launch hadoop: | ||
|
||
ambari-agent start | ||
ambari-server start | ||
|
||
With both command successfully run you can go to ambari home page at <http://yoursandboxip:8080> (user:admin,password:admin) to check everything's status. By default ambari disables Hbase, you'll need manually start the `Hbase` service. | ||
|
||
For other hadoop distribution, basically start the hadoop cluster, make sure HDFS, YARN, Hive, HBase are running. | ||
|
||
|
||
## Environment on the dev machine | ||
|
||
### Install maven | ||
|
||
The latest maven can be found at <http://maven.apache.org/download.cgi>, we create a symbolic so that `mvn` can be run anywhere. | ||
|
||
cd ~ | ||
wget http://apache.proserve.nl/maven/maven-3/3.2.3/binaries/apache-maven-3.2.3-bin.tar.gz | ||
tar -xzvf apache-maven-3.2.3-bin.tar.gz | ||
ln -s /root/apache-maven-3.2.3/bin/mvn /usr/bin/mvn | ||
|
||
### Compile | ||
|
||
First clone the Kylin project to your local: | ||
|
||
git clone https://github.com/KylinOLAP/Kylin.git | ||
|
||
Install Kylin artifacts to the maven repo | ||
|
||
mvn clean install -DskipTests | ||
|
||
### Modify local configuration | ||
|
||
Local configuration must be modified to point to your hadoop sandbox (or CLI) machine. If you are using a Hortonworks sandbox, this section may be skipped. | ||
|
||
* In **examples/test_case_data/sandbox/kylin.properties** | ||
* Find `sandbox` and replace with your hadoop hosts | ||
* Find `kylin.job.remote.cli.username` and `kylin.job.remote.cli.password`, fill in the user name and password used to login hadoop cluster for hadoop command execution | ||
|
||
* In **examples/test_case_data/sandbox** | ||
* For each configuration xml file, find all occurrence of `sandbox` and replace with your hadoop hosts | ||
|
||
An alternative to the host replacement is updating your `hosts` file to resolve `sandbox` and `sandbox.hortonworks.com` to the IP of your sandbox machine. | ||
|
||
### Run unit tests | ||
|
||
Run a end-to-end cube building test | ||
|
||
mvn test -Dtest=com.kylinolap.job.BuildCubeWithEngineTest -DfailIfNoTests=false | ||
|
||
Run other tests, the end-to-end cube building test is exclueded | ||
|
||
mvn test | ||
|
||
### Launch Kylin Web Server | ||
|
||
In your Eclipse IDE, launch `com.kylinolap.rest.DebugTomcat` with specifying VM arguments "-Dspring.profiles.active=sandbox". (By default Kylin server will listen on 7070 port; If you want to use another port, please specify it as a parameter when run `DebugTomcat) | ||
|
||
Check Kylin Web available at http://localhost:7070 (user:ADMIN,password:KYLIN) | ||
|
Binary file not shown.
Oops, something went wrong.