kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liy...@apache.org
Subject [26/30] kylin git commit: minor, fix sample cube desc
Date Tue, 04 Oct 2016 08:32:11 GMT
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/92fc0e53
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/92fc0e53
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/92fc0e53

Branch: refs/heads/master-hbase1.x
Commit: 92fc0e53845a30a320467e3657a90343d2002e8c
Parents: 3a6b1f2
Author: Yang Li <liyang@apache.org>
Authored: Fri Sep 30 21:46:31 2016 +0800
Committer: Yang Li <liyang@apache.org>
Committed: Fri Sep 30 21:48:35 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/92fc0e53/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/92fc0e53/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


Mime
View raw message