This is an automated email from the ASF dual-hosted git repository.
liyang pushed a commit to branch kylin5
in repository https://gitbox.apache.org/repos/asf/kylin.git
The following commit(s) were added to refs/heads/kylin5 by this push:
new e2d4e6c7c2 KYLIN-5950 Fix debug in local mode
e2d4e6c7c2 is described below
commit e2d4e6c7c2b8b3c7fd552450c4363a3a53bba978
Author: Pengfei Zhan* <[email protected]>
AuthorDate: Fri Aug 2 22:13:11 2024 +0800
KYLIN-5950 Fix debug in local mode
---
dev-support/contributor/local/local.sh | 7 ++++---
.../kylin/common/persistence/metadata/MemoryAuditLogStore.java | 2 +-
src/examples/test_case_data/localmeta/kylin.properties | 1 +
.../apache/kylin/cache/softaffinity/SoftAffinityBookKeeping.java | 2 +-
4 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/dev-support/contributor/local/local.sh
b/dev-support/contributor/local/local.sh
index 5e46a9763b..3d62bb1189 100755
--- a/dev-support/contributor/local/local.sh
+++ b/dev-support/contributor/local/local.sh
@@ -47,8 +47,8 @@ function error() {
echo -e "\033[31m$@\033[0m"
}
-PROJECT_DIR=$(cd -P -- "$(dirname -- "$0")/../.." && pwd -P)
-WORKDIR=$(cd -P -- "${PROJECT_DIR}/dev-support/local" && pwd -P)
+PROJECT_DIR=$(cd -P -- "$(dirname -- "$0")/../../.." && pwd -P)
+WORKDIR=$(cd -P -- "${PROJECT_DIR}/dev-support/contributor/local" && pwd -P)
FRONTEND_DIR=$(cd -P -- "${PROJECT_DIR}/kystudio" && pwd -P)
KYLIN_HOME="${PROJECT_DIR}"
@@ -96,7 +96,8 @@ EOF"
>"${PROJECT_DIR}/.idea/runConfigurations/BootstrapServer_local_community.xm
info "* Build Frontend..."
cd ${FRONTEND_DIR}
- npm install >>/dev/null 2>&1
+ npm install -g yarn
+ yarn install >>/dev/null 2>&1
info "* Init Done!"
;;
diff --git
a/src/core-common/src/main/java/org/apache/kylin/common/persistence/metadata/MemoryAuditLogStore.java
b/src/core-common/src/main/java/org/apache/kylin/common/persistence/metadata/MemoryAuditLogStore.java
index cd4812b98d..2ccaf90461 100644
---
a/src/core-common/src/main/java/org/apache/kylin/common/persistence/metadata/MemoryAuditLogStore.java
+++
b/src/core-common/src/main/java/org/apache/kylin/common/persistence/metadata/MemoryAuditLogStore.java
@@ -106,7 +106,7 @@ public class MemoryAuditLogStore implements AuditLogStore {
@Override
public void restore(long currentId) {
- throw new UnsupportedOperationException("MemoryAuditLog no need to
restore.");
+ // Do nothing
}
@Override
diff --git a/src/examples/test_case_data/localmeta/kylin.properties
b/src/examples/test_case_data/localmeta/kylin.properties
index e5fa4c6e5c..3480798407 100755
--- a/src/examples/test_case_data/localmeta/kylin.properties
+++ b/src/examples/test_case_data/localmeta/kylin.properties
@@ -18,6 +18,7 @@
# Env DEV|QA|PROD
kylin.env=UT
kylin.env.zookeeper-connect-string=localhost:2181
+spring.session.store-type=NONE
# The following two parameters are configured for use during local development.
# kylin.metadata.url=${KYLIN_METADATA_URL}
diff --git
a/src/spark-project/kylin-soft-affinity-cache/src/main/java/org/apache/kylin/cache/softaffinity/SoftAffinityBookKeeping.java
b/src/spark-project/kylin-soft-affinity-cache/src/main/java/org/apache/kylin/cache/softaffinity/SoftAffinityBookKeeping.java
index 147ae6989e..1bdc7df204 100644
---
a/src/spark-project/kylin-soft-affinity-cache/src/main/java/org/apache/kylin/cache/softaffinity/SoftAffinityBookKeeping.java
+++
b/src/spark-project/kylin-soft-affinity-cache/src/main/java/org/apache/kylin/cache/softaffinity/SoftAffinityBookKeeping.java
@@ -70,7 +70,7 @@ public class SoftAffinityBookKeeping {
public static void logAudits() {
List<String> lines = audit().entrySet().stream().map(e -> e.getKey() +
" -> " + e.getValue())
.collect(Collectors.toList());
- log.debug("Past few mappings of location -> executors: \n" +
String.join("\n", lines));
+ log.debug("Past few mappings of location -> executors: \n{}",
String.join("\n", lines));
}
public static int size() {