You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2016/09/30 13:48:36 UTC
kylin git commit: minor, fix sample cube desc
Repository: kylin
Updated Branches:
refs/heads/yang21 7478d1b6a -> e27e54e78
minor, fix sample cube desc
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/e27e54e7
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/e27e54e7
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/e27e54e7
Branch: refs/heads/yang21
Commit: e27e54e78a29bb4694ea2271b2f9c77a7cd61fec
Parents: 7478d1b
Author: Yang Li <li...@apache.org>
Authored: Fri Sep 30 21:46:31 2016 +0800
Committer: Yang Li <li...@apache.org>
Committed: Fri Sep 30 21:46:31 2016 +0800
----------------------------------------------------------------------
.../org/apache/kylin/engine/mr/HadoopUtil.java | 3 +-
.../cube_desc/kylin_sales_cube_desc.json | 46 ++++++++++----------
2 files changed, 24 insertions(+), 25 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kylin/blob/e27e54e7/engine-mr/src/main/java/org/apache/kylin/engine/mr/HadoopUtil.java
----------------------------------------------------------------------
diff --git a/engine-mr/src/main/java/org/apache/kylin/engine/mr/HadoopUtil.java b/engine-mr/src/main/java/org/apache/kylin/engine/mr/HadoopUtil.java
index 0ed39d5..88692a0 100644
--- a/engine-mr/src/main/java/org/apache/kylin/engine/mr/HadoopUtil.java
+++ b/engine-mr/src/main/java/org/apache/kylin/engine/mr/HadoopUtil.java
@@ -34,6 +34,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class HadoopUtil {
+ @SuppressWarnings("unused")
private static final Logger logger = LoggerFactory.getLogger(HadoopUtil.class);
private static final ThreadLocal<Configuration> hadoopConfig = new ThreadLocal<>();
@@ -45,11 +46,9 @@ public class HadoopUtil {
if (hadoopConfig.get() == null) {
Configuration conf = healSickConfig(new Configuration());
// do not cache this conf, or will affect following mr jobs
- logger.info("The conf for current mapper will be " + System.identityHashCode(conf));
return conf;
}
Configuration conf = hadoopConfig.get();
- logger.info("The conf for current mapper will be " + System.identityHashCode(conf));
return conf;
}
http://git-wip-us.apache.org/repos/asf/kylin/blob/e27e54e7/examples/sample_cube/template/cube_desc/kylin_sales_cube_desc.json
----------------------------------------------------------------------
diff --git a/examples/sample_cube/template/cube_desc/kylin_sales_cube_desc.json b/examples/sample_cube/template/cube_desc/kylin_sales_cube_desc.json
index 70b1294..99f8f46 100644
--- a/examples/sample_cube/template/cube_desc/kylin_sales_cube_desc.json
+++ b/examples/sample_cube/template/cube_desc/kylin_sales_cube_desc.json
@@ -1,7 +1,10 @@
{
"uuid" : "0ef9b7a8-3929-4dff-b59d-2100aadc8dbf",
+ "last_modified" : 1451468470824,
"name" : "kylin_sales_cube_desc",
+ "model_name" : "kylin_sales_model",
"description" : null,
+ "null_string" : null,
"dimensions" : [ {
"name" : "CAL_DT",
"table" : "DEFAULT.KYLIN_CAL_DT",
@@ -106,21 +109,21 @@
},
"dependent_measure_ref" : null
}, {
- "name": "TOP_SELLER",
- "function": {
- "expression": "TOP_N",
- "parameter": {
- "type": "column",
- "value": "PRICE",
- "next_parameter": {
- "type": "column",
- "value": "SELLER_ID",
- "next_parameter": null
+ "name" : "TOP_SELLER",
+ "function" : {
+ "expression" : "TOP_N",
+ "parameter" : {
+ "type" : "column",
+ "value" : "PRICE",
+ "next_parameter" : {
+ "type" : "column",
+ "value" : "SELLER_ID",
+ "next_parameter" : null
}
},
- "returntype": "topn(100)"
+ "returntype" : "topn(100)"
},
- "dependent_measure_ref": null
+ "dependent_measure_ref" : null
} ],
"rowkey" : {
"rowkey_columns" : [ {
@@ -146,21 +149,18 @@
"encoding" : "dict"
} ]
},
- "last_modified" : 1451468470824,
- "model_name" : "kylin_sales_model",
- "null_string" : null,
"hbase_mapping" : {
"column_family" : [ {
- "name" : "f1",
+ "name" : "F1",
"columns" : [ {
- "qualifier" : "m",
- "measure_refs" : [ "GMV_SUM", "GMV_MIN", "GMV_MAX", "TRANS_CNT" ]
+ "qualifier" : "M",
+ "measure_refs" : [ "GMV_SUM", "GMV_MIN", "GMV_MAX", "TRANS_CNT", "TOP_SELLER" ]
} ]
}, {
- "name" : "f2",
+ "name" : "F2",
"columns" : [ {
- "qualifier" : "m",
- "measure_refs" : [ "SELLER_CNT_HLL", "SELLER_FORMAT_CNT", "TOP_SELLER" ]
+ "qualifier" : "M",
+ "measure_refs" : [ "SELLER_CNT_HLL", "SELLER_FORMAT_CNT" ]
} ]
} ]
},
@@ -174,10 +174,10 @@
} ],
"notify_list" : null,
"status_need_notify" : [ ],
+ "partition_date_start" : 1325376000000,
"auto_merge_time_ranges" : null,
"retention_range" : 0,
"engine_type" : %default_engine_type%,
"storage_type" : %default_storage_type%,
- "override_kylin_properties" : { },
- "partition_date_start" : 1325376000000
+ "override_kylin_properties" : { }
}
\ No newline at end of file